Could someone fix one of the features on this EA?
The ProfitTarget option (not the take profit option, I'm talking about the second one) is not functioning correctly. What it does right now is just function as TP target for a single trade. If I set it to 10 pips it will close the trade at 10 pips.
What it's supposed to do, is close the trade once the total trades for that session for that pair have reached an equity of 10 pips. I.E. If the first trade is -10 pips, it should close the next trade at +20 pips, not at 10 pips, therefore the net profit for that session is 10 pips. I want this to reset every session. So if I put the time filter from 2 am to 10 am and it nets 10 pips, it should stop trading for that session and then begin trading at the start of the next session, so at 2 am again. This is critical for back testing as it is annoying to have to back check day by day.
It needs to keep track of the trades it has taken for that session. For example, if i want an equity of 10 pips, it should know that the last trade was -20, and it should close the current trade once it has reached +30, for a net of 10 pips.
While I could use a separate equity EA to monitor the equity, for the purpose of backtesting, it is impossible to tests 2 separate EAs in conjunction with each other which is why I need this fix.
Any help would be appreciated.
The ProfitTarget option (not the take profit option, I'm talking about the second one) is not functioning correctly. What it does right now is just function as TP target for a single trade. If I set it to 10 pips it will close the trade at 10 pips.
What it's supposed to do, is close the trade once the total trades for that session for that pair have reached an equity of 10 pips. I.E. If the first trade is -10 pips, it should close the next trade at +20 pips, not at 10 pips, therefore the net profit for that session is 10 pips. I want this to reset every session. So if I put the time filter from 2 am to 10 am and it nets 10 pips, it should stop trading for that session and then begin trading at the start of the next session, so at 2 am again. This is critical for back testing as it is annoying to have to back check day by day.
It needs to keep track of the trades it has taken for that session. For example, if i want an equity of 10 pips, it should know that the last trade was -20, and it should close the current trade once it has reached +30, for a net of 10 pips.
While I could use a separate equity EA to monitor the equity, for the purpose of backtesting, it is impossible to tests 2 separate EAs in conjunction with each other which is why I need this fix.
Any help would be appreciated.
Attached File(s)
NonLagDotEA.ex4
25 KB
|
233 downloads
NonLagDotEA.mq4
15 KB
|
241 downloads