High volatility candlestick trading strategy

High volatility candlestick trading strategy

Principle of the trading system “Higher volatility”:

The system looks at the last X candles and determines the candle having the biggest difference between its highest and its lowest (range), the difference Z is then kept as a variable. This is the gap between the highest and lowest of the candle having had the highest volatility on the last X candles. At the candle X + 1, the system waits (in all cases) the fence. At the closing of the candlestick X + 1: If the range between the highest and lowest candlestick X + 1 is greater than the Z range, the system opens (at the opening of the candlestick X + 2 ) a position in the direction of the candlestick X + 1. If the deviation between the highest and lowest of the candelstick X + 1 is not greater than the deviation Z, the deviation Z is then re-calculated as a function of the X newest candlestick.

Parameters and system options “Higher volatility”:

1 / Size of the position: in number of contracys.

2/ Stop loss: to determine how many pips / points of the entry price will be positioned the stop loss of an open position.

3 / Take Profit: To determine how many pips / points of the entry price will be positioned the take profit of an open position.

4 / Quantity of lookback periods: to determine the number of candlesticks to be consulted in order to determine which was the most volatile and to calculate Z.

Example: 1/10 2/60 3/30 4/10 That the system consults the last 10 candlesticks and determines the deviation Z of the most volatile candlestick. At the opening of the 11th candle, the system does nothing. It waits for the closure of this 11th candle to know what to do … If the range of this 11th candle is greater than Z, the system opens a position at the opening of the 12th candle in the direction of this 11th candle. If the deviation the higher-lower deviation of this 11th candle is less than Z, the system re-calculates Z.

NB in ​​case of opening of position at the opening of the 12th candle: Open a position at the 12th candle (is that the 11th candle was more volatile than the previous 10 candles …), the system must be able to open a position at the 13th candle in the sense of the 12th candle , If (at the close of the 12th candle) the 12th candle was more volatile than the 11th candle …

 

This trading strategy has been coded by a request on the French forum. Please consider that there is no typical settings and it is not dedicated to any instrument or timeframe at all. This strategy is almost like a “sandbox” for studying purpose and to define suitable parameters for your preferred instruments.

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. Duck74 • 04/05/2017 #

    Buongiorno Nicolascomplimenti bellissima strategia 
    solo una piccola informazione è possibile modificarla inserendo un TrailingStop ??ma non con il comando TrailingStop perchè io ho IG MARKET non mi consente di utilizzarloè possibile ??Grazie Buona Domanica

  2. Dagge99 • 04/05/2017 #

    Why are you the only one sharing unfinished strategys that doesn’t perform well? To help us with an idea and then improve it ourself? I don’t mean to be disrespectful, was just wondering. 

    • Nicolas • 04/05/2017 #

      What are you calling a finished strategy? This one has been coded by a request on forums, since it’s a request made by a webmaster from another trading website to promote prorealcode, I preferred to add it to the library instead of loosing its link in forum. It doesn’t mean this one should be traded as is, but I believe that the way it is coded should be of interest of many coders apprentice around here. Prorealcode is about programming, sharing trading ideas and automated trading analysis, take benefits of everything you’ll find here by studying them, not just by downloading them, no disrespect 🙂

  3. clanli • 04/05/2017 #

    Hi Nicolas
    Thanks for a fantistic piece of code. I tried the following with really good result.
    EUR/USD with 15 minutes and 1 hour timeframeStopLoss = 60 TakeProfit = 30 LookbackPeriod = 40Daily timeframeStopLoss = 60 TakeProfit = 30 LookbackPeriod = 20
    /Claes

    • Frytconcord • 04/05/2017 #

      hello nicolas.
      what is the difference between “pprofit” to “profit”
      thank you

    • Nicolas • 04/05/2017 #

      “pprofit” is the target profit in points, while “profit” is in price.

    • bertrandpinoy • 04/05/2017 #

      bonjour voud pouvez m envoyer le code modifier par vous?

    • Nicolas • 04/05/2017 #

      Désolé , je ne comprends pas votre question.

  4. rama • 04/05/2017 #

    where is Z variable in the program?
    i want to have look back period says 3 candles.
    I want to trade only if the range has high[3]-low[1]<=10
     

  5. rama • 04/05/2017 #

    Is there any way to simulate this? I ran even on 10 seconds time still it is producing astonishingly wrong results with comparison to mock runs

    • Nicolas • 04/05/2017 #

      Restart your platform in order to be sure to use the last version, there was a version rollback today, that affect the backtests.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
