|
樓主 |
發表於 12-10-6 17:48
|
顯示全部樓層
好像這個可以了
Buy=Cross(MA(C,10), MA(C,150));
Sell =Cross(MA(C,10), MA(C,30));
Buy=ExRem( Buy, Sell );
Sell=ExRem( Sell, Buy );
Short=Cross(MA(C,150), MA(C,10));
Cover=Cross(MA(C,10), MA(C,90)) ;
Short=ExRem( Short, Cover );
Cover=ExRem( Cover, Short );
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Short, shapeDownArrow, shapeNone),colorRed, 0, H, Offset=40);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorGreen, 0, H, Offset=40);
PlotShapes(IIf(Cover, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
|
|