Need Offset MA channel
Results 1 to 3 of 3

Thread: Need Offset MA channel

  1. #1
    Any coder will help me to obtain this MT4 Offset MA decoration.


    This notion was baswd on Wilder's Current Day Moving Average = (Previous Day Wilder's Moving Average * (n-1) Current Day Price)/n

    using the variant of this Advance Buy 6-4 Channel trading platform in which a 6 day moving average is offset by 4day Moving average offset and the resulting indior is plotted.

    Within this scenario 5 EMA is offset by 13day EMA.

    REsult for testing this method is in post 766. .link under

    https://www.nigeriaforextrading.com/...statement.html

    Attached chart for examples.

    Appreaciate any help here.


    Thank You





    Similar in Amibroker AFL code

    SECTION_BEGIN(5-13 EMA Channel);
    SetChartOptions(0,chartShowArrows|chartShowDates);
    _N(Title = StrFormat(NAME - INTERVAL DATE Open %g, Hi%g, Lo%g, Close%g (%.1f%%) VALUES, O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
    Plot( C, Close, ParamColor(Color, colorBlack ), styleNoTitle | ParamStyle(Style) | GetPriceStyle() );


    A = EMA( H,5 );
    B = EMA( L,5 );


    x= Ref(A,-13);
    y= Ref(B,-13);

    D=.0009;
    xt=x x*D;
    xb=x-x*D;

    yt=y y*D;
    yb=y-y*D;

    /* Buy or Sell Condition */
    Buy = Cross(Close,xt);
    Sell = Cross(yt,Close);
    Buy = ExRem(Buy,Sell);
    Sell = ExRem(Sell,Buy);

    Filter = Buy OR Sell;
    /* Exploration Parameters */
    AddTextColumn( FullName(), Company Name );
    AddColumn( Buy, Buy, 1 );
    AddColumn( Sell, Sell, 1 );
    AddColumn( C, Close, 1.3 );
    AddColumn( H, High, 1.3 );

    /* Plotting the Channel Cloud */

    PlotOHLC( 0,xt,xb,xb,,colorBlue, styleCloud);
    PlotOHLC( 0,yt,yb,yb,,colorBlue, styleCloud);
    PlotOHLC( 0,xt,yb,yb,,colorRed, styleCloud);

    Title = EncodeColor(colorWhite) 5-13 EMA Channel Trading System - Name() - EncodeColor(colorRed) Interval(two ) EncodeColor(colorWhite)
    - Date() - \n EncodeColor(colorRed) Op- O Hello - H Lo- L
    Cl- C Vol= WriteVal(V) \n
    EncodeColor(colorLime)
    WriteIf (Buy, GO LONG / Reverse Signal at C ,)
    WriteIf (Sell, EXIT LONG / Reverse Signal at C ,) \n EncodeColor(colorWhite)
    WriteIf(Sell, Total Profit/Loss for the Last Trade Rs. (C-BuyPrice) ,)
    WriteIf(Buy, Total Profit/Loss for the Last commerce Rs. (SellPrice-C) ,);

    PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
    PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);
    PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
    PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
    PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);
    PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);
    _SECTION_END();


  2. #2
    Try this, it's a dual MA with counter inputs with 2 buffers to your fill in color between the MA's.

    Https://www.nigeriaforextrading.com/...6828494489.ex4

    Filler width set at 0


    Filler width set at two

  3. #3
    Quote Originally Posted by ;
    Try this, it's a double MA with counter inputs with 2 buffers to your fill in colour between the MA's.

    Attachment 1104868

    Filler width set at 0


    Filler width set at 2
    Thank You Very Much CJA,

    appreciate your help.

    Accountable for late response as I was travelling for long vaion.

    Student Group

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.