Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Komut dosyaları

Error_Break_Script_V2 - This script is a general example of using error brake in any strategy - Break on Code Error Sample Strategy - MetaTrader 4 için komut dosyası

[Silindi]
Görüntülemeler:
846
Derecelendirme:
(3)
Yayınlandı:
2024.03.24 08:20
Güncellendi:
2024.04.06 20:01
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

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:






    Trail SL Trail SL

    simple trail stop loss code example.

    Moving Averages-14 different types Moving Averages-14 different types

    This is an indicator to calculate 14 types of moving averages based on close price.

    Hedge_Dollar_Index_Against_Forex_Pairs_V1 Hedge_Dollar_Index_Against_Forex_Pairs_V1

    Hedge Dollar index USIDX against its constitutive FOREX pairs EURUSD GBPUSD USDJPY USDCAD USDSEK USDCHF

    Close_on_PROFIT_or_LOSS_inAccont_Currency Close_on_PROFIT_or_LOSS_inAccont_Currency

    Close_on_PROFIT_or_LOSS_inAccont_Currency