Smoothed Bollinger% Strategy Daily

Smoothed Bollinger% Strategy Daily

This strategy uses Smoothed Bollinger %b indicator, posted by Nicolas: “This is the modified% bollinger bands oscillator remade by Sylvain Vervoort. It’s using an Heiken Ashi closing price instead of the classic close value with Fears average. This indicator tend to accurate dark be and less choppy for intendifying turning points of the Dow theory by counting reverse oscillation of curved the”.

I have thought to post it because I believe that a winning portfolio must be founded on  daily strategies, that works with good values for a long time.
I don’t believe in the strategies with time frame inferior to the daily. And I believe that a winning portfolio must be composed from strategies that have little gain but costant,  It’s the whole portfolio that will bring to good results.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Vonasi • 01/03/2018 #

    Thanks for sharing this ALE. I think it will take a little studying to fully understand how it all works but one part immediately caught my attention – the trailing start calculation using a blend of ATR and price. very interesting and definitely something that may find its way into some other strategies I think.

    • ALE • 01/03/2018 #

      Yes Vonasi
      You can use and improve trailing stop in every strategy, I can suggest to use graph fuction of it’s value to adapt it to other markets

    • Altares • 01/03/2018 #

      Ciao Ale, ho notato che in molti usate l’ATR per i TS, ma devo avere qualche problema alla mia piattaforma, l’ATR dei CFD di IG ha un andamento totalmente diverso da quello dei mercati ufficiali, è comunque attendibile ed utilizzabile con profitto?

  2. ALE • 01/03/2018 #

    Ciao
    Per come l’ho usato qui si.

  3. Kv6 • 01/03/2018 #

    In demo mode (100,000 periods) I don’t get those ratios… I get a 76.95% winning and 1.75 winners/ losers operations

    • ALE • 01/03/2018 #

      Please try again

  4. andreag76 • 01/03/2018 #

    Grazie Ale,
    li proverò e modificherò con timeframe più bassi, sui 15 e 30 minuti

    • patrick356 • 01/03/2018 #

      Hi Andreag76,
      Did you test it in shorter time frames? Any success?
      / Patrick

  5. borzack91 • 01/03/2018 #

    e un casino mettere apposto tutte le variabili, non tornano i nomi con sui sono stati ottimizzate

    • ALE • 01/03/2018 #

      Hello, can i help you in the topic?

  6. maxgomma • 01/03/2018 #

    Hello Ale first of all congratulations for the strategy … I’m asking you something .. if I try to put any of these strategies in real the system tells me:
    1) I have to replace the variables with a specific value and I have to replace these variables with a specific numerical value in the code of the trading system
    2) that the “Graph” instruction can not be used in automatic mode ..
    At this point, since I’m almost new to automatic trading, I’m asking for help on how to solve these two problems … Meanwhile, thanks for the help and for all the work you do!

  7. ALE • 01/03/2018 #

    Hello Max Gomma,
    Thanks for your attention, I’ve open a Topic “Smoothed Bollinger% Strategy Daily_Topic”
    http://www.prorealcode.com/topic/smoothed-bollinger-strategy-daily_topic/

  8. maxgomma • 01/03/2018 #

    Thanks Ale..ma for the Graph at the bottom of the code? how should i change it?

  9. ALE • 01/03/2018 #

    Yes, cancel graph function not else

  10. maxgomma • 01/03/2018 #

    Thanks for the availability …

  11. Frank • 01/03/2018 #

    Hi, will the strategy ever go short? In back-test it was only long trades…

  12. ALE • 01/03/2018 #

    Yes of course

  13. Pere • 01/03/2018 #

    If you remove the Takeprofit and the exit parts, and let work the trailing stop strategy, in the DAX strategy the results are better. I didn’t try it in the other index.

    //Nicolas_Smoothed Bollinger %b indicator_11.12.2015
    //Ale_Strategy_29.12.2017
    //Market: Dax
    //Time Frame: Daily
    //No Tested on Real market yet

    DEFPARAM CumulateOrders = FALSE
    ONCE avgEnterEnabled = 1//AVGE //Moving Average Entry Filter – 0 OFF, 1 ON
    ONCE trailingStopType = 1//TRT // Trailing Stop – 0 OFF, 1 ON
    ONCE stoploss = SL100 // Stop Loss %
    ONCE trailingstoplong = TSL // Trailing Stop Atr Relative Distance
    ONCE trailingstopshort = TSS // Trailing Stop Atr Relative Distance
    ONCE atrtrailingperiod = ATRSP // Atr parameter Value
    ONCE minstop = MINSTP // Minimum Trailing Stop Distance

    // MOVING AVERAGE – Parameter
    ONCE avgLongPeriod = AVG // 100
    // Smoothed Bollinger %b indicator – Parameters
    ONCE period = PRD
    ONCE TeAv = TEV
    ONCE SveEnterLongThreshold = SVL
    ONCE SveEnterShortThreshold = SVS

    // TRAILINGSTOP
    //———————————————-
    atrtrail = AverageTrueRange[atrtrailingperiod]((close/10)*pipsize)/1000
    trailingstartl = round(atrtrail*trailingstoplong)
    trailingstartS = round(atrtrail*trailingstopshort)
    if trailingStopType = 1 THEN
    TGL =trailingstartl
    TGS=trailingstarts
    if not onmarket then
    MAXPRICE = 0
    MINPRICE = close
    PREZZOUSCITA = 0
    ENDIF
    if longonmarket then
    MAXPRICE = MAX(MAXPRICE,close)
    if MAXPRICE-tradeprice(1)>=TGL*pointsize then
    if MAXPRICE-tradeprice(1)>=MINSTOP then
    PREZZOUSCITA = MAXPRICE-TGL*pointsize
    ELSE
    PREZZOUSCITA = MAXPRICE – MINSTOP*pointsize
    ENDIF
    ENDIF
    ENDIF
    if shortonmarket then
    MINPRICE = MIN(MINPRICE,close)
    if tradeprice(1)-MINPRICE>=TGS*pointsize then
    if tradeprice(1)-MINPRICE>=MINSTOP then
    PREZZOUSCITA = MINPRICE+TGS*pointsize
    ELSE
    PREZZOUSCITA = MINPRICE + MINSTOP*pointsize
    ENDIF
    ENDIF
    ENDIF
    if onmarket and PREZZOUSCITA>0 then
    EXITSHORT AT PREZZOUSCITA STOP
    SELL AT PREZZOUSCITA STOP
    ENDIF
    ENDIF
    //————————————————————————————————–
    // FILTER SETTINGS
    //————————————————————————————————–
    //MOVING AVERAGE
    longAvg = Average[avgLongPeriod] (close)
    avgFilterEnterLong = (close>longAvg OR NOT avgEnterEnabled)
    avgFilterEnterShort = (close<longAvg OR NOT avgEnterEnabled)

    //Smoothed Bollinger %b indicator
    haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + (Open[2]+High[2]+Low[2]+Close[2]))/2
    haC = ((Open+High+Low+Close)/4 + haOpen + Max(high,haOpen) + Min(low,haOpen)) /4
    TMA1 = tema[TeAv](haC)
    TMA2 = tema[TeAv](TMA1)
    Diff = TMA1-TMA2
    ZlHA = TMA1+Diff
    percb = (tema[TeAv](ZLHA)+2*STD[period](tema[TeAv](ZLHA))-weightedaverage[period](tema[TeAv](ZLHA))) / (4*STD[period](tema[TeAv](ZLHA)))*100
    SveFilterEnterLong = (percb SveEnterShortThreshold )

    // STRATEGY
    //————————————————————————————————–

    IF NOT LongOnMarket AND avgFilterEnterLong AND SvEFilterEnterLong THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF

    IF NOT ShortOnMarket AND avgFilterEnterShort AND SveFilterEnterShort THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF

    SET STOP %LOSS stoploss
    //GRAPH TGL

    • ALE • 01/03/2018 #

      thanks Pere, please uses the topic mentioned above to add further comments, analysis, test and contributions, thanks

  14. maxgomma • 01/03/2018 #

    Hello everyone .. I try to do backtest of the latest version of Pere gives me this error on line 78. Syntax error .. complete the syntax of this line … SveFilterEnterLong = (percb SveEnterShortThreshold)
    How do you correct? thank you

  15. ALE • 01/03/2018 #

    Hello maxgomma please use relative topic

  16. lizmerrill • 01/03/2018 #

    re:AverageTrueRange[atrtrailingperiod]((close/10)*pipsize)/1000, can you explain to how the input of ((close/10)*pipsize) is incorporated into the calculation of averagetruerange?

  17. ALE • 01/03/2018 #

    There is not a particular motive, that formula allows to find a relative value of the price, necessary to make to work the trailing stop in varying way and I don’t fix.

  18. GiGi10 • 01/03/2018 #

    Buon giorno Alessandro e complimenti per la strategia. Sono un neofita di ProRealTime e di ProRealCode. Vorrei fare girare sul demo la tua strategia su EUR/USD per studiare ed imparare. Ho provato ad avviarla, ma senza successo, Mi puoi dare qualche consiglio? Pensavo che il file .ITF potesse già essere attivato su un conto demo. Grazie. Buon lavoro.

    • ALE • 01/03/2018 #

      Hello gigi, ok no problem I’ll explain it in the topic of This strategy

    • ALE • 01/03/2018 #

      Hello Gigi
      Could you explain your question in the Topic?

  19. frovira • 01/03/2018 #

    I’ve tested it and I can onl say that it is amazing! Many thanks !!
    If I can I will try to improve it, but for now it is working in my real account perfectly for EEUU 100 Tech and S&P.
    Many thanks for this big strategy!!

  20. avatar
    Ruark Baker • 01/03/2018 #

    Hello, I have back tested you system and found that the ATR variable of 9 works well in low volatility situations but leads to a significant loss in February when the ATR had spiked. Would there be a way to add a variable such as a max trailing distance to allow for high volatility?

    Thanks

  21. lumarino • 01/03/2018 #

    Bom dia Ale. Obrigado pela partilha. Você tem alguma das suas estratégias operando em Modo Real?? Quais são as estrategias? é com a IG? Obrigado.

    • ALE • 01/03/2018 #

      OLÁ NESTE MOMENTO EU NÃO ESTOU USANDO ESTAS ESTRATÉGIAS DESDE QUE EU TENHO O CAPITAL OCUPADO PEQUENO EM OUTROS SISTEMAS.
      BROKER IG EU SOU USADO.

  22. lumarino • 01/03/2018 #

    Qual é então a sua Estrategia de eleição ALE??

  23. Wester • 01/03/2018 #

    HI, which values do I need to change before I can use it?

    • ALE • 01/03/2018 #

      Hello Wester,
      you can change or not every variables that are in the code.

      if you need assistence , please write in the forum here:
      https://www.prorealcode.com/topic/smoothed-bollinger-strategy-daily_topic/

  24. LancerX • 01/03/2018 #

    This catch my attention, tried to load in pro order but not coming through. What variables need to change?

  25. macdopa • 01/03/2018 #

    Hello ALE.
    Is there any way to help us develop or program an algo-strategy for automatic trading?
    Thank you in advance for working with us on this revolutionary strategy called: “kangaroo jump mouse nibbling”.

  26. Giuseppe68 • 01/03/2018 #

    Ciao, sono nuovo e poco esperto, volevo chiedere perchè il ProBacktest lo esegue correttamente, mentre se lancio la strategia nel ProOrder vengono rilevati errori come: “il code non è valido. Correggilo. Linea 22: Caratteri mancanti. Suggerimenti: fine del codice” e anche “L’istruzione “Graph” non può essere usata in modalità trading automatico”. Qualcuno può spiegare perchè? grazie

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+49 more likes

