請教各位大大
我想要60分MACD翻紅或者翻黑都跳出警示
不知道我這樣寫對不對
我的參數是短天數17.長天數45.macd天數17
input: FastLength(17), SlowLength(45), MACDLength(17);
variable: difValue(0), macdValue(0), oscValue(0);
SetTotalBar((maxlist(FastLength,SlowLength,6) + MACDLength) * 3 + 8);
SetInputName(1, "DIF短期期數");
SetInputName(2, "DIF長期期數");
SetInputName(3, "MACD期數");
MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue);
condition1 = trueall(oscValue < oscValue[1], 2) and oscValue > 0; //連續2期 OSC 小於前期且 OSC 為紅柱
//condition1 = trueall(oscValue > oscValue[1], 2) and oscValue < 0; //連續2期 OSC 大於前期且 OSC 為綠柱
if condition1 then ret = 1;
5 評論