Build an EA with Super signal.mq4

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #83218 quote
    Sverre
    Participant
    New

    This is the original code, But too old for the new mq4. I want to build an EA using this on EA Builder that I have already, but new language prevents this. Can anyone help me, please?

    //+——————————————————————+
    //| super-signals.mq4 |
    //| Copyright © 2006, Nick Bilak, beluck[AT]gmail.com |
    //+——————————————————————+
    #property copyright “Copyright © 2006, Nick Bilak”
    #property link “http://www.forex-tsd.com/”

    #property indicator_chart_window
    #property indicator_buffers 2
    #property indicator_color1 Red
    #property indicator_color2 Aqua

    extern int SignalGap=10;

    int dist=24;
    double b1[];
    double b2[];

    //+——————————————————————+
    //| |
    //+——————————————————————+
    int init() {
    SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,1);
    SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,1);
    SetIndexArrow(1,233);
    SetIndexArrow(0,234);
    SetIndexBuffer(0,b1);
    SetIndexBuffer(1,b2);
    return(0);
    }
    //+——————————————————————+
    //| |
    //+——————————————————————+
    int start() {
    int counted_bars=IndicatorCounted();
    int k,i,j,limit,hhb,llb;

    if (counted_bars<0) return(-1);
    if (counted_bars>0) counted_bars–;
    limit=Bars-1;
    if(counted_bars>=1) limit=Bars-counted_bars-1;
    if (limit<0) limit=0;

    for(i=limit;i>=0;i–) {
    hhb=Highest(NULL,0,MODE_HIGH,dist,i-dist/2);
    llb=Lowest(NULL,0,MODE_LOW,dist,i-dist/2);

    if (i==hhb)
    b1[i]=High[hhb]+SignalGap*Point;
    if (i==llb)
    b2[i]=Low[llb]-SignalGap*Point;
    }
    return(0);
    }

    //+——————————————————————+

    #83243 quote
    Nicolas
    Keymaster
    Master

    Hi, our website offer free assistance for ProRealTime programming. If you want to ask for a custom coding, please make a request for a private job to our programming services.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Build an EA with Super signal.mq4


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Sverre @sverre Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
7 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/20/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...