Hey there, fellow traders! Today, we’re diving into how to leverage trading statistics with Expert Advisors (EAs) on MetaTrader 5.
First off, let’s talk about how our EA analyzes the bars. It checks for those whose opening time matches the current bar’s opening time. If a previous trade ended in a loss, we see a lit increase. This means the EA will close on a new bar when necessary.
Now, regarding the lot size: when a transaction occurs, the EA tracks trades using a "market exit type." If your trade is profitable, it will stick with the original lot size you set (that’s the Lots parameter). But if the trade doesn’t go your way, the lot size gets bumped up.
Don’t forget about Stop Loss! The EA operates on every trade transaction to tighten your risk management.
Inputs to Consider:
- Min Candle Height (set to "0" to disable this feature)
- Lots
- Stop Loss (in pips)
- Days of History
This EA scours the market for the specified Days of History. If it finds more bullish bars than bearish ones, it’s time to open a Buy position. Conversely, if there are more bearish bars, it will open a Sell position.

Comments 0