Candele in trasparenza
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Candele in trasparenza
- This topic has 26 replies, 3 voices, and was last updated 3 years ago by
supertiti.
-
-
01/18/2022 at 6:11 PM #185859
Ho aggiunto il codice per stampare il bordo quando ci sono 5 candele consecutive dello stesso segno.
Non capisco cosa mi stai chiedendo.01/18/2022 at 7:32 PM #18587301/22/2022 at 12:32 PM #186280Ho capito, questo mi sembra che vada bene:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152// HEIKIN ASHI TRANSPARENTS ROBERTO 15.01.2022// cul plat Nicolas 07.01.2022//defparam CALCULATEONLASTBARS = 50// Variable :// t = 0 (de 0 à 255)xClose = (open+high+low+close)/4IF BarIndex=0 THENxOpen = openxHigh = highxLow = lowELSexOpen = (xOpen[1] + xClose[1])/2xHigh = Max(Max(high, xOpen), xClose)xLow = Min(Min(low, xOpen), xClose)ENDIFgreen = xopen<xclose and xlow=xopenred = xopen>xclose and xhigh=xopengreensum = summation[5](xClose > xOpen) = 5redsum = summation[5](xClose < xOpen) = 5////////////////////////////////////////////////////if green and not green[1] thenlastpointx = 1IF lastpointx <> lastpointx[1] THENdrawpoint(barindex,xlow,5) coloured (9,82,40,255) //(0,200,0)// greenENDIFelsif red and not red[1] thenlastpointx = 2IF lastpointx <> lastpointx[1] THENdrawpoint(barindex,xhigh,5) coloured(200,0,0,255)// redENDIFendif/////////////////////////////////////////////////OKif green > green [1] thenlastpointy = 1IF lastpointy <> lastpointy[1] THENdrawpoint(barindex,xlow,3) coloured (254,254,0,255) // jaune clair //(9,82,40) // greenENDIFelsif red < red [1] thenlastpointy = 2IF lastpointy <> lastpointy[1] THENdrawpoint(barindex,xhigh,3) coloured (0,254,255,255) // jaune clair //(200,0,0)// redENDIFendif//IF close > open THENif greensum then //green > green [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,0) bordercolor(227,0,0) // vert clair bordure vert foncé//ELSEelsif redsum then //red > red [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,0) bordercolor(255,0,0) // rose magenta bordure rougeENDIFRETURN// t as " HA transparent "01/22/2022 at 6:48 PM #18632601/24/2022 at 4:48 PM #186478Non ci sono mai due simboli uguali.
01/24/2022 at 5:51 PM #18649001/24/2022 at 7:14 PM #186500Il codice funziona così Rimane
solo per avere i punti verdi e rossi con il centro più chiaro o bianco.
grazie per l’aiuto
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152// HEIKIN ASHI TRANSPARENTS ROBERTO V1 15.01.2022// cul plat Nicolas 07.01.2022//defparam CALCULATEONLASTBARS = 50// Variable :// t = 0 (de 0 à 255)xClose = (open+high+low+close)/4IF BarIndex=0 THENxOpen = openxHigh = highxLow = lowELSexOpen = (xOpen[1] + xClose[1])/2xHigh = Max(Max(high, xOpen), xClose)xLow = Min(Min(low, xOpen), xClose)ENDIFgreen = xopen<xclose and xlow=xopenred = xopen>xclose and xhigh=xopengreensum = summation[5](xClose > xOpen) = 5redsum = summation[5](xClose < xOpen) = 5////////////////////////////////////////////////////if green and not green[1] thenlastpointx = 1IF lastpointx <> lastpointx[1] THENdrawpoint(barindex,xlow,5) coloured (9,82,40,255) // greenENDIFelsif red and not red[1] thenlastpointx = 2IF lastpointx <> lastpointx[1] THENdrawpoint(barindex,xhigh,5) coloured(200,0,0,255)// redENDIFendif/////////////////////////////////////////////////OKif green > green [1] thenlastpointy = 1IF lastpointy <> lastpointy[1] THENdrawpoint(barindex,xlow,3) coloured (254,254,0,255) // jaune clairENDIF//elsif red < red [1] then//lastpointy = 2//IF lastpointy <> lastpointy[1] THEN//drawpoint(barindex,xhigh,3) coloured (0,254,255,255) // bleu ciel//ENDIFendif//IF close > open THENif greensum then //green > green [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,0) //bordercolor(6,43,22) // vert clair bordure vert foncé//ELSEelsif redsum then //red > red [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,0) //bordercolor(255,0,0) // rose magenta bordure rougeENDIFRETURN // t as " HA transparent "01/25/2022 at 7:40 AM #186529Bene, qui puoi trovare i colori principali http://cloford.com/resources/colours/500col.htm.
I 3 parametri del colore sono R,G,B (r,g,b,t). Il quarto, facoltativo, è la trasparenza, che va da da 0 a 255.
01/25/2022 at 12:17 PM #186581Eureka! riga di modifica 29 e il codice bene
Grazie Roberto
HEIKIN ASHI TRANSPARENTS ROBERTO V1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657// HEIKIN ASHI TRANSPARENTS ROBERTO V1 15.01.2022// cul plat Nicolas 07.01.2022defparam CALCULATEONLASTBARS = 100xClose = (open+high+low+close)/4IF BarIndex=0 THENxOpen = openxHigh = highxLow = lowELSexOpen = (xOpen[1] + xClose[1])/2xHigh = Max(Max(high, xOpen), xClose)xLow = Min(Min(low, xOpen), xClose)ENDIFgreen = xopen<xclose and xlow=xopenred = xopen>xclose and xhigh=xopengreensum = summation[5](xClose > xOpen) = 5redsum = summation[5](xClose < xOpen) = 5////////////////////////////////////////////////////if green and not green[1] thenlastpointx = 1IF lastpointx <> lastpointx[1] THENdrawpoint(barindex,xlow,5) coloured (9,82,40,255) // greenENDIFelsif red and not red[1] thenlastpointx = 2IF lastpointx <> lastpointx[1] THENdrawpoint(barindex,xhigh,5) coloured(200,0,0,255)// redENDIFendif/////////////////////////////////////////////////OKif green > green [1] thenlastpointy = 1IF lastpointy <> lastpointy[1] THENdrawpoint(barindex,xlow,3) coloured (255,255,240)// IvoireENDIFelsif red > red [1] thenlastpointy = 2IF lastpointy <> lastpointy[1] THENdrawpoint(barindex,xhigh,3) coloured (255,255,240)// IvoireENDIFendif//IF close > open THENif greensum then //green > green [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,0) //bordercolor(6,43,22) // vert clair bordure vert foncé//ELSEelsif redsum then //red > red [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,0) //bordercolor(255,0,0) // rose magenta bordure rougeENDIFRETURN t// Variables :// t = 0// décocher heikin A transp Roberto V1// décocher Chandelier1 user thanked author for this post.
01/25/2022 at 3:16 PM #18660001/25/2022 at 4:09 PM #186606Quali sono i punti UP e DOWN che t’interessano?
01/25/2022 at 7:12 PM #186616 -
AuthorPosts
Find exclusive trading pro-tools on