extern double Lots=0.1;
extern int TakeProfit=30;
extern int Stoploss=0;
extern bool constantstop=false:
extern int Step1=30;
extern int TP1=30;
extern int Step2=30;
extern int TP2=30;
extern int Step3=30;
extern int TP3=30;
extern int Step4=30;
extern int TP4=30;
extern int Step5=30;
extern int TP5=30;
extern int Step6=30;
extern int TP6=30;
extern int Step7=30;
extern int TP7=30;
extern int Step8=30;
extern int TP8=30;
extern int Step9=30;
extern int TP9=30;
extern int Step10=30;
extern int TP10=30;
extern int slippage = 3;
extern double StartHour=0;
extern double Endhour=24;
extern bool Close all new trades=False;
extern bool MACD=False;
extern int magic = 7736515;
extern int FridayClose=10;//At what time to close all orders on Friday (0=not used)
return(0);
Doesn't give me any errors but then again the code you provide doesn't do anything either. FWIW the starthour and endhour could/should be defined as integers instead of doubles.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
//+------------------------------------------------------------------+
//| STEP TRADER |
//| Copyright © 2005, MetaQuotes Software Corp. |
//| https://www.metaquotes.net// |
//+------------------------------------------------------------------+
extern double Lots=0.1;
extern int TakeProfit=30;
extern int Stoploss=0;
extern bool constantstop=false:
extern int Step1=30;
extern int TP1=30;
extern int Step2=30;
extern int TP2=30;
extern int Step3=30;
extern int TP3=30;
extern int Step4=30;
extern int TP4=30;
extern int Step5=30;
extern int TP5=30;
extern int Step6=30;
extern int TP6=30;
extern int Step7=30;
extern int TP7=30;
extern int Step8=30;
extern int TP8=30;
extern int Step9=30;
extern int TP9=30;
extern int Step10=30;
extern int TP10=30;
extern int slippage = 3;
extern double StartHour=0;
extern double Endhour=24;
extern bool Close all new trades=False;
extern bool MACD=False;
extern int magic = 7736515;
extern int FridayClose=10;//At what time to close all orders on Friday (0=not used)
return(0);
getting errors on it