Same Candle Run Analysis Graph

Same Candle Run Analysis Graph

Same Candle Run Analysis Graph returns in graphical format the won/lost total amount results of my Same Candle Run Analysis Tool. The graphical format allows you to more easily see how consistent over time the results have been. It can be used to analyse runs of the same colour candle in any market and on any time frame. Runs of up to 12 candles of the same colour are analysed.

It calculates a simulated result as if you placed a long trade at the close of a run of the same coloured candles and then closed it one candle later. This can give us an idea what has the highest probability of happening next based on historical data. Although it can be used on any time frame on shorter time frames the results can be fairly meaningless due to the amount of market noise. I would advise using it on anything from yearly to 4 hour time frames.

You can select which lines to display by selecting or deselecting Up, Down, or any combination of numbers from One to Twelve. Hover over the graph to identify each line.

The setting ‘CountAll’ can be turned on and off. If ON then the results are calculated using every occurrence of a run. For example a run of three up candles is in fact three runs of one up candle, two runs of two up candles and one run of three up candles and all will be calculated in the results. If set to OFF then just the first occurrence is used – so a run of three up candles for example must be a down candle followed by three up candles.

A spread amount can also be input and is deducted from the results of each trade. Set to zero if you do not want to analyse with spread.

If you want to know what would have happened if you had gone short then obviously short trades would have resulted in the direct opposite results. So a return of +1255 for long trades would be a loss of 1255 if you had done short trades.

I recommend using this tool alongside my Same Candle Run Analysis Tool as that gives additional information such as percentage of winning trades and average return to help with better analysis.

I advise you to download the .ITF file and import it rather than cut and paste the code to ensure that you get full functionality.

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. Real Pro • 04/08/2018 #

    Thanks for sharing so much work. This goes in the indicator window, yes?

  2. Real Pro • 04/08/2018 #

    It’s ok, I imported the rtf as suggested now it works.

    What I’m seeing is this – in a solid uptrend, mean reversion is best. In a volatile market, best to follow the immediate trend.

  3. Vonasi • 04/08/2018 #

    Thanks for your thanks Real Pro and yes everyone should import the itf file to make sure that it works. Your conclusions of the graphs will depend upon which market and which time frame you are testing. On indices and longer time frames it clearly confirms the benefits of buying in dips but we must remember that we are always dealing with what has happened and not what will happen! Some markets can clearly be seen to have changed their character at some point. The invention of the computer and automatic trading is quite often a changing point so we should consider putting less interest in earlier data results.

  4. Pepsmile • 04/08/2018 #

    Good job, which could be applied for a spectrum of another indicators.

  5. Pepsmile • 04/08/2018 #

    As to better understand which parameters are better for an indicators in a specific period (and above all, why ?…..)

Register or


avatar avatar avatar avatar
Related users ' posts
rama what is oohline
Vonasi From the indicator description above: 'The space between sessions can be either blank or hav...
denmar Awesome. Thank you.
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
luxrun Vonasi, is it possible to have a screenshot of an index chart (eg djia) and below the breako...
Vonasi I can't add any images here now that the library post has been listed. Perhaps you could sta...
Vonasi Thanks for the compliments Maxime Baudin.
JJ Tec Muy interesante ¡¡¡... gracias X el aporte.
HStrader Thank you for your nice indicator
nfulcher How do I make these appear on the Price Chart rather than on its own indicator chart? Thanks.
nfulcher Just found this on another post.
Stallios It would be interesting if you can choose which candlestick patterns you want to display on ...
quibe56 Bonjour, à priori les couleurs pour le Katana ne fonctionnent pas ( départ haussier ou élan...
swapping Bonjour quibe56, n'ayant pas rencontré ce défaut je continu néanmoins à structurer le code p...
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, ...
RGKP Hi Vonasi, great work! But what I do not understand is that the statistics change according ...
mr_delta Hi 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...
Jesper Great share!
rollem Thank you!
Michael1973 Great! This is exactly what I was looging for. However, it does not work. I get an error mes...
pableitor The timeframeminutes variable is an external variable to define the higher TF bars . If yo...
Bard Hi @Ale, I was wondering if you knew why, when I went to put the Kase Peak Oscillator into i...
ALE Hello Bard, because they are two different indicators
Bard Right, thanks Ale, I have taken your code and made a coloured Peak Osc (thanks again) but ...
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.
supertiti Hola Ale Can we have this same code from Nicolas's code in smoothed heikin Ashi? Sorry...
ALE Ok, We can discuss in the topic "3D Candlesticks TOPIC" Write me more details
Nicolas Hi, please send it to contact[at] . Many thanks.
JohnScher @nicolas done, in this moment
JohnScher After a small error crept in, a correct itf.file has been uploaded.
AGTrader Interesante, muy visual Doc. Felicidades!!!
Andraxx simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
andyj great screener, none of the results show the Triangle Pattern on the chart? do I need to cha...
Nicolas Screeners dont plot anything on charts.
jobswaps Hola puedes agragar marcos temporales como minimo y maximo en temporalidad del triangulo par...
GraHal Wow! Thank you Vonasi, great idea!
Vonasi No Problem GraHal. Please share anything interesting that you find using it.
Vonasi I've made a small improvement by adding a Buy and Hold line for comparison. This line can be...