Board logo

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

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

  1. inputs:         Price( Close ), ConsecutiveBarsDown( 3 ) ;

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

  7. if Value1 >= ConsecutiveBarsDown then
  8.         begin
  9.         Plot1( Low, "ConsecDn" ) ;
  10.         Alert ;
  11.         end
  12. else
  13.         NoPlot( 1 ) ;
复制代码





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