Input: Length(20), LowerBand(3);
settotalbar(Length + 3);
SetInputName(1, "期數");
SetInputName(2, "通道下緣");
condition1 = close cross over bollingerband(getfield("Close","5"), Length, -1 * LowerBand) ; //收盤價向上突破布林下軌
condition2 = close cross under bollingerband(getfield("Close","5"), Length, -1 * LowerBand) ; //收盤價向上突破布林下軌
if condition1 or condition2 then ret = 1;
各位大神及小編大家好,以上是我參考版上的,想詢問如果我想多增加一些排除條件
1.突破上軌且當前漲幅不超過7%
2.跌破下軌且當前跌幅不超過7%
3.標的僅限當日可買賣現沖
4.目前股價位於100-200間
請問應該如何修正會比較適當
2 評論