HASMA
Forums › ProRealTime forum Français › Support ProScreener › HASMA
- This topic has 0 replies, 1 voice, and was last updated 6 years ago by supertiti.
Viewing 1 post (of 1 total)
-
-
08/11/2018 at 6:30 PM #78012
Bonsoir à tous,
J’aimerai faire un screener à priori simple mais qui ne l’est pas !
En partant des 3D Candle HA ( heikin Ashi ) codé par ALE et une moyenne mobile simple p = 7
1 – j’aimerai trier le croisement à la hausse de 3d candle avec SMA7
2- la même chose à la baisse
==> le systeme me dit : ne retourne pas de valeur !
Alors où est l’astuce pour un truc qu’on voit et qui n’existe pas ?!
3D CANDLE HA by ALE123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990// 3D CANDLE HA Supertiti by ALE PRC Heikin Ashi//09.07.2018 //ALE@PROREALCODE//////////////////////////////////////////////////////////////TranslateCandle =0 // To maintain both the candles on the graph without overlap//TransRange =0,01 // To choose distance of the 3D caNdle//Transparency =4//////////////////////////////////////////////////////////////ONCE CandleCci =0 // CANDLE + COMMODITY CHANNEL INDEX COLOUR//ONCE CandleRsi =0 // CANDLE + RSI COLOUR//ONCE CandleStochastic =0 // CANDLE + STOCASTIC COLOUR//ONCE CandleCycle =0 // CANDLE + CYCLE COLOUR//ONCE CandleDI =0 // CANDLE + DIRECTIONAL INDEX COLOUR//////////////////////////////V////////////////////////////////ONCE CciPeriod =20//ONCE RsiPeriod =14//ONCE N =14//ONCE K =3//ONCE DiPeriod =14//HEIKIN ASHI SMOOTHED PRC 22.10.2016//SmoothPeriod=2xClose = (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)ENDIFAvOpen=Average[SmoothPeriod](xOpen)AvHigh=Average[SmoothPeriod](xHigh)AvLow=Average[SmoothPeriod](xLow)Avclose=Average[SmoothPeriod](xClose)If CandleCci then // CANDLE + COMMODITY CHANNEL INDEX COLOURMyCci = Cci[max(1,CciPeriod)](customclose)R = (200-MyCci)G =(200+MyCci)if TranslateCandle thenDRAWCANDLE(AvOpen-(AvOpen*TransRange*pointsize), AvHigh-(AvHigh*TransRange*pointsize), AvLow-(AvLow*TransRange*pointsize), AvClose-(AvClose*TransRange*pointsize)) Coloured (R,G,0,transparency*50)elseDRAWCANDLE(AvOpen, AvHigh, AvLow, AvClose) Coloured (R,G,0,transparency*50)endifElsif CandleRsi then // CANDLE + RSI COLOURMyRsi = RSI[max(1,RsiPeriod)](customclose)R =50+(200-(MyRsi-50)*12)G =50+(200+(MyRsi-50)*12)if TranslateCandle thenDRAWCANDLE(AvOpen-(AvOpen*TransRange*pointsize), AvHigh-(AvHigh*TransRange*pointsize), AvLow-(AvLow*TransRange*pointsize), AvClose-(AvClose*TransRange*pointsize)) Coloured (R,G,0,transparency*50)elseDRAWCANDLE(AvOpen, AvHigh, AvLow, AvClose) Coloured (R,G,0,transparency*50)endifElsif CandleStochastic then // CANDLE + STOCHASTIC COLOURMyStoch = Stochastic[max(1,N),max(1,K)](customclose)R =50+(200-(MyStoch-50)*6)G =50+(200+(MyStoch-50)*6)if TranslateCandle thenDRAWCANDLE(AvOpen-(AvOpen*TransRange*pointsize), AvHigh-(AvHigh*TransRange*pointsize), AvLow-(AvLow*TransRange*pointsize), AvClose-(AvClose*TransRange*pointsize)) Coloured (R,G,0,transparency*50)elseDRAWCANDLE(AvOpen, AvHigh, AvLow, AvClose) Coloured (R,G,0,transparency*50)endifElsif CandleCycle then // CANDLE + CYCLE COLOURMyCycle = Cycle(customclose)R = (200-MyCycle*10)G =(200+MyCycle*10)if TranslateCandle thenDRAWCANDLE(AvOpen-(AvOpen*TransRange*pointsize), AvHigh-(AvHigh*TransRange*pointsize), AvLow-(AvLow*TransRange*pointsize), AvClose-(AvClose*TransRange*pointsize)) Coloured (R,G,0,transparency*50)elseDRAWCANDLE(AvOpen, AvHigh, AvLow, AvClose) Coloured (R,G,0,transparency*50)endifElsif CandleDI then // CANDLE + DIRECTIONAL INDEXMyDi = DI[max(1,DiPeriod)](customclose)R = 50+(200-MyDi*10)G =50+(200+MyDi*10)if TranslateCandle thenDRAWCANDLE(AvOpen-(AvOpen*TransRange*pointsize), AvHigh-(AvHigh*TransRange*pointsize), AvLow-(AvLow*TransRange*pointsize), AvClose-(AvClose*TransRange*pointsize)) Coloured (R,G,0,transparency*50)elseDRAWCANDLE(AvOpen, AvHigh, AvLow, AvClose) Coloured (R,G,0,transparency*50)endifendifReturn -
AuthorPosts
Viewing 1 post (of 1 total)