Positions are only opened at the specified time (+ shift set in "Additional hour"). Bullish and bearish bars are counted on PERIOD_M1 (M1). The money management classes CMoneyFixedMargin and CMoneyFixedRisk are used.
Comparison of lot calculation based on the free margin on GBPUSD,M1:
and the fixed risk value:
The difference here is only the position load.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/18710
Closing all open positions with the specified profit percent.EURUSD breakout
The EA trades during two trading sessions, starting at the specified session beginning time. Stop Loss. Take Profit.