Quantcast
Channel: Traderji.com
Viewing all articles
Browse latest Browse all 10287

Ribbon Afl - Need help

$
0
0
Hello Members,

Please help me plotting the ribbon. I tried but getting many errors. I have attached the image of the ribbon that I am trying to plot.

I have attached the image for reference:

Thanks all.

*********************

_SECTION_BEGIN("Price");
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", colorBrightGreen ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("");

//TIME FRAME CALCULATION
H1 = TimeFrameGetPrice( "H", inDaily, -1 ); // yesterdays high
L1 = TimeFrameGetPrice( "L", inDaily, -1 ); // low
C1 = TimeFrameGetPrice( "C", inDaily, -1 ); // close
O1 = TimeFrameGetPrice( "O", inDaily, -1 ); // close
DayO = TimeFrameGetPrice( "-1", inDaily ); // current day open


Diff=H1-L1;
M = (H1+L1)/2;
MP = M/2;

P1 = H1-MP;
P2 = L1+MP;

/*Plot Ribbon */
Ribbon1=IIf( C )>( P1 ) ,colorGreen, IIf( C )>( M ), colorbrightGreen, IIf( C )>( P2), colororange,colorred));

Plot(6, "Ribbon", Ribbon1, styleOwnScale| styleArea| styleNoLabel,-0.5,100);

_SECTION_END();

Attached Images
File Type: png ribbon.PNG (5.0 KB)

Viewing all articles
Browse latest Browse all 10287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>