PlotStyle = ParamStyle("Plot Style", styleLine );
SHortPeriods = Param("Short Periods", 3, 1, 100, 1);
shortma = MA( C,SHortPeriods);
shortroc = ROC( shortma, SHortPeriods-1);
Plot( shortma, "MA3", IIf( shortroc > 0, colorGreen, colorRed ), PlotStyle);
minta bantuan seniors untuk lengkapi afl ini dgn perintah sbb :
buy ketika line merah berubah menjadi hijau
sell ketika line hijau berubah menjadi merah
tidak boleh ada buy sell pada line dgn warna yg sama.
trims.
__._,_.___



No comments:
Post a Comment