Board logo

标题: 【市场便利指标(Mkt Facilitation Idxs)】 [打印本页]

作者: 龙听    时间: 2022-11-3 13:44     标题: 【市场便利指标(Mkt Facilitation Idxs)】

  1. inputs:
  2.         AlertLength( 14 ) ;

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

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

  11. var0 = MFI( var1 ) ;

  12. Plot1( var0, "MktFacilX" ) ;

  13. condition1 = HighestBar( var0, AlertLength ) = 0 ;
  14. if condition1 then
  15.         Alert( "Indicator at high" )
  16. else
  17. begin
  18. condition1 = LowestBar( var0, AlertLength ) = 0 ;
  19. if condition1 then
  20.         Alert( "Indicator at low" ) ;
  21. end;
复制代码





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