EA turns on and off, but only in backtes, demo or real market does not work.
-
Hello friends, I created this test project to apply a simple rule where my EA when I reach some goals, but unfortunately I do not know the reason it is not working correctly in the real market, it works perfectly in backtest but in demo account or real market it does not records the amounts of profit, loss and trades and does not shut down the EA.
If anyone can help me solve this I would appreciate it. Project here --> https://fxdreema.com/shared/xaBZCbfLc
Below are the functions I tried to implement:
- Record the number of trades closed on the day.
- Record of this total of closed trades on the day how many were winners.
- Record of this total of closed trades on the day how many were lost.
Then I created rules and constants to facilitate management.
- How many earnings are allowed per day
- How many losses are allowed per day
-
You pip size rules box is empty:

-
@l-andorrà Yes, my parents are not forex, do not own or use. But could this be affecting anything?
-
AFAIK that is the reason. However, someone else could confirm?
-
@fxdreema @roar @l-andorrà
it works perfectly in the backtest, but in the real market it does not work, it is not recording and counting the amount of gains or losses. I tried to use it to test the "profit period of time" block and the result was the same, can you help? -
Honestly, I cannot offer you an answer, sorry.
