Hi, I used timestamp to make action only once before, but I noticed that it isn't that accurate and when action happens more than 2-3 times per second it happens 2-3 times too I mean tick change per second. Below is my code that I used before:
int AlertCount = 0;
static datetime TimeStamp;
if(TimeStamp != Time)
// Some actions here
TimeStamp = Time;
has anyone knows better way to make action only once?
You are looking at a signal. Act on a change of signal. MQL4 (in Strategy Tester) - double testing of entry conditions - MQL5 programming forum #1 2017.12.12
Please enable the necessary setting in your browser, otherwise you will not be able to log in.