créer ProBackTest avec indicateur SSL Hybrid
Forums › ProRealTime English forum › ProOrder support › créer ProBackTest avec indicateur SSL Hybrid
- This topic has 6 replies, 3 voices, and was last updated 8 months ago by robertogozzi.
-
-
02/22/2024 at 2:24 PM #228571
Bonjour,Serait-il possible de m’aider à créer un ProBackTest avec l’indicateur SSL-Hybrid : https://www.prorealcode.com/prorealtime-indicators/ssl-hybrid-indicator/Critères ACHAT : lorsque “SSL Hybrid -ATR” croise à la hausse “SSL Hybrid baseline”Critères VENTE : lorsque “SSL Hybrid -ATR” croise à la baisse “SSL Hybrid baseline”Si ce n’est pas pertinent ou si cela mérite d’être complété par votre expertise, n’hésitez surtout pas! 🙂D’avance merci et bonne journéeGood morning,
Would it be possible to help me create a ProBackTest with the SSL-Hybrid indicator: https://www.prorealcode.com/prorealtime-indicators/ssl-hybrid-indicator/
PURCHASE criteria: when “SSL Hybrid -ATR” crosses upwards “SSL Hybrid baseline”
SALE criteria: when “SSL Hybrid -ATR” crosses downward “SSL Hybrid baseline”
If it is not relevant or if it deserves to be supplemented by your expertise, do not hesitate! 🙂
Thanks in advance and have a good day
02/24/2024 at 1:13 PM #228686Hi @francis59
I don’t quite understand what you mean by “SSL Hybrid-ATR”…
Alternatively, the system that uses the “Close” and the “BaseLine”…123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146atrlen = 14 //(Integer)mult = 1 //(Decimal)smoothing=2 //(Average type. Default WMA)//showcandleviolation=true //(Boolean)//showcolor=true (Boolean)//showSSL2=true (Boolean)ssl1Type = 7 //(Average type. Default HMA)len = 60 //(Integer)ssl2Type = 7 //(Average type. Default HMA)len2 = 5 //(Integer)Exittype = 7 //(Average type. Default HMA)len3 = 15 //(Integer)//showbaseline = true (Boolean)baselinetype = 7 //(Average type. Default HMA)Usetruerange = 1 //(Boolean)multy = 0.2 //(Decimal)////////////////////////////////////////////////////////////////////atratrlensmoot = average[atrlen,smoothing](TR(close))//atr up/low bandsupperband = atrlensmoot * mult + closelowerband = close - atrlensmoot * mult////Ssl 1emahigh = average[len,ssl1Type](high)emalow = average[len,ssl1Type](low)////Ssl 2mahigh = average[len2,ssl2Type](high)malow = average[len2,ssl2Type](low)////Exitsrc = CustomCloseexithigh = average[len3,ExitType](high)exitlow = average[len3,ExitType](low)////keltner baseline channelbbmc = average[len,baselineType](close)keltma = average[len,baselineType](src)if UseTrueRange thenmyrange = trelsemyrange = high-lowendifrangema = exponentialaverage[len](myrange)upperk = keltma + rangema * multylowerk = keltma - rangema * multy////baseline violation candleopenpos = open*1closepos = close*1difference = abs(closepos-openpos)atrviolation = difference > atrlensmootinrange = upperband > bbmc and lowerband < bbmccandlesizeviolation = atrviolation and inrange//Ssl1 valuesif close > emahigh thenhlv = 1elsif close < emalow thenhlv = -1elsehlv = hlv[1]endifif Hlv < 0 thenssldown = emahighelsessldown = emalowendif//Ssl2 valuesif close > mahigh thenhlv2 = 1elsif close < malow thenhlv2 = -1elsehlv2 = hlv[1]endifif hlv2 < 0 thenssldown2 = mahighelsessldown2 = malowendif//Exit valuesif close > exithigh thenhlv3 = 1elsif close < exitlow thenhlv3 = -1elsehlv3 = hlv3[1]endifif hlv3 < 0 thensslexit = exithighelsesslexit = exitlowendifbasecrosslong = close crosses over sslexitbasecrossshort = sslexit crosses over closeif basecrosslong thencodiff = 1elsif basecrossshort thencodiff = -1elsecodiff = 0endif/////////SSL2 continuation from ATR//////////////atrcrit =0.9upperhalf = atrlensmoot * atrcrit + closelowerhalf = close - atrlensmoot * atrcritbuyinatr = lowerhalf < ssldown2buycont = close > bbmc and close > ssldown2sellinatr = upperhalf > ssldown2sellcont = close < bbmc and close < ssldown2buyatr = buyinatr and buycontsellatr = sellinatr and sellcont//Points colourif buyatr thenrpto = 76gpto = 175bpto = 80elsif sellatr thenrpto = 156gpto = 39bpto = 176elserpto = 200gpto = 200bpto = 200endifIf Close Crosses Over BBMC thenBuy 1 contract at MarketEndIfIf Close Crosses Under BBMC thenSellShort 1 contract at MarketEndIf02/26/2024 at 2:26 PM #228763Hi JS,
Thanks for your quick and clear answer, that’s was I looked for.
One more help, is it possible to create a screener to catch the right time to BUY and/or SELL based on your work above?
Thanks a lot in advance.
Have a good day
02/27/2024 at 5:44 AM #22879302/27/2024 at 6:48 AM #228798Bonjour,Oui veuillez m’excuser, c’est bien noté 🙂Bonne journéeP.S: si jamais ma demande ci-dessus n’est pas utile, dites-le moi pour clôturer le sujet sinon par hasard, saurez-vous y répondre? 🙂 d’avance merciGood morning,
Yes, please excuse me, it is well noted 🙂
Good day
P.S: if my request above is not useful, tell me to close the subject otherwise by chance, will you be able to answer it? 🙂 thanks in advance
02/27/2024 at 7:48 AM #22879902/27/2024 at 10:13 AM #228804 -
AuthorPosts