Board logo

标题: 【OBV】 [打印本页]

作者: 龙听    时间: 2022-11-2 11:26     标题: 【OBV】

  1. if BarType >= 2 and BarType < 5 then                              
  2.         begin
  3.         if Close > Close[1] then
  4.                 OBV = OBV[1] + Volume
  5.         else if Close < Close[1] then
  6.                 OBV = OBV[1] - Volume
  7.         else
  8.                 OBV = OBV[1] ;
  9.         end
  10. else                                                                              
  11.                                                                                  
  12.         begin
  13.         if Close > Close[1] then
  14.                 OBV = OBV[1] + Ticks
  15.         else if Close < Close[1] then
  16.                 OBV = OBV[1] - Ticks
  17.         else
  18.                 OBV = OBV[1] ;
  19.         end ;
复制代码





欢迎光临 龙听期货论坛 (http://qhlt.club/) Powered by Discuz! 7.2