你好,想請教
如果想要搜尋特定日期,創240日新高的股票該怎麼打呢
例如20240805-20240820,創240日新高的股票有哪些?
感謝
你好,想請教
如果想要搜尋特定日期,創240日新高的股票該怎麼打呢
例如20240805-20240820,創240日新高的股票有哪些?
感謝
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;
感謝教授~
教授我編譯出來有問題,想請問是哪邊有問題呢?
上面的程式是我用手機寫的,沒有測試。正確的程式如下:
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;
謝謝教授!!
5 評論