Board logo

标题: 【Consecutive Ups LE】 [打印本页]

作者: 龙听    时间: 2022-11-3 14:25     标题: 【Consecutive Ups LE】

  1. [IntrabarOrderGeneration = false]
  2. inputs:  Price( Close ), ConsecutiveBarsUp( 3 ) ;

  3. if Price > Price[1] then
  4.         Value1 = Value1 + 1                                                     
  5.                                                                         
  6. else
  7.         Value1 = 0 ;

  8. if Value1 >= ConsecutiveBarsUp then
  9.         Buy ( "ConsUpLE" ) next bar market ;
复制代码





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