Candele in trasparenza
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Candele in trasparenza
- This topic has 26 replies, 3 voices, and was last updated 2 years ago by supertiti.
-
-
01/13/2022 at 6:06 PM #185360
Buonasera Roberto,
sarebbe possibile avere un indicatore che inserisca in trasparenza, sopra le candele heikin ashi, le candele giapponesi standard ma in trasparenza e con quelle positive azzurre e quelle negative gialle?
Grazie mille in anticipo,
Stefano
01/14/2022 at 10:45 AM #185432Eccolo:
1234567t = 30 //Trasparenza (0=invisibile, 255=piena)IF close > open THENDrawCandle(Open,High,Low,Close) coloured(0,0,255,t) //BluELSEDrawCandle(Open,High,Low,Close) coloured(205,205,0,t) //GialloENDIFRETURN01/14/2022 at 11:11 AM #185438Ciao Roberto,
Uso un codice in heikin ashi (richiesta fatta in un post francese) dove vorrei che heikin ashi appaia in modo trasparente, è possibile?
Grazie per l’aiuto
buona giornata
1 user thanked author for this post.
01/14/2022 at 1:13 PM #185446Ecco:
12345678910111213141516t = 30 //Trasparenza (0=invisibile, 255=piena)// Heikin Ashi candlesticks (definition)once xOpen = openxClose = (open + close + high + low) / 4if barindex > 0 thenxOpen = (xOpen[1] + xClose[1]) / 2endifxLow = min(low,min(xClose,xOpen))xHigh = max(high,max(xClose,xOpen))//IF close > open THENDrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,0,255,t) //BluELSEDrawCandle(xOpen,xHigh,xLow,xClose) coloured(205,205,0,t) //GialloENDIFRETURN01/15/2022 at 11:23 AM #18553401/15/2022 at 11:33 AM #18553901/15/2022 at 12:16 PM #18554501/15/2022 at 12:19 PM #185547HA ROBERTO1234567891011121314151617181920// HEIKIN ASHI TRANSPARENT ROBERTO 15.01.2022//t = 30 //Trasparenza (0=invisibile, 255=piena)// Heikin Ashi candlesticks (definition)once xOpen = openxClose = (open + close + high + low) / 4if barindex > 0 thenxOpen = (xOpen[1] + xClose[1]) / 2endifxLow = min(low,min(xClose,xOpen))xHigh = max(high,max(xClose,xOpen))//IF close > open THENDrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,t)bordercolor(27,79,8) // vert clair bordure vert foncéELSEDrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,t)bordercolor(255,2,2) // rose magenta bordure rougeENDIFRETURN t as " HA transparent "01/15/2022 at 12:19 PM #18554801/15/2022 at 12:48 PM #185554Perfetto!
Grazie 🙂
01/15/2022 at 12:51 PM #185555Ho creato questo codice dal tuo, che è un grande passo avanti.
È possibile mostrare solo i ‘flat bottom’ di ogni nuova tendenza? dopo 5 HA dello stesso colore per esempio
HA Tranparent ROBERTO123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354// HEIKIN ASHI TRANSPARENTS ROBERTO 15.01.2022// cul plat Nicolas 07.01.2022defparam CALCULATEONLASTBARS = 50xClose = (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=xopen////////////////////////////////////////////////////if green and not green[1] thendrawpoint(barindex,xlow,5) coloured (9,82,40) //(0,200,0)// greenelsif red and not red[1] thendrawpoint(barindex,xhigh,5) coloured(200,0,0)// redendif/////////////////////////////////////////////////OKif green > green [1] thendrawpoint(barindex,xlow,3) coloured (254,254,226) // jaune clair //(9,82,40) // greenelsif red > red [1] thendrawpoint(barindex,xhigh,3) coloured (254,254,226) // jaune clair //(200,0,0)// redendif///////////////////////////////////////////////// HEIKIN ASHI TRANSPARENT ROBERTO 15.01.2022//t = 30 //Trasparenza (0=invisibile, 255=piena)// Heikin Ashi candlesticks (definition)once xOpen = openxClose = (open + close + high + low) / 4if barindex > 0 thenxOpen = (xOpen[1] + xClose[1]) / 2endifxLow = min(low,min(xClose,xOpen))xHigh = max(high,max(xClose,xOpen))////IF close > open THENif green > green [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,255,0,t)bordercolor(27,79,8) // vert clair bordure vert foncé//ELSEelsif red > red [1] thenDrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,255,t)bordercolor(255,2,2) // rose magenta bordure rougeENDIFRETURN t as " HA transparent "/////////////////////////////////////////////////// Variable :// t = 0 (de 0 à 255)01/15/2022 at 5:15 PM #185583Prova questo:
12345678910111213141516171819202122232425262728293031323334353637383940// 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] thendrawpoint(barindex,xlow,5) coloured (9,82,40) //(0,200,0)// greenelsif red and not red[1] thendrawpoint(barindex,xhigh,5) coloured(200,0,0)// redendif/////////////////////////////////////////////////OKif green > green [1] thendrawpoint(barindex,xlow,3) coloured (254,254,226) // jaune clair //(9,82,40) // greenelsif red < red [1] thendrawpoint(barindex,xhigh,3) coloured (254,254,226) // jaune clair //(200,0,0)// redendif//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/16/2022 at 11:22 AM #18560101/17/2022 at 3:37 PM #185729A me funziona correttamente.
01/18/2022 at 11:05 AM #185805 -
AuthorPosts
Find exclusive trading pro-tools on