yeoreum Thank you very much for the screener, it reminds me on Minervini VCP. How to change th...
reecet any codes like this but in minutes and hours rather than days?
PHAN100 bonjour, je viens de tester ce screener, je constate une anomalie...il ne renvoie pas l'e...
bibifricotin Je pense avoir compris dans la première colonne exemple 92 le 9 indique la période et le 2 ...
Leo_da_Pisa It seems to work very well. Good for confirmation. Thanks for sharing Vivien.
Oxxoz Re bonjour Vivien, Il me smeble que 3 mois, c'est 60 séances. Cordialement,
Vinks_o_7 thanks ...and It can be used on a monthly and weekly basis by changing just the duration in ...
nicko Many Thanks Viv. It looks good
Nokis Bonjour Vivien, Comment je peux faire pour adapter ton code afin: De cibler les sociétés q...
sam00075 I tried it today and it gave great results. So a big Thanks !
luxrun sorry, add prt code add doesn't work
robertogozzi Don't worry about PRT code, I can't make it work either! Great for pointing that out, it's ...
Khaled @Luxrun, good morning, you mentionned "y = exponentialaverage (x)", isn't the period of the ...
luxrun One question, Roberto: the two AvgT are variable, could you explain to me what they regulate...
robertogozzi AvgT stands for Average Type, it's a parameter for the AVERAGE keyword (https://www.prorealc...
Bard Hi @Vonasi, this is an excellent tool! I noticed you times by 180 and was wondering why? W...
Bard I have no idea what is wrong with the posting on this website. I have problems editing posts...
Bard And now my first post displays okay? It literally had copies of my orig post all added toget...
robertogozzi Yes, you can use any setting that suits you best! As to which one... it depends on the inst...
DaxRider grazie Robnerto
Nicolas remplacer les valeurs de coloured(0,255,0) par coloured(r,g,b) et ajouter ces noms de variab...
mohamed merci Nicolas!
sacram14 Merci Nicolas pour ce set-up que je ne connaissais pas ! J'ai tenté de reprendre le code pou...
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
Vonasi Sure that is possible. I will code it and make a post in the English ProBuilder forum and pu...
Vonasi Vama v2 with Hull moving average included can be found here: https://www.prorealcode.com/top...
JMat45 Thank you, Vonasi.
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Psari Hi Vonasi, I am a newbie and was wondering whether you could possibly help me with this pro...
Vinks_o_7 Thanks again Vonasi !
Bard Thank you, this is a great tool @Vonasi, especially for those that used to like shorting Ind...
Aragorna Hi Vonasi, is there a reason why it does not work anymore in new version ePRT Platform? tha...
sycomore Ça ne fonctionne sur aucune valeur, je dois être trop con...
Nicolas il faut appliquer l'indicateur sur le prix.
AntoGH Je crains de ne pas comprendre... Cela indique la probabilité de la prochaine bougie ou donn...
Bard I've also just noticed that changing the "Bands Deviation" setting from 1.25 to eg 3 doesn't...
bartekz Hi @Nicolas, Really impressed by your work. I am trying to replicate the Wave-PM indicator t...
Nicolas You don't have to replicate it, download the file and import it into your platform.
Vonasi Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/...
crolakstrading @vonasi Thank you for fixing the issue! This is a great indicator.
gregoire good evening vonasi , I had made the request to create this indicator a few years ago and I ...
tobytarczy Hi Vonasi, Sounds lovely, I race yachts around europe myself. Most regattas cancelled unfor...
mlouys Hello Vonasi thank for your work ! A question how can we do it for minutes ( or 15 min or x ...
Vonasi I think that would be possible but probably in a whole new indicator as detecting when a new...

Top