Results 1 to 1 of 1
 4 Attachment(s)    

Thread: Could someone help me out with an EA please

  1. #1
    Junior Member
    Join Date
    May 2009

    Default Could someone help me out with an EA please


    i am trying to create an EA for this Shi-silver trend, but i am stuck with an array function error comming from the indicator.

    If someone could just make this EA place a Buy when the dot appears at the bottom like i want it to, i would finishe it up and post it here afterwerds.

    It woul help me out to figure out why it is not buying or selling when a dot appears. Then i could complete the EA with the basic options.

    In the first EA ( shi YourExpertAdvisor.mq4 ) my code for the buy signal i have this:

    //| Variable Begin |

    double Buy1_1 = iHigh(NULL, 0, Current + 0);
    double Buy1_2 = iCustom(NULL, 0, "Good_SHI_SilverTrendSigAlert", 0,2,9.0, 0, Current + 0);

    //| Signal Begin(Entry) |

    if (Buy1_1 > Buy1_2) Order = SIGNAL_BUY;

    With this second EA : ( error codes silverTrend_EA[].mq4 ) i get the same array error.

    The signal codes are:

    sig_buy=iCustom(NULL,0,"Good_SHI_SilverTrendSigAle rt", 0, 6, 45.0, 0, 0, 0);
    sig_sell=iCustom(NULL,0,"Good_SHI_SilverTrendSigAl ert", 0, 6, 45.0, 0, 1, 0);

    So i am guessing that the indicator is at fault. But where?

    I included a screenshot of the error, and the mq4 files.

    I Know that for an experienced coder it would take about 15-20 mminutes to figure it out. I have been trying for a week now with no avail.

    thank you in advance. It would really be appreciated.


    Attached Images Attached Images Could someone help me out with an EA please-shi-jpg 
    Attached Files Attached Files

Tags for this Thread

advisor, indicator, mq4, signal, trend

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts