Candlestick Probability

Candlestick Probability

This indicator analyses candles in the past and then displays in a text format what has historically happened based on how the current candle is drawn.

It analyses every candle back to whatever start date you set and the win rate is calculated based on buying or selling at the open of the next candle and then selling at the close.

It analyses colour, highs and lows and every combination of them.

It returns short and long win rate results for:

  • Candle colour – a green or red body.
  • A higher high (HH) or lower high (LH) or higher low (HL) or lower low (LL) compared to the previous candle.
  • Candles with a HH, LH, HL or LL with either green or red body.
  • Candles with HH+HL, LH+LL, HH+LL or LH+HL.
  • Candles with HH+HL, LH+LL, HH+LL or LH+HL with either a green or red body.

It checks the current candle and then displays below it the following data based on which of the above candle conditions are met:

  • Market – the all time win rate if you bought at the open of every candle and sold at the close. It is shown as green if longs have been more successful and red if shorts have been more successful. This is our baseline probability to try to beat.
  • The long win rate and short win rate for each of the possible combinations that fit the candle drawn above.
  • The average long win rate and the average short win rate for all the results for the candle drawn above.
  • The difference between the average win rates. The higher number is the highest probable direction of the next candle based on what has happened historically.
  • The difference between the all time market win rate and the highest of the two long/short average win rates. A minus/red number indicates that the probability is not greater than the market norm and a higher/green number indicates that probability is greater than the market norm.

Obviously zoom in to see the indicator more clearly.

This indicator could be useful for checking on weekly and daily charts to get a feel for what might happen next but remember that what happened in the past may not necessarily repeat itself in the future! Also on indices where the trend is normally up the probability for short trades will always be low compared to long trades.

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. pableitor • 12/11/2018 #

    Very interesting indicator, it could be the basis of an AI system…no kidding.

  2. Juanjo • 12/11/2018 #

    Eres Grande¡¡¡…muchas Gracias.

  3. Juanjo • 12/11/2018 #

    Me parece muy interesante lo que has hecho, yo estoy queria hacer una estadistica similar, pero tengo problemas con el código. ¿podrias ayudarme?

  4. Vonasi • 12/11/2018 #

    I can’t help in Spanish! Maybe it is better to start a topic in the forums with your questions.

  5. RGKP • 12/11/2018 #

    Hi Vonasi, great work! But what I do not understand is that the statistics change according to the number of bars you load. Would you have any explanation ? Thank you

  6. mr_delta • 12/11/2018 #

    Hi I am interested in in scanning for a similar setup where I want to find the HH & HL being formed for swing trading (not for individual candles). Similar for LH & LL for a down trend. Is there a readymade example I can have a look at? Thanks in advance – I am just learning so not sure if I am asking the right question 🙂

  7. Vonasi • 12/11/2018 #

    Minor Bug Fix Please download an updated version with a minor bug fix from here:

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
TIdegoesout HI I am struggling to back test this everytime I import it to the indicator bar it does ...
juanj This is only an Indicator, the strategy tester is posted in the library here:
afanitro424 its not plotting on chart but instead as it's own histogram directly below chart? How to fix...
Nicolas by adding the indicator on the chart :)
Adante79 Thank you. These will be helpful. :)
kroust Bonjour Vivien, j'aimerai utiliser ton screener, mais je n'arrive pas à l'utiliser? j'ai bie...
Nicolas Vous devriez télécharger le fichier itf et l'importer dans la plateforme au lieu de copier/c...
jimkn0pf Christopher, wie saehe denn die Formel ohne Kontrollkerze (3. Kerze) aus?
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...
Vinks_o_7 Thanks again Vonasi !
Vonasi In the all the DRAWTEXT lines of code change the 10 to a larger number.
Lotech123 Vonasi. Thank you for a very prompt response.
Lotech123 Following on from your earlier advice, I changed the ‘drawtext’ command to various sizes bef...
Nicolas this code is only available here and in ProBuilder language to be used exclusively with ProR...
BeverlyRose75 What a job! Thank you very much :))
Ciccio @Nicolas Could you please fix the image that is not appearing on top of this thread? I can...
Vonasi Yes that was the issue. I have posted an updated ITF file here:
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 ...
Vonasi That should be possible - I'll add it to my list to work on!
thierrybl Thanks a lot
B-ling1 Hi Vonasi, I love this indicator - good job! Just one question: If I want the monthly OHLC L...
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, ...
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...
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...
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.
JohnScher After a small error crept in, a correct itf.file has been uploaded.
dougie80 Great Indicator, Is there a way to use this as an alert ?
JohnScher I created the screener with some help here from PRT. It is surely somewhere in one of the fo...
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...
Vonasi Thanks for your thanks Real Pro and yes everyone should import the itf file to make sure tha...
Pepsmile Good job, which could be applied for a spectrum of another indicators.
Pepsmile As to better understand which parameters are better for an indicators in a specific period (...