The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.
It uses the knowledge about the M1 OHLC tick generation algorithm in Strategy Tester of MetaTrader 5: If the price began to decrease after the new bar opening, it is guaranteed that it will increase in the next price change and vice versa.
Attention: The "Open prices only" and "1 minute OHLC" modes of
Strategy Tester can be used ONLY for rough and fast estimation of strategy performance.
I have a little problem
#define MAGIC_NUMBER 12437
#define DEV 20
#define RISK 0.1
#define BASELOT 0.1
#define SL 25
#define TP 770
#define DELTA 15
I used every Tick at 15min. and 300$
At a certain point I lose a lot of money and the programm stops. Could you do not install a better stop loss? or a better risk manager 0.01 would be nice.