Board logo

标题: 【Consecutive Downs SE】 [打印本页]

作者: 龙听    时间: 2022-11-3 14:24     标题: 【Consecutive Downs SE】

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

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

  8. if Value1 >= ConsecutiveBarsDown then
  9.         Sell Short ( "ConsDnSE" ) next bar at market ;
复制代码





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