指標腳本(近10根K棒第一個訊號)

  •   140 
  • 最後發表   andrew1234  2025 十月 27
andrew1234 發文於   2025/10/26

 

 

請教各位大大,下列指標因為容易達成條件所以會頻繁出現,

請問有辦法增加一個條件:前十根K棒都沒有達到這些條件才產生訊號?

(近10根K棒第一個訊號)

謝謝

condition1=bias(20)<=30;

condition2=bias(10)<=10;

If condition1 and condition2  then  plot1(low,"BS");

排序方式: 標準 | 最新
虎科大許教授 發文於   2025/10/27

你可以用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");

andrew1234 發文於   2025/10/27

瞭解

感謝許教授!

發表回覆
Close