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
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
Pablo Carmona del Moral hola juanjo, muchas gracias por este screener que nos has compartido. creo que lo voy a util...
Pablo Carmona del Moral para el volumen he cambiado: // Volumen significativo VS=volume>2*(average[10](volume[1...
Juanjo Muchas Gracias Pablo, ...Tengo varios screener, uno lo tengo adaptado para operar intradía, ...
juanj
5 years ago
juanj I have actually completely redesigned this indicator with loads of improvements, so will res...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
RGKP Hi Vonasi, great work! But what I do not understand is that the statistics change according ...
mr_delta Hi https://www.prorealcode.com/user/vonasi/ I am interested in in scanning for a similar set...
Vonasi Minor Bug Fix Please download an updated version with a minor bug fix from here: https://www...
Bard Problems with Safari latest s/ware and this site and links and adding code. Let me add the...
grimweasel47 Ok thanks Nicolas - could this be adapted to take into account MFI and then have price, volu...
Nicolas I don't understand what you mean exactly, would be better to open a topic about this idea wi...
Jesper Great share!
capgros Bonjour @Nicolas, Thanks a lot for this tool, it is very useful for me. I would like to s...
Hans63 Would you add the possibility to color also the Heikin Ashi and bar chart?
Nicolas That's possible, please open a new topic in the indicator forum explaining what you need exa...
Victor.Strand Hi Pableitor, the code is just great; i was playing a lil bit with these factors, darwsegmen...
micky_red Hi, I have tried to use this indicator in version 12 and it doesn't work. Do you know how...
Victor.Strand Hey Micky, indicator works well, justpaste the code on the platform, or save it as an "itf" ...
jissey Bonjour Bolsatrilera,j'essaie de vous contacter pour le cm rsi ;je le trouve interessant, m...
jissey J'essaie de vous contacter pour l'indicateur"cm rsi"....
Paul the last update can be found in topic Strategy DayOpen Straddle for DAX on page 14.
bertrandpinoy l instruction GRAPH pose problème sur PRT... pas vous? cordialement
Nicolas Supprimer simplement les lignes avec GRAPH pour passer en ProOrder, trading live.
ckat55 Thank you Nicolas, is there any way that an alert can be set for when the dot appears?
Nicolas yes, change the last line with: RETURN wrb,qh and set an alarm with the alert tool for ea...
ckat55 Thank you Nicolas, I will try it.
joobeng Sorry, I solved the problem. I have add the CBL indicator using the spanner icon on the pric...
Nicolas Adjust the price settings for the Y Axis to use the price only.
XXXXVII Hello Your indicator is interesting. However, I can't see the orange line. Do you have ...
fredfilm Hi Nicolas, how could we add a price screen to this? eg stock prices between $1 to $3 etc
Ravindra Khanna copied it to pro real time not working. what to do?
Simba Greetings from germany! :) Can you told me your EXIT-strategy for this, please? :) Would ...

Top