邏輯條件是連四根黑K棒成立就畫Plot1
當突破這四根K線的高低點就分別畫Plot2與Plot3
但指標都只有Plot1 其它兩條都秀不出來
請教小幫手
感謝
程式碼如下
variable: RSI_over(false), KL(0),KH(0);
RSI_over = false;
KL = 0;
KH = 0;
if closeD(4) < openD(4) and closeD(3) < openD(3) and closeD(2) < openD(2)
and closeD(1) < openD(1) and closeD(5) > openD(5)
then begin
KL = Lowest(low[0],4);
KH = Highest(high[0],4);
RSI_over = true;
Plot1(L);
end;
//----- 破低 -----
if RSI_over = true and lowD(1) < KL
then Plot2(L);
//----- 破高 -----
if RSI_over = true and highD(1) > KH
then Plot3(L);




7 評論