Developers,
It has no use to run this dashboard every tick or every second so put this first in your OnTimer() or OnStart();
and load the EA on an M1 chart.
Forgot,
Modify everything that has to to with PERIOD_M1 to take the last closed bar and not the current on
to
Take the time to find what part of the code you want to run every tick/timer (like updating trade,profit etc) seperate that from the indicators part and run only that part every tick.
It has no use to run this dashboard every tick or every second so put this first in your OnTimer() or OnStart();
Inserted Code
static datetime lastbar = 0; if (Time[0] == lastbar) return; lastbar = Time[0];
Forgot,
Modify everything that has to to with PERIOD_M1 to take the last closed bar and not the current on
Inserted Code
double Openm1 = iOpen(TradePair[i], PERIOD_M1,0);
to
Inserted Code
double Openm1 = iOpen(TradePair[i], PERIOD_M1,1);
Take the time to find what part of the code you want to run every tick/timer (like updating trade,profit etc) seperate that from the indicators part and run only that part every tick.
info@metacharttools,com