Board logo

标题: 【能量潮(On Balance Volume)】 [打印本页]

作者: 龙听    时间: 2022-11-3 14:00     标题: 【能量潮(On Balance Volume)】

  1. inputs:
  2.         AlertLength( 14 ) ;

  3. variables:
  4.         var0( 0 ) ;

  5. var0 = OBV ;

  6. Plot1( var0, "OBV" ) ;

  7. condition1 = LowestBar( C, AlertLength ) = 0 and LowestBar( var0, AlertLength ) > 0 ;
  8. if condition1 then
  9.         Alert( "Bullish divergence - new low not confirmed" )
  10. else
  11. begin
  12. condition1 = HighestBar( C, AlertLength ) = 0 and HighestBar( var0, AlertLength ) > 0 ;
  13. if condition1 then
  14.         Alert( "Bearish divergence - new high not confirmed" ) ;
  15. end;
复制代码





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