Home > Back-end >  MQ4 language to ask god to show here make a mistake
MQ4 language to ask god to show here make a mistake

Time:09-28

 string modver="M6 (TLP public)"; 
Extern bool ShowTradeComment=TRUE;
//extern bool RealtimeChartUpdate=FALSE;
Extern double Lots=0.01;
Extern double MultiLotsFactor=1.6;
Extern double StepLots=15.0;
Extern double TakeProfit=23.0;
Extern bool UseTrailing=FALSE;
Extern double TrailStart=38.0;
Extern double TrailStop=18.0;
Extern int MaxOpenOrders=15;
Extern bool SafeEquityStopOut=FALSE;
Extern double SafeEquityRisk=0.5;
Extern double Slippage=3.0;
Extern int MagicNumber=2024536;
Extern bool FreezeAfterTP=FALSE;
Extern bool Close_All_Orders=FALSE;
Extern string TradeComment="FX";
Extern string alarm="comments";
Extern int StartHour=0;
Extern int StartMinute=0;
Extern int StopHour=0;
Extern int StopMinute=0;
Extern int StartingTradeDay=0;
Extern int EndingTradeDay=7;
/* */extern bool UseLotFix=TRUE;
Bool gi_184=FALSE;
Double gd_188=48.0;
Double gd_196=500.0;
Double gd_204=0.0;
Bool gi_212=TRUE;
Bool gi_216=FALSE;
Int gi_220=1;
Double gd_224;
Double gd_232;
Double gd_240;
Double gd_248;
Double gd_256;
Double gd_264;
Double gd_272;
Double gd_280;
Bool gi_HaveNewOpenOrders;
Int gt_292=0;
Int gi_296;
Int gi_300=0;
Double gd_304;
Int gi_312=0;
Int gi_OrdersOpen;
Double gd_320=0.0;
Bool gi_328=FALSE;
Bool gi_332=FALSE;
Bool gi_336=FALSE;
Int gi_340;
Bool gi_344=FALSE;
Int gi_348=0;
Int gi_352=0;
Double gd_356;
Double gd_364;
String gs_off_372="OFF";
String gs_live_380="REAL";
String gs_396="";
Bool gi_408=TRUE;
Bool gi_412=TRUE;
Int gi_416=0;
Int gi_420;
Int gStartMinutes gStopMinutes;
Double PipToTP MaxDD=0;

Bool IsTradeTime () {
If (FreezeAfterTP) return (false);
Bool AllowTrade=true;
GStartMinutes=60 * StartHour + StartMinute;
GStopMinutes=60 * StopHour + StopMinute;
Int day DayOfWeek=();
If (day & lt; StartingTradeDay | | day & gt; EndingTradeDay) AllowTrade=false;
Int minuntes=60 * TimeHour (TimeCurrent ()) + TimeMinute (TimeCurrent ());
If (day & lt;=StartingTradeDay & amp; & GStartMinutes & gt;=minuntes) AllowTrade=false;
If (day & gt;=EndingTradeDay & amp; & GStopMinutes & lt; Minuntes) AllowTrade=false;
Return (AllowTrade);
}

Int the init () {
If (who==2 | | who==4) gi_420=1;
The else gi_420=10;
Gi_416=AccountNumber ();
Gd_280=MarketInfo (Symbol (), MODE_SPREAD) * * gi_420 Point;
The switch (MarketInfo (Symbol (), MODE_MINLOT)) {
Case: 0.001
Gd_204=3;
break;
Case: 0.01
Gd_204=2;
break;
Case: 0.1
Gd_204=1;
break;
Case: 1.0
Gd_204=0;
}
If (SafeEquityStopOut) gs_off_372="ON".
If (IsDemo ()) gs_live_380="DEMO";
If (Period ()!={PERIOD_M1)
Print (" FGT ERROR: Invalid Timeframe, both Please switch to M1. ");
Alert (" FGT ERROR: : ", "Invalid Timeframe, both Please switch to M1.");
Gs_396="Invalid Timeframe. FGT works on the M1";
Gi_408=FALSE;
}
Return (0);
}

CodePudding user response:

The error has been well said clear,
  • Related