Results 1 to 3 of 3
 0 Attachment(s)    

Thread: Madrogoldenfilter

  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    8

    Default Madrogoldenfilter

    I use,sometimes, the Madrogoldenfilter indicator with good result.
    Maybe it would be interesting to automate it.
    (Unfortunately, I do not know how).
    it would open positions according to the signal strength ...
    Finally, look at it and say what you think...

    MadroGoldenFilter - MQL4 Code Base

    This indicator gives us four signals to filtering 4 strategies:
    Broken Trend:
    Buy:
    1 - Broking the Down Trend;
    2 - Crossing of tow Exponential Moving Average: EMA9 Cross Up EMA30;
    3 - Momentum value > 100.
    Sell:
    1 - Broking the Up Trend;
    2 - Crossing of tow Exponential Moving Average:EMA9 Cross Down EMA30;
    3 - Momentum < 100.

    The lower one gives the momentum & the Arrows points to the crossing of 2MA:
    Golden Trend:
    Buy:
    1 - Broking the Down Trend;
    2 - Crossing of tow Moving Average: EMA5 Cross Up SMMA15 (Smooth);
    3 - DeMarker value > 0.5 & Force Index >0.
    Sell:
    1 - Broking the Up Trend;
    2 - Crossing of tow Exponential Moving Average:EMA5 Cross Down SMMA15;
    3 - DeMarker value < 0.5 & Force Index< 0.

    The Middle one gives the required signal & the Arrows points to the crossing of 2 MA:
    Golden Cross:
    Buy:
    1 - Crossing of tow Exponential Moving Average: EMA5 Cross Up EMA15;
    2 - RSI value > 50 & Crossing Up of MACD& Crossing Up of ADX.
    Sell:
    1 - Crossing of tow Smooth Moving Average: EMA5 Cross Down EMA15;
    2 - RSI value < 50 & Crossing Down of MACD& Crossing Down of ADX.

    The Upper one gives the required signal & the Arrows points to the crossing of 2 MA:
    Golden Lines:
    When the price passed a strong resistance or support we can get a good confirming signal for Buy or Sell by looking to the three signals of the indicator.

  2. #2
    Junior Member
    Join Date
    Jan 2009
    Posts
    8

    Default

    I have no knowledge of programming, but I tried to start and taking exemple on another ea.
    But I'm stuck.. I don't know how to include the indicator to trigger trades.
    Would someone help me ? please ?

    extern int StopLoss=0;
    extern int TakeProfit=20;
    extern int TrailingStop=0;
    extern double Lots=1;
    extern int Slippage=0;

    extern int OpenLevel=0;
    extern int CloseLevel=1;
    extern int FasterMA = 5;
    extern int SlowerMA = 15;
    extern int MA1_Type = 1;
    extern int MA2_Type = 1;
    extern int MACD_Fast = 8;
    extern int MACD_Slow = 17;
    extern int MACD_Signal = 9;
    extern int RSI = 21;
    extern int Momentum = 14;
    extern int DeMarker = 14;
    extern int ADX = 14;
    extern int ForceIndex = 14;

    int Signal;
    double SL,TP;
    //+------------------------------------------------------------------+
    //| expert deinitialization function |
    //+------------------------------------------------------------------+
    int deinit()
    {
    Comment("");
    return(0);
    }
    //+------------------------------------------------------------------+
    //| expert start function |
    //+------------------------------------------------------------------+
    int start()
    {
    Goldenfilter();
    int Total=0;
    for(int cnt=0;cnt<OrdersTotal();cnt++)
    {
    OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
    if(OrderSymbol()==Symbol())
    {
    Total++;
    if(OrderType()==OP_BUY)
    {
    if(Signal<-CloseLevel)
    {
    OrderClose(OrderTicket(),OrderLots(),Bid,Slippage) ;
    return(0);
    }
    if(TrailingStop>0
    && Bid-OrderOpenPrice()>Point*TrailingStop
    && OrderStopLoss()<Bid-Point*TrailingStop)
    {
    OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0);
    return(0);
    }
    }
    if(OrderType()==OP_SELL)
    {
    if(Signal>CloseLevel)
    {
    OrderClose(OrderTicket(),OrderLots(),Ask,Slippage) ;
    return(0);
    }
    if(TrailingStop>0
    && OrderOpenPrice()-Ask>Point*TrailingStop
    && (OrderStopLoss()>Ask+Point*TrailingStop || OrderStopLoss()==0))
    {
    OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Poi nt*TrailingStop,OrderTakeProfit(),0);
    return(0);
    }
    }
    }
    }
    if(Total==0)
    {
    if(Signal>OpenLevel)
    {
    SL=0;TP=0;
    if(StopLoss>0) SL=Ask-Point*StopLoss;
    if(TakeProfit>0) TP=Ask+Point*TakeProfit;
    OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,SL,TP, NULL,0,0);
    return(0);
    }
    if(Signal<OpenLevel)
    {
    SL=0;TP=0;
    if(StopLoss>0) SL=Bid+Point*StopLoss;
    if(TakeProfit>0) TP=Bid-Point*TakeProfit;
    OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,SL,TP ,NULL,0,0);
    return(0);
    }
    }
    return(0);
    }
    //+------------------------------------------------------------------+
    void Goldenfilter()
    {

    after

  3. #3

    Default

    Hello,

    Did you read funyoo's requirements here http://www.tradingsystemforex.com/id...t-request.html
    before you posted your request as if you did you would see he requires you to post account statements to show this is profitable before he will look at it.

    Regards,
    Jeff

    Quote Originally Posted by flo1402 View Post
    I use,sometimes, the Madrogoldenfilter indicator with good result.
    Maybe it would be interesting to automate it.
    (Unfortunately, I do not know how).
    it would open positions according to the signal strength ...
    Finally, look at it and say what you think...

    MadroGoldenFilter - MQL4 Code Base

    This indicator gives us four signals to filtering 4 strategies:
    Broken Trend:
    Buy:
    1 - Broking the Down Trend;
    2 - Crossing of tow Exponential Moving Average: EMA9 Cross Up EMA30;
    3 - Momentum value > 100.
    Sell:
    1 - Broking the Up Trend;
    2 - Crossing of tow Exponential Moving Average:EMA9 Cross Down EMA30;
    3 - Momentum < 100.

    The lower one gives the momentum & the Arrows points to the crossing of 2MA:
    Golden Trend:
    Buy:
    1 - Broking the Down Trend;
    2 - Crossing of tow Moving Average: EMA5 Cross Up SMMA15 (Smooth);
    3 - DeMarker value > 0.5 & Force Index >0.
    Sell:
    1 - Broking the Up Trend;
    2 - Crossing of tow Exponential Moving Average:EMA5 Cross Down SMMA15;
    3 - DeMarker value < 0.5 & Force Index< 0.

    The Middle one gives the required signal & the Arrows points to the crossing of 2 MA:
    Golden Cross:
    Buy:
    1 - Crossing of tow Exponential Moving Average: EMA5 Cross Up EMA15;
    2 - RSI value > 50 & Crossing Up of MACD& Crossing Up of ADX.
    Sell:
    1 - Crossing of tow Smooth Moving Average: EMA5 Cross Down EMA15;
    2 - RSI value < 50 & Crossing Down of MACD& Crossing Down of ADX.

    The Upper one gives the required signal & the Arrows points to the crossing of 2 MA:
    Golden Lines:
    When the price passed a strong resistance or support we can get a good confirming signal for Buy or Sell by looking to the three signals of the indicator.

Tags for this Thread

100, adx, average, expert, how to, index, indicator, macd, moving average, mql, mql4, profitable, programming, request, resistance, rsi, signal, signals, slippage, stoploss, strategies, support, trailingstop, 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
  •