九毛八公式指标
公式模块:
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,20)*(1+80/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,32)*(1-100/1000),COLORMAGENTA,LINETHICK2;
VAR1:=(C+H+O+L)/4;
P:=(DATacOUNT-BARPOS+1);
卖出:IF(P=1,REFX(MA(VAR1,11),10),IF(P=2,REFX(MA(VAR1,12),10),IF(P=3,REFX(MA(VAR1,13),10),
IF(P=4,REFX(MA(VAR1,14),10),IF(P=5,REFX(MA(VAR1,15),10),IF(P=6,REFX(MA(VAR1,16),10),
IF(P=7,REFX(MA(VAR1,17),10),IF(P=8,REFX(MA(VAR1,18),10),IF(P=9,REFX(MA(VAR1,19),10),
REFX(MA(VAR1,20),10))))))))))*(1+80/1000),COLORGREEN,LINETHICK2;
买入:IF(P=1,REFX(MA(VAR1,17),16),IF(P=2,REFX(MA(VAR1,18),16),IF(P=3,REFX(MA(VAR1,19),16),
IF(P=4,REFX(MA(VAR1,20),16),IF(P=5,REFX(MA(VAR1,21),16),IF(P=6,REFX(MA(VAR1,22),16),
IF(P=7,REFX(MA(VAR1,23),16),IF(P=8,REFX(MA(VAR1,24),16),IF(P=9,REFX(MA(VAR1,25),16),
IF(P=10,REFX(MA(VAR1,26),16),IF(P=11,REFX(MA(VAR1,27),16),IF(P=12,REFX(MA(VAR1,28),
16),IF(P=13,REFX(MA(VAR1,29),16),IF(P=14,REFX(MA(VAR1,30),16),IF(P=15,REFX(MA(VAR1,31),16),
REFX(MA(VAR1,32),16))))))))))))))))*(1-100/1000),COLORMAGENTA,LINETHICK2;