飞狐天地鬼神副图指标
源码
N:=6;M1:=3;
Var1:=MA(BARSLAST(LOW=LLV(LOW, 14))*IF(CLOSE>OPEN, VOL, 1), 3); Var2:=MA(BARSLAST(HIGH=HHV(HIGH, 14))*IF(CLOSE<OPEN, VOL, 1), 3); Var3:=close; 买入:IF(Var3>=0, Var2, 0); 卖出:IF(Var3>=0, Var1, 0);