good afl good system

THE LORD

Active Member
#1
_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",34, 34, 34, 1, 10 );
Plot( EMA(C,34), _DEFAULT_NAME(), ParamColor( "Color", colorBlue),ParamStyle("style")|styleLine,styleThick);
D=.0002*C;
X=EMA(C,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorBlue,styleCloud,styleNoLabel);

_SECTION_END();

_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 34,34,34, 1, 10 );
Plot( EMA(High,34), _DEFAULT_NAME(), ParamColor( "Color", colorYellow),ParamStyle("style")|styleLine,styleThick);
D=.0002*High;
X=EMA(High,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorYellow,styleCloud,styleNoLabel);
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods",34,34,34, 1, 10 );
Plot( EMA(Low,34), _DEFAULT_NAME(), ParamColor( "Color", colorDarkRed),ParamStyle("style")|styleLine,styleThick);
D=.0002*Low;
X=EMA(Low,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorDarkRed,styleCloud,styleNoLabel);
_SECTION_END();


_SECTION_BEGIN("EMA4");
P = ParamField("Price field",-1);
Periods = Param("Periods",50,50,50, 1, 10 );
Plot( EMA(C,50), _DEFAULT_NAME(), ParamColor( "Color", colorYellow),ParamStyle("style")|styleLine,styleThick);
D=.0002*C;
X=EMA(C,50);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorWhite,styleCloud,styleNoLabel);
_SECTION_END();

_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 89, 89, 89, 1, 10 );
Plot( MA( C,89), _DEFAULT_NAME(), ParamColor("Color", colorBlack),ParamStyle("style")|styleLine+styleDots);
_SECTION_END();
 
#7
//CORRECTED AFL IS GIVEN BELOW

_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",34, 34, 34, 1, 10 );
Plot( EMA(C,34), _DEFAULT_NAME(), ParamColor( "Color", colorBlue),ParamStyle("style")|styleLine,styleThick);
D=.0002*C;
X=EMA(C,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorBlue,styleCloud,styleNoLabel);

_SECTION_END();

_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 34,34,34, 1, 10 );
Plot( EMA(High,34), _DEFAULT_NAME(), ParamColor( "Color", colorYellow),ParamStyle("style")|styleLine,styleThick);
D=.0002*High;
X=EMA(High,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorYellow,styleCloud,styleNoLabel);
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods",34,34,34, 1, 10 );
Plot( EMA(Low,34), _DEFAULT_NAME(), ParamColor( "Color", colorDarkRed),ParamStyle("style")|styleLine,styleThick);
D=.0002*Low;
X=EMA(Low,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorDarkRed,styleCloud,styleNoLabel);
_SECTION_END();


_SECTION_BEGIN("EMA4");
P = ParamField("Price field",-1);
Periods = Param("Periods",50,50,50, 1, 10 );
Plot( EMA(C,50), _DEFAULT_NAME(), ParamColor( "Color", colorYellow),ParamStyle("style")|styleLine,styleThick);
D=.0002*C;
X=EMA(C,50);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorWhite,styleCloud,styleNoLabel);
_SECTION_END();

_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 89, 89, 89, 1, 10 );
Plot( MA( C,89), _DEFAULT_NAME(), ParamColor("Color", colorBlack),ParamStyle("style")|styleLine+styleDots);
_SECTION_END();
 
#8
Hello friends,

Even after correction and pasting here it shows some errors. In this regard you have to paste in the formula editor and remove spaces with the help of VERIFY SYNTAX.
 

bandlab2

Well-Known Member
#9
_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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",34, 34, 34, 1, 10 );
Plot( EMA(C,34), _DEFAULT_NAME(), ParamColor( "Color", colorBlue),ParamStyle("style")|styleLine,styleThick);
D=.0002*C;
X=EMA(C,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorBlue,styleCloud,styleNoLabel);

_SECTION_END();

_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 34,34,34, 1, 10 );
Plot( EMA(High,34), _DEFAULT_NAME(), ParamColor( "Color", colorYellow),ParamStyle("style")|styleLine,styleThick);
D=.0002*High;
X=EMA(High,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorYellow,styleCloud,styleNoLabel);
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods",34,34,34, 1, 10 );
Plot( EMA(Low,34), _DEFAULT_NAME(), ParamColor( "Color", colorDarkRed),ParamStyle("style")|styleLine,styleThick);
D=.0002*Low;
X=EMA(Low,34);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorDarkRed,styleCloud,styleNoLabel);
_SECTION_END();


_SECTION_BEGIN("EMA4");
P = ParamField("Price field",-1);
Periods = Param("Periods",50,50,50, 1, 10 );
Plot( EMA(C,50), _DEFAULT_NAME(), ParamColor( "Color", colorYellow),ParamStyle("style")|styleLine,styleThick);
D=.0002*C;
X=EMA(C,50);
XT=X+D;
XB=X-D;
PlotOHLC(XT,XT,XB,XB,"",colorWhite,styleCloud,styleNoLabel);
_SECTION_END();

_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 89, 89, 89, 1, 10 );
Plot( MA( C,89), _DEFAULT_NAME(), ParamColor("Color", colorBlack),ParamStyle("style")|styleLine+styleDots);
_SECTION_END();

pl explain the setup. what it does? i see 4 EMA and 1 MA. cross over of EMAs with MA is the signal? ho do you handle whipsaws? on what time frame it works? did u test beteen jan - mar 09 ?
 

Similar threads