1: _SECTION_BEGIN("");
2: SetChartOptions(0,chartShowArrows|chartShowDates);
3: _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g,
4: Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C,
5: SelectedValue( ROC( C, 1 ) ) ));
6: Plot( C, "Close", ParamColor("Color", colorBlack ),
7: styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
8: _SECTION_END();
9:
10:
11: _SECTION_BEGIN("MA5-MA20 Crossover");
12: Buy = Cross( MA( Close, 5 ), MA( Close, 20 ) );
13: Sell = Cross( MA( Close, 20 ), MA( Close, 5 ) );
14: PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone),
15: colorRed, 0,High, Offset=-15);
16: PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone),
17: colorGreen, 0,Low, Offset=-15);
18: _SECTION_END();
19:
20:
21: Plot( MA( Close,5 ),"MA5",colorRed,styleLine);
22: Plot( MA( Close,20),"MA20",colorBlue,styleLine);
Ini adalah awal untuk trading for a living Bursa Efek Indonesia.
No comments:
Post a Comment