Same Candle Run Analysis Tool

v10.3

This Same Candle Run Analysis Tool 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 shorter time frames will be slow to calculate and the results fairly meaningless due to the amount of market noise. I would advise using it on anything from yearly to 4 hour time frames.

If you run it on multiple time frames then you can have a fairly good analysis of what is most likely to happen next. For example maybe there has been five years up in a row and the results tells us that the market is more likely to have a down year after five up years. The quarterly results might be five up in a row and the results tell us that the next candle is more likely to be a down quarter. The monthly results show that we have had one down month so it is more likely that the next is an up month but the weekly is showing three weeks down in a row and there is a 60% chance next week will be a down week. So we might look at the overall picture and decide to avoid long trades right now on that market.

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.

The results returned are:
Wins – the number of trades that would have resulted in profit.
Bets – the total number of bets placed.
% – the percentage of wins to trades.
Total – the balance of all position outcomes.
AveReturn – the average return of all trades.

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 60% win rate for long trades would be a 40% win rate if you had gone short and a return of +1255 for long trades would be a loss of 1255 for short trades.

I advise making the indicator window full size and zooming in to the last candles to make the results more readable. Sorry if the columns do not line up very well but this is due to the limitations of text in PRT indicators.

I also have a version Same Candle Run Analysis Graph that returns the Total in graph format and I recommend using it alongside this tool as it allows you to easily see which results have been consistent over time.

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.

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

I was talking to a Machine Learning coder today who’s algos have apparently managed to get 70% accuracy on predicting Bitcoin prices. It got me thinking about your Candle Run analysis. Then I thought of the Heikin Ashi charts (and Renko) that I’ve been looking at lately – both with Joseph Nemeth who uses HA entries and this Heikin Ashi Trend strength screener: https://www.prorealcode.com/prorealtime-market-screeners/heikin-ashi-trend/
(I can’t link using Safari as the page jumps around when hitting the link button)

I was wondering how easy would it be to convert this very interesting code you have to HA?
I mean can you added something like:
Close = Close = (Open+High+Low+Close)/4
Open = (Open + Close) / 2 ?
(Ps/ I also can’t add code using Safari and PRC Add PRT code)

Cheers!
Bard

Register or

Likes

Related users ' posts
Nicolas
3 months ago
v10.3
2
Indicators
its not plotting on chart but instead as it's own histogram directly below chart? How to fix...
by adding the indicator on the chart :)
Vivien René
3 months ago
2
Screeners
Bonjour Vivien, Avant tout félicitations pour ton travail ! Par contre, je te propose d'écr...
Thank you. These will be helpful. :)
cristofer
4 months ago
0
Screeners
cristofer
4 months ago
0
Screeners
Pluvinel
5 months ago
v10.3
0
Indicators
Vonasi
5 months ago
0
Indicators
Vonasi
6 months ago
v11
0
Indicators
Vonasi
6 months ago
v11
0
Indicators
Vonasi
6 months ago
v11
10
Indicators
I guess it might be a nice addition so that you can check back in history and compare whethe...
Scusate, quindi la linea blu é dove andrà il prezzo con le maggiori possibilità di successo?...
La linea blu è ciò che fa il mercato in media se si apre uno scambio su ogni barra. È il nos...
Vonasi
7 months ago
v11
2
Indicators
Vonasi you're a beast !!! ;-)))
Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
enriquem
8 months ago
3
Screeners
Buenas, he instalado el screener pero no me aparecen los números que indicas...tengo que mon...
Hola, No, los numeros no aparecen, Proscreener no permite rotular, Lo que devuelve el sc...
Hi Enriquem, How do I change the timeframe from 'Daily' to "5 min"? Thank you.
enriquem
8 months ago
0
Screeners
Vonasi
1 year ago
v10.3
3
Indicators
what is oohline
From the indicator description above: 'The space between sessions can be either blank or hav...
Hi Vonasi, would you be kind enough to provide an indicator to only displays the wicks i.e. ...
Vonasi
1 year ago
v10.3
1
Indicators
Awesome. Thank you.
Vonasi
1 year ago
v10.3
3
Indicators
Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
Vonasi
1 year ago
3
Indicators
Vonasi, is it possible to have a screenshot of an index chart (eg djia) and below the breako...
I can't add any images here now that the library post has been listed. Perhaps you could sta...
Thanks again Vonasi !
Vonasi
1 year ago
v10.3
16
Indicators
In the all the DRAWTEXT lines of code change the 10 to a larger number.
Vonasi. Thank you for a very prompt response.
Following on from your earlier advice, I changed the ‘drawtext’ command to various sizes bef...
Ciccio
1 year ago
v10.3
19
Indicators
this code is only available here and in ProBuilder language to be used exclusively with ProR...
What a job! Thank you very much :))
@Nicolas Could you please fix the image that is not appearing on top of this thread? I can...
swapping
2 years ago
v10.3
2
Indicators
Bonjour, à priori les couleurs pour le Katana ne fonctionnent pas ( départ haussier ou élan...
Bonjour quibe56, n'ayant pas rencontré ce défaut je continu néanmoins à structurer le code p...
JJ Tec
2 years ago
6
Screeners
hola juanjo, muchas gracias por este screener que nos has compartido. creo que lo voy a util...
para el volumen he cambiado: // Volumen significativo VS=volume>2*(average[10](volume[1...