Board logo

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

作者: 龙听    时间: 2022-11-2 11:49     标题: 【PriceVolTrend】

  1. variables: var0( 0 ) ;                        

  2. if C[1] <> 0 then
  3.         var0 = ( C - C[1] ) / C[1]
  4. else
  5.         var0 = 0 ;

  6. if BarType >= 2 and BarType < 5 then                              
  7.         PriceVolTrend = PriceVolTrend[1] + var0 * Volume
  8. else                                                                              
  9.                                                                                  
  10.         PriceVolTrend = PriceVolTrend[1] + var0 * Ticks ;
复制代码





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