Probability of bars in the same direction based on historical data.

Release Notes: ADD = current bar probability
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Hello sir
please make script buy sell tp and sl and all alerts?

Please i will request you
can i know, how it works. i tried other similar indicator. it was giving different percent and your indicator was giving different percent.
Total percent is 100 right when green is 55% then red should be 45% is it correct. but 2, 3, 4 ,5 bar was giving different percent which was not matching to 100% it was less then 80% or !20%. When other indicator gave me for 1 bar, green 13% and red 87% but your indicator was giving me green 35.5% and 64.5% red. I compared with 2 indicator they where having 1 to 10% different sometimes. your indicator was giving 5 to 50% different. I like this type of indicator for trading can u fix error and update. I need your indicator. i hope u will fix and update as soon as possible. it will be not a problem for users who r using it.
how does it work
wowo its great done thanks
Man....thank you very much for this...I had this one in the queue for a couple months and just never got around to it but was going to intro it with a suite of others all at once. I been thinking of how to implement it and (honestly) thought it would have been a lot shorter than I was originally considering (but Im sure you went through many diff trials till got to the one your at). When thinking of it I thought it had the potential of getting an editors pick bc its simple but effective and was thinking of a few good ways it could be implemented as a filter in a strategy. AAAnywho...great job. Hope they consider it for you.