Bollinger reversal strategy

Bollinger reversal strategy

Hello ProRealCode-community,

i´m an enthusiastic prt-user and run about 10 to 15 profitable strategies live with my IG-account. I have market experience about 15 years.

This is one of my real trading strategies. It deals with Bollinger exit and re-entry with RSI comparison. Results are on DAX/GER30 1 hour chart. It’s a long only strategy.

More can follow …. if you like …

Regards,

Somatolysis

… and here is the code …

Feel free to comment.

Happy trading.

 

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. Johan Holmberg • 08/12/2016 #

    Hey! When i backtest it i get no trades. Is that something more i need to do? Thanks!

  2. Somatolysis • 08/12/2016 #

    Hey Johan,
    do you use IG or Prorealtime directly?
    Maybe you use the End of Day version of prorealtime.?
    This is a system on 1 hour periods. 08:00 to 22:00 (Berlin timezone).
    Can this be the reason.
    Otherwise normaly it should work.
    If not – please contact again.
    regards,
    Soma

  3. Robert975 • 08/12/2016 #

    in the script i get an error on line 1
    “Syntax Error: Line 1, Character 10”
    So i can’t test it in PRT
     
    Did i missed something here?
     
    Greetings Robert

  4. Somatolysis • 08/12/2016 #

    First line in the code must be:
    defparam preloadbars=5000
    Sorry. My mistake

  5. Doctrading • 08/12/2016 #

    Hello,
    Nice system.But on ProRealTime CFD, I don’t have the same results at all.Regards,

  6. Somatolysis • 08/12/2016 #

    Can’t understand this.
    dax 5 or 1 eur mini with 1 hour timeframe 080000 to 220000 trading hours (Berlin timezone). Nicolas published the itf file.
    if you have any further questions please contact me again.
     
    Regards,
    Soma

  7. Doctrading • 08/12/2016 #

    Ah ok. 
    I have 24H/24 DAX.
    How can I get only 08H to 22H graphes ?
    Thanks

  8. larouedegann • 08/12/2016 #

    salut,
    tu peux avoir cela avec 
    Options
    Options plateforme
    Fuseaux et plages horaires avec prt cfd
    a +

  9. Somatolysis • 08/12/2016 #

    Hi Doctrading,
    I only have the German platform.
    You have to use the workstation options. See the screenshot.
    Don´t use 24 hours – between 220000 and 080000 there is no reference market and spread of 7 points at IG.
     

  10. Somatolysis • 08/12/2016 #

     
    haven´t managed to add a file attachment… ???

  11. Eric • 08/12/2016 #

    I dont think you can change the time-data in proorder, indicators and chartdata is always based on 24 hours on a 24 hours index
    you can choose to only trade 0800-2200 but the indicators use all data also out of hours
    maybe Nicolas can enlighten us on this?
     

  12. Somatolysis • 08/12/2016 #

    Hi Eric, 
    you can definitely change it. Just use the workstation options and you’ll see that the trading hours as well as the basics for indicator calculations will take your settings.
    All other things don’t make sense for livetrading.

  13. DonDollar • 08/12/2016 #

    Hi Soma,
    ich brauch hier noch einmal Deine Hilfe. Mit der von Dir geposteten Strategie habe ich mal einen Backtest im DaxMini 1 Min auf 1h laufen lassen. Dabei kam eine Rendite raus von 2,9% Getestet wurde der Zeitraum (5000 bars) vom 26.12.2014 bis heute. 
    Code siehe hier:
    defparam preloadbars=5000
    defparam cumulateorders=false

    defparam FlatBefore = 080000
    defparam FlatAfter = 214500

    a=average[100](Close)
    StdDeviation=std[10](Close)
    BBdo = a -1* StdDeviation

    if not longonmarket and average[200] < average[200][2] and Close < BBdo*0.975 and RSI[10] < 20 and time<220000 then
    buy 1 contracts at market
    endif

    if longonmarket and Barindex - tradeindex >= 2 then
    sell at market
    endif

    set stop %loss 2.5
     

  14. Doctrading • 08/12/2016 #

    OK, it works.
    Thanks !

  15. DonDollar • 08/12/2016 #

    Soma,
    bei mir weichen die Ergebnisse von Deinen ab. Hast Du eine Idee warum? Habe die gleiche Einstellung gewählt und bei IG im Live (nicht Demo) zum testen. Aber die Ergebnisse passen nicht.
    Viele Grüße
    Clemens

  16. Johan Holmberg • 08/12/2016 #

    I’m on ProRealTime from IG. I changed the trading hours to match the screenshot but still can’t get a trade. What more can be wrong?

  17. Somatolysis • 08/12/2016 #

    Hi Johan,
    first line in the code must be:
    defparam preloadbars=5000 (not defparam preloadpars=5000)
    Sorry. My mistake
    Additionally take care that you change trading hours for correct instruments –> for 1 EUR Mini you have to choose “Indizes – DAX” – for 5 EUR Mini you have to choose “Indices – DAX Mini”
    Hope it will help you.
     
    Soma

  18. CKW • 08/12/2016 #

    Hi Soma,
    Thanks for sharing this strategy!
    I am get a positive results but not so sure if same as yours. Can I verify with you from 1/Jan/16 till today, about 8 trades executed? Based on DAX 1H
    Br,
    CKW
     

  19. Somatolysis • 08/12/2016 #

    This is a system on 1 hour periods. 08:00 to 22:00 (Berlin timezone).
    Can this be the reason.

  20. CKW • 08/12/2016 #

    Yes. I already adjusted to 08:00 to 22:00 according to your advice. It’s about 8 trades executed but result is excellent! 7 Wining trades, 1 Losing trade.

  21. Somatolysis • 08/12/2016 #

    Cannot compare now cause i’m on the train. But sure this can be true.

  22. Johan Holmberg • 08/12/2016 #

    Hey Somatolysis.
    Unfortunately i can’t get it to work 🙁 Have tried the time adjustment you suggest following the image. Can i be that i run on PRT 10.2 with java from IG’s website?

  23. CKW • 08/12/2016 #

    Hi Johan,
    I am running PRT 10.2 from IG application. That’s fine for me 🙂

  24. Somatolysis • 08/12/2016 #

    Johan,
     
    do you use the right instrument? Dax 1eur mini or dax 5eur mini
    Soma

  25. Somatolysis • 08/12/2016 #

    If it doesn’t work please send a screenshot of your timesettings

  26. IGOSNELL • 08/12/2016 #

    Thank you, one of the few strategies that worked out of the box and delivered similar results on the SA top forty index. A lot of the strategies that I have written don’t deliver much. Starting to believe that contra trend maybe the way to go not just because your strategy works but at times I have written code and made a mistake by doing the opposite of what I intended and got interesting results. Any more useful strategies you may have please share.
    Thanks 
    Ian

  27. CKW • 08/12/2016 #

    Hi Somatolysis,I tried to modify it for Sellshort case by changing the conditions. Unfortutenately, it doesn’t work.Any specific reason why your strategy don’t include Sellshort case?
     
    br,CKW

  28. Somatolysis • 08/12/2016 #

    Hi CKW,
    no special reason for that.
    Just because it doesn´t work short.
     

  29. Somatolysis • 08/12/2016 #

     
    Hi IGOSNELL,
    you´ll find other of my strategies here – but without the code – maybe I like to start some business out of this.
    https://www.facebook.com/Somatolysis-Handelssysteme-1751085848473845/?fref=ts 
    Description only in German availible at the moment.
    Regards,
    Soma

    • Nicolas • 08/12/2016 #

      Thank you for contribution. Please consider that advertising is tolerate as long as you continue to help people around here on Prorealcode.

  30. IGOSNELL • 08/12/2016 #

    Thanks but unfortunately can’t read German. If you can show that your strategies can work on the SA top 40 index I wold buy them.
    Regards 
    Ian

  31. triss1965@gmail.com • 08/12/2016 #

     Hi, I cant make it work. And if you doing so much money. Why do you have to sell it? It dont sunds right to me. I cant get it funktion. You wrote, wrong it shuld be this, but it is the same code? Are I stuided???????????????
     
    Eva

  32. T-rader • 08/12/2016 #

    Eva… He dosen´t sell anything. He is just a nice guy that want to share on of his strategys with us…
    To get the code to work you need to change defparam preloadpars=5000 todefparam preloadbars=5000.

    Thanks for sharing!

