Predict cycle

Discussion in 'MetaTrader' started by RADDISHSTONE, Sep 15, 2016.

  1. RADDISHSTONE

    RADDISHSTONE Active Member

    Joined:
    Aug 30, 2016
    Messages:
    181
    Likes Received:
    205
    Trophy Points:
    43
    Guys,

    Please some one convert this afl to mt4.

    Want to test 1 method which useful for NSE.
    I got from marketcalls.
    please help me.

    Dont change any parameter, functionality or any value. I need exactly same in MT4.

    PHP:
    _SECTION_BEGIN("Market Trend");
    SetChartOptions(0,chartShowArrows|chartShowDates);

    _N(Title StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}} - Cycle analysis indicator from www.marketcalls.in"OHLCSelectedValueROCC) ) ));

    PlotC"Close"colorDefaultstyleNoTitle ParamStyle("Style") | GetPriceStyle() ); 


    function 
    predictCyclearg1arg2 )
    {
      
    local var1var2

      
    result arg1 arg2

      return 
    result;
    }

    Predict=0;
    ParamField("Price field",-1);
    Periods Param("Periods"152300110 );
    Predict PredictCycle(C,Periods);

    Buy Predict>Ref(Predict,-1);
    Sell Predict<Ref(Predict,-1);

    Buy ExRem(Buy,Sell);
    Sell ExRem(Sell,Buy);

    Plot(Predict,"Predict",colorwhite,styleLine styleThick);

    PlotShapes(IIf(BuyshapeUpArrowshapeNone),colorGreen0,LOffset=-5); 
    PlotShapes(IIf(SellshapeDownArrowshapeNone),colorRed0,HOffset=-5);

     
    _SECTION_END();
     
Loading...

Share This Page