請教選股

  •   320 
  • 最後發表   小萌新  2024 十月 13
小萌新 發文於   2024/10/12

你好,想請教

如果想要搜尋特定日期,創240日新高的股票該怎麼打呢

例如20240805-20240820,創240日新高的股票有哪些?

感謝

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

input: bDate(20240805,"開始日期");

input: eDate(20240820,"結束日期");

Value1=getBarOffset(bDate);

SetTotalBar(Value1);

setBackBar(240);

if Date>=bDate and Date<=eDate then

         if c>highest(c[1],240) then condition1=true;

if condition1 then ret=1;

小萌新 發文於   2024/10/12

感謝教授~

小萌新 發文於   2024/10/12

教授我編譯出來有問題,想請問是哪邊有問題呢?

虎科大許教授 發文於   2024/10/12

上面的程式是我用手機寫的,沒有測試。正確的程式如下:

SetTotalBar(250);

setBackBar(240);

input: bDate(20240805,"開始日期");

input: eDate(20240820,"結束日期");

if Date>=bDate and Date<=eDate then

         if c>highest(c[1],240) then condition1=true;

if condition1 then ret=1;

小萌新 發文於   2024/10/13

謝謝教授!!

發表回覆
Close