Forum

Trailing price bot

I am trying to do a script that trails a market by 500 points and when it reverses and break out then activate a trade but just cant get the code to work. Can someone please help me void OnTick() { static double lastHigh = 0.0; static double lastLow = 0.0; static double trailingStop = 0.0;

Scrioting errors

Please help with the following error 'EventSetTimer' - wrong parameters count 18 4 { EventSetTimer ( "CheckForNewOrders" , Check_Interval * 60 * 1000 ); // Set timer to check for new orders EventSetTimer ( "ExecuteFirstTrade" , Initial_Delay * 60 * 1000 ); // Set timer to execute first trade