New Trading System. Traderji Please help

#1
Can somebody help me creating this simple System ::

It uses the 5, 13, 62 ema, Rob Booker method.

When the 5 ema and the 13 ema both cross above the 62 ema - blue Arrow

When the 5 ema and the 13 ema both cross below the 62 ema - red Arrow.

It looks like a simple formula but it is very effective. See attached Image for the same. Traderji please help.


Looking for some help.

Regards

Vinkal
 

Attachments

Laksh

Active Member
#2
Can somebody help me creating this simple System ::

It uses the 5, 13, 62 ema, Rob Booker method.

When the 5 ema and the 13 ema both cross above the 62 ema - blue Arrow

When the 5 ema and the 13 ema both cross below the 62 ema - red Arrow.

It looks like a simple formula but it is very effective. See attached Image for the same. Traderji please help.


Looking for some help.

Regards

Vinkal
Unless you name your trading s/w how can any body help you with code?

Laksh
 

THE LORD

Active Member
#3
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
_SECTION_END();



_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",5, 5, 5, 1, 10 );
Plot( EMA(C,5 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 13, 13, 13, 1, 10 );
Plot( EMA(C,13 ), _DEFAULT_NAME(), ParamColor( "Color", colorYellow), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods", 62, 62,62, 1, 10 );
Plot( EMA(C,62 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlack), ParamStyle("Style") );
_SECTION_END();
 
#4
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
_SECTION_END();



_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",5, 5, 5, 1, 10 );
Plot( EMA(C,5 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 13, 13, 13, 1, 10 );
Plot( EMA(C,13 ), _DEFAULT_NAME(), ParamColor( "Color", colorYellow), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods", 62, 62,62, 1, 10 );
Plot( EMA(C,62 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlack), ParamStyle("Style") );
_SECTION_END();
Thanks "LORD"

So nice to get your reply. I plotted in AMI broker. But i need Buy or Sell Arrow as per these condition.

When the 5 ema and the 13 ema both cross above the 62 ema - blue Arrow

When the 5 ema and the 13 ema both cross below the 62 ema - red Arrow.


Regards

Vinkal
 

THE LORD

Active Member
#6
Have very nice trading



_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
_SECTION_END();



_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",5, 5, 5, 1, 10 );
Plot( EMA(C,5 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 13, 13, 13, 1, 10 );
Plot( EMA(C,13 ), _DEFAULT_NAME(), ParamColor( "Color", colorYellow), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods", 62, 62,62, 1, 10 );
Plot( EMA(C,62 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlack), ParamStyle("Style") );
Buy=Cross(EMA(C,5 ),EMA(C,12 )) AND EMA(C,5 )>EMA(C,62 ) AND EMA(C,12)>EMA(C,62 );
Sell=Cross(EMA(C,12 ),EMA(C,5))AND EMA(C,5 )<EMA(C,62 ) AND EMA(C,12)<EMA(C,62 ) ;
PlotShapes( IIf( Buy , shapeUpArrow , shapeNone ),colorBlue, 0, C, -20);
PlotShapes( IIf(Sell , shapeDownArrow, shapeNone ),colorYellow,0, C, -20);
SetChartBkGradientFill( ParamColor("BgTop", colorBrightGreen),ParamColor("BgBottom", colorSeaGreen));
_SECTION_END();
 
#7
Have very nice trading



_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
_SECTION_END();



_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",5, 5, 5, 1, 10 );
Plot( EMA(C,5 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 13, 13, 13, 1, 10 );
Plot( EMA(C,13 ), _DEFAULT_NAME(), ParamColor( "Color", colorYellow), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods", 62, 62,62, 1, 10 );
Plot( EMA(C,62 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlack), ParamStyle("Style") );
Buy=Cross(EMA(C,5 ),EMA(C,12 )) AND EMA(C,5 )>EMA(C,62 ) AND EMA(C,12)>EMA(C,62 );
Sell=Cross(EMA(C,12 ),EMA(C,5))AND EMA(C,5 )<EMA(C,62 ) AND EMA(C,12)<EMA(C,62 ) ;
PlotShapes( IIf( Buy , shapeUpArrow , shapeNone ),colorBlue, 0, C, -20);
PlotShapes( IIf(Sell , shapeDownArrow, shapeNone ),colorYellow,0, C, -20);
SetChartBkGradientFill( ParamColor("BgTop", colorBrightGreen),ParamColor("BgBottom", colorSeaGreen));
_SECTION_END();
Hi Lord

Arrows are not getting plotted properly. Please check.

When the 5 ema and the 13 ema both cross above the 62 ema - blue Arrow

When the 5 ema and the 13 ema both cross below the 62 ema - red Arrow.

Regards
 

THE LORD

Active Member
#8
sorry its amestake

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
_SECTION_END();



_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",5, 5, 5, 1, 10 );
Plot( EMA(C,5 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 13, 13, 13, 1, 10 );
Plot( EMA(C,13 ), _DEFAULT_NAME(), ParamColor( "Color", colorYellow), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods", 62, 62,62, 1, 10 );
Plot( EMA(C,62 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlack), ParamStyle("Style") );
Buy=Cross(EMA(C,5 ),EMA(C,13 )) AND EMA(C,5 )>EMA(C,62 ) AND EMA(C,13)>EMA(C,62 );
Sell=Cross(EMA(C,13 ),EMA(C,5))AND EMA(C,5 )<EMA(C,62 ) AND EMA(C,13)<EMA(C,62 ) ;
PlotShapes( IIf( Buy , shapeUpArrow , shapeNone ),colorBlue, 0, C, -20);
PlotShapes( IIf(Sell , shapeDownArrow, shapeNone ),colorYellow,0, C, -20);
SetChartBkGradientFill( ParamColor("BgTop", colorBrightGreen),ParamColor("BgBottom", colorSeaGreen));
_SECTION_END();
 
#9
sorry its amestake

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
_SECTION_END();



_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",5, 5, 5, 1, 10 );
Plot( EMA(C,5 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 13, 13, 13, 1, 10 );
Plot( EMA(C,13 ), _DEFAULT_NAME(), ParamColor( "Color", colorYellow), ParamStyle("Style") );
_SECTION_END();


_SECTION_BEGIN("EMA3");
P = ParamField("Price field",-1);
Periods = Param("Periods", 62, 62,62, 1, 10 );
Plot( EMA(C,62 ), _DEFAULT_NAME(), ParamColor( "Color", colorBlack), ParamStyle("Style") );
Buy=Cross(EMA(C,5 ),EMA(C,13 )) AND EMA(C,5 )>EMA(C,62 ) AND EMA(C,13)>EMA(C,62 );
Sell=Cross(EMA(C,13 ),EMA(C,5))AND EMA(C,5 )<EMA(C,62 ) AND EMA(C,13)<EMA(C,62 ) ;
PlotShapes( IIf( Buy , shapeUpArrow , shapeNone ),colorBlue, 0, C, -20);
PlotShapes( IIf(Sell , shapeDownArrow, shapeNone ),colorYellow,0, C, -20);
SetChartBkGradientFill( ParamColor("BgTop", colorBrightGreen),ParamColor("BgBottom", colorSeaGreen));
_SECTION_END();
Hi

It is still the Arrows plotting is wrong..

Please Rectify

Regards
 

pkamalesh

Well-Known Member
#10
Can somebody help me creating this simple System ::

It uses the 5, 13, 62 ema, Rob Booker method.

When the 5 ema and the 13 ema both cross above the 62 ema - blue Arrow

When the 5 ema and the 13 ema both cross below the 62 ema - red Arrow.

It looks like a simple formula but it is very effective. See attached Image for the same. Traderji please help.


Looking for some help.

Regards

Vinkal
sir i just have a practical view on this...why do u need a afl when u can see the cross above or below the ema's through naked eye??????
 

Similar threads