Unisciti alla nostra fan page
Error_Break_Script_V2 - This script is a general example of using error brake in any strategy - Break on Code Error Sample Strategy - script per MetaTrader 4
- Visualizzazioni:
- 1354
- Valutazioni:
- Pubblicato:
- 2024.03.24 08:20
- Aggiornato:
- 2024.04.06 20:01
- Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
Error_Break_Script_V2 revised
Version 1 - Error_Break_Script_V1 Deleted
Fixed implementation in Version2:
//+------------------------------------------------------------------+
//| Break_On_Error |
//+------------------------------------------------------------------+
int Break_On_Error(){
int error_code = GetLastError();
string error_string = ErrorDescription(error_code);
Print("Error : ", error_string," ",error_code);
return error_code;
}
//+------------------------------------------------------------------+
Tested successfully:
simple trail stop loss code example.
Moving Averages-14 different typesThis is an indicator to calculate 14 types of moving averages based on close price.
Hedge Dollar index USIDX against its constitutive FOREX pairs EURUSD GBPUSD USDJPY USDCAD USDSEK USDCHF
Close_on_PROFIT_or_LOSS_inAccont_CurrencyClose_on_PROFIT_or_LOSS_inAccont_Currency