Board logo

标题: 【NCT Up/Down Bar】 [打印本页]

作者: 龙听    时间: 2022-11-3 11:46     标题: 【NCT Up/Down Bar】

  1. inputs:
  2.         UpMargin_pt(5),
  3.         UpColor( Green ),
  4.         DnColor( Red ) ;

  5. variables:
  6.         var0( 0 );

  7. if(bartype_ex < 14 or bartype_ex = 18) then
  8.         RaiseRuntimeError("This study can be applied only to one of the following Non-Standard Chart Types: Point & Figure, Kagi, Line Break, Renko.");

  9. var0 = IFF(UpTicks < DownTicks, DnColor, UpColor);

  10. Plot1(High + UpMargin_pt * (MinMove / PriceScale), "Up/Down", var0, var0 );
复制代码





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