Results 1 to 1 of 1
 2 Attachment(s)    

Thread: Please help for add MA filter for an existing EA

  1. #1
    Junior Member
    Join Date
    Feb 2011

    Default Please help for add MA filter for an existing EA

    Hi expert members,

    Please help to code MA filter for this source code!

    int CalculaSignal(int aux_range, double aux_price, double aux_index, int aux_shift)
    int aux=0;

    double f1=iCustom(Symbol(),0,"Fisher M11",aux_range,aux_price,aux_index,0,aux_shift);
    double f2=iCustom(Symbol(),0,"Fisher M11",aux_range,aux_price,aux_index,0,aux_shift+1) ;

    // Valores de retorno
    // 1. Compra
    // 2. Compra Seņal
    // 3. Venta
    // 4. Venta Seņal
    if (f1>0 && f2<0) aux=1;
    if (f1<0 && f2>0) aux=2;


    The buy order should be triggering above SMA(varies), and sell order triggered below SMA oppositely.

    This EA is from, I found out the Fisher M11 indicator is good, and was playing a period of time, but in order of avoiding bad trade, use MA filter could be a good solution.

    I will share both setting and FT, after somebody help to the MA filtering.

    Thanks in advance!


    also attach original EA
    Attached Files Attached Files

Similar Threads

  1. Modifying an existing Harmonic Pattern indicator
    By TradeWynds in forum MQL programming
    Replies: 0
    Last Post: 12-21-2014, 14:44
  2. Replies: 0
    Last Post: 06-20-2010, 12:30
  3. XMA filter - new trend filter, check it out
    By Metatrader7 in forum Ideas for expert advisors
    Replies: 13
    Last Post: 05-09-2010, 08:06

Tags for this Thread

add, expert, index, indicator, sma, source, time

Posting Permissions

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