Board logo

标题: 【麦克指标(McClellan Osc】 [打印本页]

作者: 龙听    时间: 2022-11-3 14:05     标题: 【麦克指标(McClellan Osc】

  1. inputs:
  2.         AdvIssues( Close of data1 ),
  3.         DecIssues( Close of data2 ),
  4.         FastLength( 19 ),
  5.         SlowLength( 39 ),
  6.         OverSold( -70 ),
  7.         OverBought( 70 ) ;

  8. variables:
  9.         var0( 0 ) ;

  10. var0 = McClellanOsc( AdvIssues, DecIssues, FastLength, SlowLength) ;

  11. Plot1( var0, "McClOsc" ) ;
  12. Plot2( OverBought, "OverBot" ) ;
  13. Plot3( OverSold, "OverSld" ) ;

  14. condition1 = var0 crosses over OverSold ;
  15. if condition1 then
  16.         Alert( "Indicator exiting oversold zone" )
  17. else
  18. begin
  19. condition1 = var0 crosses under OverBought ;
  20. if condition1 then
  21.         Alert( "Indicator exiting overbought zone" ) ;
  22. end;
复制代码





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