Board logo

标题: 【进/出货指标(Accum Dist - PrVol)】 [打印本页]

作者: 龙听    时间: 2022-11-3 14:03     标题: 【进/出货指标(Accum Dist - PrVol)】

  1. inputs:
  2.         AlertLength( 14 ) ;

  3. variables:
  4.         var0( 0 ),
  5.         var1( 0 ) ;

  6. if BarType >= 2 and BarType < 5 then                              
  7.         var0 = Volume
  8. else                                                                              
  9.                                                                                  
  10.         var0 = Ticks ;

  11. var1 = AccumDist( var0 ) ;

  12. Plot1( var1, "AccDst-PrVol" ) ;

  13. condition1 = LowestBar( C, AlertLength ) = 0 and LowestBar( var1, AlertLength ) > 0 ;
  14. if condition1 then
  15.         Alert( "Bullish divergence - new low not confirmed" )
  16. else
  17. begin
  18. condition1 = HighestBar( C, AlertLength ) = 0 and HighestBar( var1, AlertLength ) > 0 ;
  19. if condition1 then
  20.         Alert( "Bearish divergence - new high not confirmed" ) ;
  21. end;
复制代码





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