// Downloaded From https://www.WiseStockTrader.com
_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();
//SMA 5,6 Crossover
//=====================================================================
_SECTION_BEGIN("SMA5-20 Golden& Death X");
Buy = Cross( MA( Close, 5 ), MA( Close, 34 ) );
Buy2 = Cross( MA( Close, 5 ), MA( Close, 100 ) ); 
Buy3 = Cross( MA( Close, 5 ), MA( Close, 180 ) );
Buy4 = Cross( MA( Close, 5 ), MA( Close, 290 ) );
Buy5 = Cross( MA( Close, 5 ), MA( Close, 900 ) );
Buy6 = Cross( MA( Close, 5 ), MA( Close, 1140 ) );

Buy7 = Cross( MA( Close, 5 ), MA( Close, 1800 ) ); 
Buy8 = Cross( MA( Close, 5 ), MA( Close, 2100 ) );
Buy9 = Cross( MA( Close, 5 ), MA( Close, 3200 ) );
Buy10 = Cross( MA( Close, 5 ), MA( Close, 4000 ) );



Sell = Cross( MA( Close, 13 ), MA( Close, 5 ) );

Sell2 = Cross( MA( Close,40 ), MA( Close, 20 ) ); 
//Sell3 = Cross( MA( Close, 180 ), MA( Close, 5 ) );
//Sell4 = Cross( MA( Close, 290 ), MA( Close, 13 ) );
Sell5 = Cross( MA( Close, 900 ), MA( Close, 5 ) );
Sell6 = Cross( MA( Close, 5 ), MA( Close, 1140 ) );

Sell7 = Cross( MA( Close, 5 ), MA( Close, 1800 ) ); 
Sell8 = Cross( MA( Close, 5 ), MA( Close, 2100 ) );
Sell9 = Cross( MA( Close, 5 ), MA( Close, 3200 ) );
Sell10 = Cross( MA( Close, 5 ), MA( Close, 4000 ) );





PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-15);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-15);
PlotShapes(IIf(Buy2==1, shapeUpArrow , shapeNone), colorDarkRed, 0,Low, Offset=-15);
PlotShapes(IIf(Buy3==1, shapeUpArrow , shapeNone), colorPink, 0,Low, Offset=-15);
PlotShapes(IIf(Buy4==1, shapeUpArrow , shapeNone), colorBlack, 0,Low, Offset=-15);
PlotShapes(IIf(Buy5==1, shapeUpArrow , shapeNone), colorBlue, 0,Low, Offset=-15);
PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-15);
PlotShapes(IIf(Buy6==1, shapeUpArrow , shapeNone), colorDarkRed, 0,Low, Offset=-15);
PlotShapes(IIf(Buy7==1, shapeUpArrow , shapeNone), colorPink, 0,Low, Offset=-15);
PlotShapes(IIf(Buy8==1, shapeUpArrow , shapeNone), colorBlack, 0,Low, Offset=-15);
PlotShapes(IIf(Buy9==1, shapeUpArrow , shapeNone), colorBlue, 0,Low, Offset=-15);
PlotShapes(IIf(Buy10==1, shapeUpArrow , shapeNone), colorBlue, 0,Low, Offset=-15);
PlotShapes(IIf(Sell2==1, shapeDownArrow, shapeNone), colorDarkRed, 0,High, Offset=-15);

//PlotShapes(IIf(Sell3==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-15);
//PlotShapes(IIf(Sell4==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-15);
PlotShapes(IIf(Sell5==1, shapeDownArrow, shapeNone), colorBlack, 0,High, Offset=-15);

_SECTION_END();

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();