Board logo

标题: 【条件计数K线(Count Criteria PB)】 [打印本页]

作者: 龙听    时间: 2022-11-3 13:50     标题: 【条件计数K线(Count Criteria PB)】

  1. inputs: Criteria( Close > High[1] ), Length( 14 ), Occur( 7 ) ;

  2. condition1 = CountIf( Criteria, Length ) >= Occur  ;
  3. if condition1 then
  4.         begin
  5.         PlotPaintBar( High, Low, "CntCrtPB" ) ;
  6.         Alert ;
  7.         end
  8. else
  9.         NoPlot( 1 ) ;
复制代码





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