Related users ' posts
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
YvesRobert Hello David, can you explain to me this strategy ? You calculate the difference between t...
davidelaferla The strategy calculates the variation between the body and the previous body (however in pro...
KumoNoJuzza Thanks David it looks great. I am playing with it to get familiar. Do you think it would b...
BaderBader Good day davidelaferla, Thank you for making your strategy available to the community, I do...
bousalahane hello, thank you for sharing, I’m not top strong in the programation part, there is a way to...
Fgats Hi, With this indicator I just wanted to show the interest that can exist to synthesize th...
davidguerreir how to adapt nbStdSig values ?
YvesRobert Hello davidelaferla, how do you put a stop loss and where exactly ? the moment you enter on ...
Hypersimo Buongiorno Davide a quale distanza inserire stop loss e tp nella strategia? grazie
beanpole Thank you for sharing the code. I applied it to the "CAC40 Index" on Euronext market on a da...
superfalcio Hello, very interesting. Do you have already some tested condiction including timeframe and ...
FXtonio @RICOU en 1 minutes avec un filtre de tendance ZLSMA 200 et eventuellement un rsi 7 , 69% de...
JC_Bywan For people interested in the screener: https://www.prorealcode.com/topic/screener-buy-sell-m...
octum Gracias NJicolas. Las lineas 35 y 36 dan fallo. (¿Es adrede para iniciados?) Puedes co...
Alfy
2 years ago
geroniman bonjour si je comprends bien, qaund els points sont verts on regarde pour un long, le blanc ...
Alfy No, the dots only show the compression of the volatility. There are 3 levels of "squeeze" wh...
ted.hulsman Hi Alfy, I'm trying to understand your indicator, so I made the Bollinger Bands and the Kelt...
Khaled Thank you Nicolas! Looks like TDI (Trader Dynamic Index). Interesting to give Exit Signal as...
Nicolas ColorBetween is an instruction added last year: https://www.prorealcode.com/documentation/co...
finplus Bonjour, serait-il possible de remplacer l'écart formé par les bandes de Bollinger par l'ATR...
bab el franco hello once installed I have no results despite different options of markets or temporality
Nicolas Sorry there was a small issue in the code, i have changed the attached itf file and updated ...
Mitchy14 Hi Nicholas, apologies, I am usually fairly good at implementing your creations (for which I...
Nicolas Are you using PRT version pre-v11? TIMEFRAME for indicators is possible since months for pro...
Pensera Bravo Nicolas ! Tu es en quelque sorte l’inventeur de Metascore…(oups je viens de lire jusqu...
Nicolas Dans un but d'investissement pure, et non spéculatif.
Enigma08 Hi Juanj. I am new to ProrealTime and I am trying to program the Proscreener. I want the Pro...
Fabian Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thomas Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
bertrandpinoy @MAKSIDE I would be grateful if you send me your version. have a nice day
oraclus Bonjour indicateur très intéressant existe t il un screener qui détecte les actions qui donn...
IV Mcm Ce n'est pas le but de cet indicateur, mais avec un peu d'entraînement vous pourriez le code...
Yantra Thank you for sharing your good work!
imonix Have been trying this on demo since Monday before deciding whether to go live with it. Using...
Roberto Blázquez I'm sorry, I've tried it since November 2012 and it's bad results.
Dunstan I would like to get guidance_ How do I access and attach this indicator to my MT5 platform...
Nicolas You can't, use prorealtime, it's way better
jc84 Thank you very much for this indicator , not provided by PRT I was actually working at thi...
Pierreco1991 Hello Can you confirm this configuration for FRANCE ? //Time in UTC+8 Rest0Minutes =...
Nicolas Ask on an Excel website?!
JJMR HOLA NICOLAS, TENGO LA ULTIMA VERSION ACTUALIZADA DEL INDICADOR TTM SQUEEZE PRO EN LA VERSIO...
imokdesign @nicolas ,if in want to "call" this indicator, which values i have to write down?

Top