1. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Suggestion ++PANAH LONG TREND

Discussion in 'Expert Advisor atau Robot Forex' started by brolyssj2020, 02 Nov 2023.

  1. brolyssj2020

    brolyssj2020 Member

    Equity
    Credit
    Ref Point
    hi
    pls i want fix this indicaor signal not working help pls ............


    -------------------------------------------------------------------------------------------------------------

    #property indicator_chart_window
    #property indicator_buffers 2
    #property indicator_color1 Green
    #property indicator_color2 SlateGray

    bool Gi_76 = FALSE;
    bool Gi_80 = FALSE;
    bool Gi_84 = TRUE;
    string Gs_88 = "alert.wav";
    int Gi_96 = 21;
    int Gi_100 = 0;
    double Gd_104 = 0.518;
    int Gi_112 = 13;
    int Gi_116 = 0;
    int Gi_120 = 0;
    int Gi_124 = 0;
    double G_ibuf_128[];
    double G_ibuf_132[];
    double G_bars_136;

    // E37F0136AA3FFAF149B351F6A4C948E9
    int init() {
    SetIndexStyle(0, DRAW_ARROW, EMPTY);
    SetIndexStyle(1, DRAW_ARROW, EMPTY);
    SetIndexBuffer(0, G_ibuf_128);
    SetIndexBuffer(1, G_ibuf_132);
    SetIndexArrow(0, 236);
    SetIndexArrow(1, 238);
    SetIndexLabel(0, "Up Signal");
    SetIndexLabel(1, "Down Signal");
    return (0);
    }

    // 52D46093050F38C27267BCE42543EF60
    int deinit() {
    return (0);
    }

    // EA2B2676C28C0DB26D39331A336C6B92
    int start() {
    double icustom_12;
    double icustom_20;
    double icustom_28;
    double icustom_36;
    int Li_4 = IndicatorCounted();
    if (Li_4 < 0) Li_4 = 0;
    if (Li_4 > 0) Li_4--;
    int Li_0 = Bars - Li_4;
    for (int Li_8 = 0; Li_8 < Li_0; Li_8++) {
    if (Gi_116 == 0) icustom_12 = iCustom(Symbol(), 0, "Snake", Gi_112, 0, Li_8 + 1);
    icustom_20 = iCustom(Symbol(), 0, "Snake", Gi_112, 0, Li_8);
    icustom_28 = iCustom(Symbol(), 0, "T3_clean", Gi_96, Gi_100, Gd_104, 0, Li_8 + 1);
    icustom_36 = iCustom(Symbol(), 0, "T3_clean", Gi_96, Gi_100, Gd_104, 0, Li_8);
    if (icustom_20 > icustom_36 + Gi_124 * Point && icustom_12 <= icustom_28) {
    G_ibuf_128[Li_8] = iLow(Symbol(), 0, Li_8) - 3.0 * Point;
    G_ibuf_132[Li_8] = EMPTY_VALUE;
    if (Gi_76 == TRUE) PlaySound(Gs_88);
    if (Gi_84 == TRUE && Bars > G_bars_136) {
    Alert(Symbol(), " - LONG TREND BUY - M", Period());
    G_bars_136 = Bars;
    }
    if (Gi_80 == TRUE) {
    Comment("Buy signal at Ask=", Ask, ", Bid=", Bid, ", Date=", TimeToStr(TimeCurrent(), TIME_DATE), " ", TimeHour(TimeCurrent()), ":", TimeMinute(TimeCurrent()), " Symbol=",
    Symbol(), " Period=", Period());
    }
    } else {
    if (icustom_12 >= icustom_28 && icustom_20 < icustom_36 - Gi_120 * Point) {
    G_ibuf_128[Li_8] = EMPTY_VALUE;
    G_ibuf_132[Li_8] = iHigh(Symbol(), 0, Li_8) + 3.0 * Point;
    if (Gi_76 == TRUE) PlaySound(Gs_88);
    if (Gi_84 == TRUE && Bars > G_bars_136) {
    Alert(Symbol(), " - LONG TREND SELL - M", Period());
    G_bars_136 = Bars;
    }
    if (Gi_80 == TRUE) {
    Comment("Sell signal at Ask=", Ask, ", Bid=", Bid, ", Date=", TimeToStr(TimeCurrent(), TIME_DATE), " ", TimeHour(TimeCurrent()), ":", TimeMinute(TimeCurrent()), " Symbol=",
    Symbol(), " Period=", Period());
    }
    } else {
    G_ibuf_132[Li_8] = EMPTY_VALUE;
    G_ibuf_128[Li_8] = EMPTY_VALUE;
    }
    }
    }
    return (0);
    }
     

    Attached Files:

  2. brolyssj2020

    brolyssj2020 Member

    Equity
    Credit
    Ref Point
    this
     

    Attached Files:

Share This Page