Tester Control Points

 

Is if possible to write an EA that trades using control points instead of every tick?

If not, what possible good is that option?

 
Of course. Instead of only processing at the start of a new bar, process at the start of a new minute.
int start(){
   datetime now = TimeCurrent(),
            TM1 = now - now % 60; // M1's Time[0]
   static datetime TimeM1;
   if (TimeM1 == TM1) return(0); TimeM1 = Tm1;
   :
 
WHRoeder:
Of course. Instead of only processing at the start of a new bar, process at the start of a new minute.


OK... Changed Tm1 to TM1 so the compiler would have no errors.

But now, how do I test it to know it is working properly.?

When I do the test using Control points, I get a very different result than when I use every tick,

even after adding this code at the start().

In fact, I get great results testing with Control points, but the EA crashes when I test using every tick.

My chart is on the 4H... does that matter?

Reason: