大盤每分鐘成交量比

  •   237 
  • 最後發表   菜菜  2025 六月 05
菜菜 發文於   2025/06/05

想請問例如09:00、09:05、09:10......

同時間今日與昨日的量比要怎麼寫呢?謝謝

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

5分鐘頻率,一天有54根K棒,v[54]就是昨天同根K棒的量。

菜菜 發文於   2025/06/05

好像知道了~謝謝老師提點!!

菜菜 發文於   2025/06/05

input: _stime(090000), _etime(133000);

condition1 = v[54] < VOLume ;

condition2 = v[1] < VOLume ;

condition3 = time >= _stime and time < _etime; 

If condition1 and condition2 and condition3  then 

ret = 1;

 

請問這樣寫正確嗎?謝謝

虎科大許教授 發文於   2025/06/05

若你指的是目前K棒的量大於昨天同時間K的量,也大於今天前一根K的量,則這樣寫OK。

發表回覆
Close