avatar
Register or

Likes

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

+13 more likes

Related users ' posts
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
Fgats
6 months ago
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 ?
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...
Nicolas
1 year ago
f1_maik Ein sehr schöner Indikator, vielen Dank. Wenn ich den Indikator importiere und starte hat d...
Nicolas das ist in der Tat normal, Sie müssen die Auf- und Abwärtsfarbe direkt im Parameterfenster d...
FXtonio Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
supertiti Bel outil si on ne se tape pas sur les doigts avec ! Comment ajoute-on une image avec le co...
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...
magnus59 Hi Nicolas, thaks for your great work here, I need a scanner for the swedish OMX when ma...
Nicolas Yes, sure please open a new topic in the ProScreener forum section, thank you.
paullyons Hello! Thanks for post your indicators. I'd like you to let me know how to draw lines for ...
Rafa Hi Nicolas! I can´t install this indicator. it installs in a separate window not as an av...
Nicolas Add it on the price, see how: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an...
Frankyslo1 No consigo instalarlo en el precio en PRL-version 10
Nicolas
2 years ago
ipbvba Quelqu'un a t il pu créer un screener pour cet indicateur, cela serait très utile. Merci bea...
Nicolas Je pense que le code ci-dessous doit fonctionner pour un screener: //PRC_Wick Pressure | i...
Nicolas la dernière ligne doit être: screener[signal>0 or signal<0](signal)
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...
Finning Hi JuanJ, just a question about the tollerance*pointsize. I know what it is/what it does (in...
JOKAMAURICE Hi I am looking to number bars in a chart to ease analysis. Any idea if a program has been d...
goldenfish67 Hi guys just copied the code but I keep getting an error message: "Line 15 one of the fo...
Roland57800 Bonjour Noobywan, si je comprends bien l'utilisation de ce code que je trouve particulièr...
Noobywan Bonjour, quand la question a été posée dans le forum à celui qui avait fait la requête en am...
Fabian This Code draws only a retangle if the condition has been confirmed and NOT before (in that ...
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands

Top