plz help me fix this indior
Results 1 to 5 of 35

Thread: plz help me fix this indior

  1. #1

  2. #2

  3. #3
    // ------------------------------------------------------------------
    //| Supernova.mq4 |
    // ------------------------------------------------------------------

    #property indior_chart_window
    #property indior_buffers 2
    #property indior_color1 DodgerBlue
    #property indior_color2 Magenta


    extern int SF = 1;
    extern bool Visual_Alert=false;
    extern bool Audio_Alert=true;
    extern string Audio_Up_File=alert.wav;
    extern string Audio_Down_File=alert.wav;
    extern bool Email_Alert=false;

    extern int Count_Bars=1000;
    extern int Arrow_Offset=10;

    double ExtMapBuffer1[];
    double ExtMapBuffer2[];

    bool up=false;
    bool dn=false;
    datetime last_t=0;
    int init()

    SetIndexStyle(0,DRAW_ARROW);
    SetIndexArrow(0,108);
    SetIndexBuffer(0,ExtMapBuffer1);
    SetIndexEmptyValue(0,0.0);
    SetIndexStyle(1,DRAW_ARROW);
    SetIndexArrow(1,108);
    SetIndexBuffer(1,ExtMapBuffer2);
    SetIndexEmptyValue(1,0.0);
    return(0);

    int deinit()return(0);
    int Begin()

    int l=0;
    if (Count_Barsgt;Bars) l=Bars;elsel=Count_Bars;
    for (int I=l;igt;=0;I--)
    ExtMapBuffer1[I]=0;
    ExtMapBuffer2[I]=0;
    double qqe0_0=iCustom(Symbol(),0,QQE,SF,0,I);
    double qqe0_1=iCustom(Symbol(),0,QQE,SF,0,I 1);
    double qqe1_0=iCustom(Symbol(),0,QQE,SF,1,I);
    double qqe1_1=iCustom(Symbol(),0,QQE,SF,1,I 1);

    if (qqe0_0gt;qqe1_0 qqe0_1lt;=qqe1_1 !)Up)
    ExtMapBuffer1[I]=Reduced[I]-Arrow_Offset*Point;
    upward=true;
    dn=false;

    if (qqe0_0lt;qqe1_0 qqe0_1gt;=qqe1_1 ! Dn)
    ExtMapBuffer2[I]=High[I] Arrow_Offset*Point;
    dn=true;
    upward=false;



    if (ExtMapBuffer1[0]gt;0)
    if (Visual_Alert) Alert(Cross up on : Symbol() at TimeToStr(TimeCurrent()));
    if (Audio_Alert) PlaySound(Audio_Up_File);
    if (Email_Alert) SendMail(QQE_Cross Alert,Cross up on : Symbol() at TimeToStr(TimeCurrent()));

    if (ExtMapBuffer2[0]gt;0)
    if (Visual_Alert) Alert(Cross down : Symbol() at TimeToStr(TimeCurrent()));
    if (Audio_Alert) PlaySound(Audio_Down_File);
    if (Email_Alert) SendMail(QQE_Cross Alert,Cross down : Symbol() at TimeToStr(TimeCurrent()));


    return(0);

  4. #4
    Your indior is dependent upon the presence of another indior named QQE.
    You should check first if the other indior is on your custom indiors folder. This could be the reason it isn't currently working.

  5. #5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.