EA to Trigger within Specific Bar Times (In Seconds)
-
Hi,
I have noticed that my EA does not trigger as quickly as I would like (It does not enter the trade immediately the previous bar closes. So sometimes I loose a fraction of a pip). This matters because it is a scalping EA.
So to work around this issue, I want to enter the trade on the signal bar (rather than on the next bar). However I want to enter the trade in the last 9 seconds of the signal bar (that is, when the candle time is between :50 and :59). How can I achieve this?
-
There is a block "Seconds filter", but the problem is that you may not receive ticks in the last 10 seconds, or even more => you will miss some signal at sme point. If you care of course.
What would work is to place blocks under "on Timer" and set the timer to 1 second. For that, click on the bench icon for the project's settings. But this will not work in the Tester, it doesn't run that "on Timer" event, because its ticks are not based on time.
-
Thanks Fxdreema, I will give your suggestion a go