Candlestick Probability

v10.3
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?

PRC is also 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 #

    Hola
    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 https://www.prorealcode.com/user/vonasi/ 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: https://www.prorealcode.com/topic/candlestick-probability-indicator-minor-bug-fix/

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Doctrading Hello, Higher timeframes are better. I suggest D1 or H4.Best regards,
Pinkybouh hello, I propose to add another conditions: ie: haussier: close > open and close >...
TheHovisTrader I'd be interested in the actual profit of this - in the example the stop range is at least 2...
Nicolas Restart your platform in order to be sure to use the last version, there was a version rollb...
bertrandpinoy bonjour voud pouvez m envoyer le code modifier par vous?
Nicolas Désolé , je ne comprends pas votre question.
Jessar Hi friends, is there any way to program the system to close the position when you have a lon...
Pring00 Hello @Nicolas, thanks for this code! Just what i was looking for. I'm fairly new to this...
Nicolas Needs custom coding, ask for a mod in a dedicated topic, in the appropriate forum please.
jelogui merci beaucoup Nicolas, je m'en occupe.
zeD22 Hello There Nicolas, When i try to copy the code i get an Error says: the following varia...
Nicolas Download the itf file and import it.
Ciccio As written some posts above, there is an update here https://www.prorealcode.com/prorealtim...
Mrmamps079 Hi Admin, I can't plug this indicator on my metatrader 4 on my laptop. When I add it on my i...
Nicolas Sorry but we do not provide any help for mt4 users. Our website is dedicated to ProRealTime ...
Maxime Leleux Nice screener but the 2 candelsticks around the doji should be long sticks (red and green). ...
Nicolas Hi, there's no reason why it should not work on a 5 min chart. Just apply the indicator on y...
Percygreen77 good evening sorry for my english but the indicator don't work can you help me i have 10.3 v...
Nicolas By adding it on price, it should display the pattern detection on the price chart, and not ...
Madrosat Bonjour Nicolas Je souhaiterais faire colorier le fond du graphique supérieur en vert lorsq...
Nicolas Merci d'ouvrir un sujet dans le forum approprié.
Nwab Hello Mr Nicolas.. Please how can I set this up as an indicator to work on mt5. Your guidan...
Philip Raphael Hey! Thank so much for sharing this wonderful indicator! I have always tried to code a simil...
CKW Hi Philip, What do you mean "Years" are not defined ? candle? If to code yearly candle size...
dakaodo Years not defined was probably b/c Phillip copied and pasted the code into PRT instead of im...
bluetime6 Hello Doctrading.   Can you ask you for something? Can you code a screener screen po...

Top