//========DIF-MACD翻正=============
input: FastLength(12), SlowLength(26), MACDLength(9);
variable: difValue(0), macdValue(0), oscValue(0);
MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue);
var:c6(0);
c6= barslast (oscValue Crosses Above 0);
if c6=0 and c6[1]>20
then condition6=true;
if condition6
then plot6(value5,"DIF-MACD翻正");
請問我要它有出現就顯示 - 而不是取得上一次條件成立到當前的K棒數
回傳數值=BarsLast(條件數列) 請問要換成 哪種函數 謝謝

4 評論