Hi,
I tried my best to create an AFl by reading and looking at various videos.
Came up with this, can anyone go through it and tell me if its correct, also some could please help me
how do I code the conditions to the generate buy sell signal, and whether its complete.
Thanks.
_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”, colorDefault ), styleNoTitle | ParamStyle(“Style”) | GetPriceStyle() );
_SECTION_END();
Long = EMA(C, 30);
Shoter = EMA(C, 15);
Plot(Long, “Longer EMA”, colorRed, styleNoTitle);
Plot(Shoter, “Shoter EMA”, colorBrightGreen, styleNoTitle);
_SECTION_BEGIN(“William’sTRY 3”);
//-- Begin of Script -----
pds = Param( “Periods”, 3, 2, 200);
OB = Param( “OB Level”, -20, -49, 0);
OS = Param( “OS Level”, -80, -100, -51);
WR = ((HHV(H,pds) - C) /(HHV (H,pds) -LLV (L,pds))) *-100;
_N(Title = StrFormat("{{NAME}}- W%%R(%g)= %g", pds, WR));
Plot( WR, “”, ParamColor( “Color”, colorBrown ), ParamStyle(“Style”));
Plot(OB,"",colorBlack);
Plot(OS,"",colorBlack);
PlotOHLC( WR,WR,-50,V, “”, colorRed, styleCloud | styleClipMinMax, OS, OB );
//-- End of Script -----
_SECTION_END();
Buy = ??
Sell = ??