Hi guys,
I am a super beginner at MQL4, and I am actually using an online EA Builder - StrategyTune (strategytune.com/app/) to make my EA.
I am very happy with what I can do with it so far, but I met with a problem with my EA.
I am trying to make a very simple EA.
Timeframe: Daily
The rules are:
I am a super beginner at MQL4, and I am actually using an online EA Builder - StrategyTune (strategytune.com/app/) to make my EA.
I am very happy with what I can do with it so far, but I met with a problem with my EA.
I am trying to make a very simple EA.
Timeframe: Daily
The rules are:
- Price goes up by 1% from low of the day, Sell TP20 SL20
- Price goes down by 1% from high of the day, Buy TP20 SL20
I have made the EA, and the entry and exit is correct.
But my problem is that after the EA exit a trade, it will enter into another trade. While I only want it to trade once within a day.
So my question is: What code do I need to add to prevent an EA from re-entering a trade on the same bar? keeping it to 1 trade only per bar?
Thank You in advance for any of your help!
By the way, I have attached my newbie EA here so you will see the problem with the multiple entries within the same bar.
Attached File(s)
1pct_reversal.mq4
2 KB
|
191 downloads