N:=3;E2:=10;E3:15;E4:-15;
MAN:=MA(C,N);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
D1:=(MAN-MA10)/MIN(MAN,MA10);
D2:=(MAN-MA20)/MIN(MAN,MA20);
D3:=(MAN-MA30)/MIN(MAN,MA30);
D5:=(MA20-MA10)/MIN(MA20,MA10);
D6:=(MA30-MA10)/MIN(MA30,MA10);
D8:=(MA20-MA30)/MIN(MA20,MA30);
DA:=WMA(MAX(MAX(MAX(D1,D2),MAX(D3,D5)),MAX(D6,D8))*100,2);
DB:=WMA(MIN(MIN(MIN(D1,D2),MIN(D3,D5)),MIN(D6,D8))*100,2);
GJ:=(2*C+H+L)/4;
?¥:=DA>10 AND GJ>MA30 AND REF(DA,1)>MAX(REF(DA,2),DA);
μ×:=DB<-10 AND GJ STICKLINE(DB<-10 AND GJ STICKLINE(DA>10 AND GJ>MA30,DA,5,1,0),COLOR0000FF; STICKLINE(C,5,-5,15,0),COLOR999999; DRAWTEXT(μ× AND COUNT(μ×,BARSLAST(NOT(DB<-10 AND GJ DRAWTEXT(μ× AND COUNT(μ×,BARSLAST(NOT(DB<-10 AND GJ DRAWTEXT(μ× AND COUNT(μ×,BARSLAST(NOT(DB<-10 AND GJ DRAWTEXT(μ× AND COUNT(μ×,BARSLAST(NOT(DB<-10 AND GJ DRAWTEXT(μ× AND COUNT(μ×,BARSLAST(NOT(DB<-10 AND GJ DRAWTEXT(μ× AND COUNT(μ×,BARSLAST(NOT(DB<-10 AND GJ DRAWTEXT(?¥ AND COUNT(?¥,BARSLAST(NOT(DA>10 AND GJ>MA30)))=1,DA*1.1,'?¥1'),COLORCYAN; DRAWTEXT(?¥ AND COUNT(?¥,BARSLAST(NOT(DA>10 AND GJ>MA30)))=2,DA*1.1,'?¥2'),COLORCYAN; DRAWTEXT(?¥ AND COUNT(?¥,BARSLAST(NOT(DA>10 AND GJ>MA30)))=3,DA*1.1,'?¥3'),COLORCYAN; DRAWTEXT(?¥ AND COUNT(?¥,BARSLAST(NOT(DA>10 AND GJ>MA30)))=4,DA*1.1,'?¥4'),COLORCYAN; DRAWTEXT(?¥ AND COUNT(?¥,BARSLAST(NOT(DA>10 AND GJ>MA30)))=5,DA*1.1,'?¥5'),COLORCYAN; DRAWTEXT(?¥ AND COUNT(?¥,BARSLAST(NOT(DA>10 AND GJ>MA30)))=6,DA*1.1,'?¥6'),COLORCYAN; -------------------------------------- 有问题可以HI我 下面是本指标的效果图 ========================================== 一楼的语句有问号?依然还是有这个提示呀? 没注意到吗?图都发出来了 ============================================================== DA:=WMA(MAX(MAX(MAX(D1,D2),MAX(D3,D5)),MAX(D6,D8))*100,2) 详细信息 : 您在括号前写的不是函数、公式等, 且缺少必要的运算符! 错误起始位置 : 291 ; 长度: 3 DA:=WMA(MAX(MAX(MAX(D1,D2),MAX(D3,D5)),MAX(D6,D8))*100,2); ---------------------------------------------------------- DA赋值:D1和D2的较大值和D3和D5的较大值的较大值和D6和D8的较大值的较大值*100的2日加权移动平均