改{XMA(VAR1,20)}公式为飞狐之用
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
解答:
网友求助:
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,20)*(1+80/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,32)*(1-100/1000),COLORMAGENTA,LINETHICK2;
卖出: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;
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;
选股票看什么指标最好 >股票指标网
精彩评论