請教各位大大,下列指標因為容易達成條件所以會頻繁出現,
請問有辦法增加一個條件:前十根K棒都沒有達到這些條件才產生訊號?
(近10根K棒第一個訊號)
謝謝
condition1=bias(20)<=30;
condition2=bias(10)<=10;
If condition1 and condition2 then plot1(low,"BS");
請教各位大大,下列指標因為容易達成條件所以會頻繁出現,
請問有辦法增加一個條件:前十根K棒都沒有達到這些條件才產生訊號?
(近10根K棒第一個訊號)
謝謝
condition1=bias(20)<=30;
condition2=bias(10)<=10;
If condition1 and condition2 then plot1(low,"BS");
你可以用TrueAll函數處理。
condition1=bias(20)<=0.3; condition2=bias(10)<=0.1; condition3=TrueAll(condition1[1]=false or condition2[1]=false, 10); If condition1 and condition2 and condition3 then plot1(low,"BS");
瞭解
感謝許教授!
2 評論