Jump to content

EAcollector

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by EAcollector

  1. Hi guys. I have this indicator of La Selle Street in .els need it in mql4 now for my ea. Its real basic but cant get it to work right.

     

    For the first 3 bars the regEMA buffer should equal the close price from there it should go over and do the calculation as u need regEMA[2] for the calculation thus first 3 bars must equal close. Here is my code, help would be gladly appreciated!!!

     

    extern int EMA_Length = 22;

    double PctBelow = 0.5;

    double PctAbove = 0.5;

     

    double Alpha=0.0, PctBelowFactor=0.0, PctAboveFactor=0.0;

    int start()

    {

    int counted_bars=IndicatorCounted();

    int limit;

    if (counted_bars < 0) return(-1);

    if (counted_bars > 0) counted_bars--;

    limit = Bars-counted_bars;

     

    Alpha = 2/(EMA_Length + 1);

    PctBelowFactor = (1 - (0.5*0.01));

    PctAboveFactor = (1 + (0.5*0.01));

     

    for (int i = Bars; i >= 0; i++)

    {

    if (i > 3)

    {

    regEMABuffer = (regEMABuffer[i+1]*(1+2*0.5) + Alpha*(Close-regEMABuffer[i+1]) - 0.5*regEMABuffer[i+2]) /1.5;

    }

    else

    {

    regEMABuffer = Close;

    }

     

    lowerRemaBuffer = regEMABuffer * PctBelowFactor;

    upperRemaBuffer = regEMABuffer * PctAboveFactor;

    }

    return(0);

    }

     

    It should be flowing bands mine is all zigzag and it never touches the highs of the bar and that's kind of the idea to define oversold and overbought conditions, and it works quite nicely.

  2. Hello e-Investor. Sorry to hear about your log-in problems mate. If you want to get back to your old account then go to this link

    http://indo-investasi.com/login.php?do=lostpw

    type in the email you used when you you registered as e-Invester

    Click on request password now

    Receive the instructions in your email and you'll be back as e-Invester again matey:)\\m/

     

    ThanxCashManic I did that and still the site does not want to send me my password back not getting the email

×
×
  • Create New...