Sample code to count consecutive no. of bull or bear bars. Feel free to use or develop further to serve your purpose
#49675ScriptsMetaTrader 5👁 3849 views
Count consecutive no. of bull or bear bars
S
Author
Sardion MaranathaPublished date
May 9, 2024
📚Related Articles
← View other articles →#77077Scripts
Clock Diagnostic: TimeCurrent() freezes and steps backwards
ClockDiagnostic.mq5 reads TimeCurrent() and TimeLocal() every few seconds for a fixed observation window and reports the two failure modes of the server clock: it freezes when no t...
Joao Prata Silva YglesiasView detail →
#77073Scripts
Gold Hour Profile - when gold moves, and when the spread eats it
Every trader knows that some hours are better than others. This script answers that question with numbers from your own broker, instead of a general rule of thumb. For each hour of...
Petr KostalView detail →
#77063Scripts
OHLC Reality Check - at what stop distance does your backtest start lying?
Every backtest on 1 minute OHLC data makes one silent assumption: that inside a bar, price walked Open Low High Close on a bullish bar and Open High Low Close on a bearish one. It ...
Petr KostalView detail →