A Little Script Help Needed PLEASE.......

 

Running EA on the EachTick format. Need script to "PAUSE BETWEEN TRADES".

Tried to setup a 1 HR delay before the EA would start trading again, NO SUCCESS .

EA has a tendency to keep opening positions (False Positive's) after the initial open position has been closed, because the key criteria are still being met.

Looking to eliminate these False Positive's.

Thank You, Much Appreciated

 

You can use the servertime function check and set/clear a flag you use later..

//Global Variable

bool OkToTrade=false;

int SecondsToWait=3600; // 3600 seconds = 1 hour

init Start

if (CurTime() > LastTime0 + SecondsToWait)

{

LastTime0=CurTime();

OkToTrade=true;

{

else

{

OkToTrade=false;

}

Then later in the open order section

If (OkToTrade).... process function