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?

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

  1. Vonasi • 343 days ago #

    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 • 343 days ago #

      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 • 342 days ago #

      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 • 341 days ago #

    Ciao
    Per come l’ho usato qui si.

  3. Kv6 • 341 days ago #

    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 • 341 days ago #

      Please try again

  4. andreag76 • 340 days ago #

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

    • patrick356 • 309 days ago #

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

  5. borzack91 • 339 days ago #

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

    • ALE • 338 days ago #

      Hello, can i help you in the topic?

  6. maxgomma • 339 days ago #

    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 • 339 days ago #

    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 • 339 days ago #

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

  9. ALE • 339 days ago #

    Yes, cancel graph function not else

  10. maxgomma • 339 days ago #

    Thanks for the availability …

  11. Frank • 335 days ago #

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

  12. ALE • 335 days ago #

    Yes of course

  13. Pere • 325 days ago #

    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 • 325 days ago #

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

  14. maxgomma • 317 days ago #

    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 • 317 days ago #

    Hello maxgomma please use relative topic

  16. lizmerrill • 308 days ago #

    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 • 308 days ago #

    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 • 296 days ago #

    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 • 296 days ago #

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

    • ALE • 289 days ago #

      Hello Gigi
      Could you explain your question in the Topic?

  19. frovira • 292 days ago #

    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. Ruark Baker • 292 days ago #

    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 • 284 days ago #

    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 • 284 days ago #

      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 • 284 days ago #

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

avatar
Register or

Likes

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

+25 more likes

Related users ' posts
lokbuscas is it possible to make a screener with this conditions??? thank you
achel I believe so but I leave it to Nicolas to decide if it is possible
Nicolas Please open a new topic in the screeners forum
Leo Does it opens pending orders?... maybe they were not trigger.
Mattzi Dont know, all i can see is that it opened an order yesterday in backtest but not live. Th...
Jean-Christophe Hello Leo, when running the strategy from 29/12/2015 to 31/08/2018 on ProRealTime Premium, I...
apachx Hi. Please, describe the algorithm in words. I want to understand how it works, but for now...
juanj This gets me thinking about creating a strategy on the 5min timeframe that only takes trades...
GraHal I noted above does okay on DAX 10 min with even a reduction to 30 of the Stop Loss. I've s...
Kris75 Hi Grahal, What about making the same great work you did with the snipet on google doc but...
Nicolas Sorry again, doing my best to fix this problem..
Gianluca Sorry but the 2° code that you posted have some problem it doesn't work
Leo I have to check
Alai-n Merci pour ce travail...
patmaba merci Alai-n. C'est ma première participation sur prorealcode, merci pour à toi pour ton co...
swapping Oups nicolas ! je pense que tu a oublié de mettre les variables "setting" accessible en exte...
Nicolas Je viens de vérifier, elles y sont pourtant?
swapping Mea culpa, j'ai fait un bête (copier/coller) et forcément cela ne pouvait pas y être puisqu'...
thierryp Bonjour Nicolas, merci pour le travail que vous effectuez. Je ne suis vraiment pas bon dans ...
Wiezman74 any chance you can email me this indicator for MT4,, can't get the code to work.. limited kn...
Nicolas This website is dedicated to prorealtime programming. But you can ask for custom programming...
flodefacebook Merci Nicolas pour cet indicateur. Très utile dans une technique de retournement.
HeikinAshi thank you for this very interesting indicator Nicolas! did you define a tradable setup fo...
danibo Hi Francesco, thank you for replying. I try to be crearer. My question is: - what is the...
JanWd Hi Francesco, nice algorithme, works with me on other markets as well !
Francesco78 thank you Janwd. Do you mind sharing where it works? happy new year!
eltonio8 Hi everyone, can someone explain these lines literaly : if MyBoll >= 50 THEN upBo...
redz bonjour, comment changer les paramettre de la BB en 20 , 2.2 ? hello, how to change BB sett...
Realtime82 Hi I was wondering if it would be possible to get an alert (by sound) when the signals shows...
juanj To follow new developments or get the latest version of this strategy please visit the forum...
tahar Hello Juan, I wanted to test Universal Strategy via a demo account on PRT but nothing happen...
BravoDelta @juanj wondering if you may help me please. I am looking for a simply strategy to use on the...
rejo007 C'est à propos de la partie "short" proposée par SimoneDasGupta un peu plus haut dans les co...
Doctrading AH ok, I think the ca3 is the same : ca3 = pB[1] < 0.2 and pB < 0.2 Best regards,
chromosome21 Hello everybody, First, thank you so much for all your advices, I'm a begginer in trading a...
gackeen Scusa Pier, scusate tutti, sono nuovo. Ho caricato il file e mi viene restituito il messaggi...
JR1976 HI Nicolas , I tried to copy paste but not import directly and the code works well I hav...
mcosta This code doesn't work on 10.3 platform(IG), neither with copy/paste nor with itf import, an...
Nicolas Thanks for sharing your automated trading strategy idea. Even if you accumulate loosing orde...
Maz Ok. Potential here to build onto this. Have opened a forum thread for further discussion: h...
Nicolas An answer to a query that has been posted in the squeeze indicator: https://www.prorealcode....
Nicolas ok, so your query should be asked there: https://www.prorealcode.com/prorealtime-market-scre...
Nicolas answered here: https://www.prorealcode.com/prorealtime-market-screeners/ttm-squeeze-fired-sc...
mcha Bonsoir Nicolas, Merci beaucoup pour ce complément de code, qui fait disparaitre l'histogr...
Nicolas Supprimer les //
Willy Good evening Nicolas, Is it possible to turn this indicator into a screener? Thanks
Nicolas Yes sure, please make a new topic/query in the appropriate forum.

Top