网友求助:
N1:=9+N;N2:=36+4*N;N3:=153+20*N;
E5:=(EMA(CLOSE,4)+EMA(CLOSE,5))/2;
A5:=(MA(CLOSE,4)+MA(CLOSE,5))/2;
E9:=EMA(CLOSE,N1);A9:=MA(CLOSE,N1);
E36:=EMA(CLOSE,N2);A36:=MA(CLOSE,N2);
E153:=EMA(CLOSE,N3);A153:=MA(CLOSE,N3);
ZQ:=PERIOD;
MX:=IF(ZQ=10,A5,IF(ZQ=7,A9,IF(ZQ=6,A36,A153)));
EX:=IF(ZQ=10,E5,IF(ZQ=7,E9,IF(ZQ=6,E36,E153)));
NX带_5_9_36_153:DRAWBAND(MX,RGB(16,166,68),EX,RGB(168,18,38));
JDS:=BARSLAST(CROSS(EX,MX)+CROSS(MX,EX));
FJTJ:=(ZQ>4)AND (ZQ!=8)AND (ZQ!=9)AND (ZQ!=11);
牛红柿子:DRAWICON(CROSS(CLOSE,MX)*FJTJ,LOW*0.998,17);
熊绿柿子:DRAWICON(CROSS(MX,CLOSE)*FJTJ,LOW*0.998,16);
KX:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
变盘预备跑步:DRAWICON(JDS=0,EX,15),COLORGREEN;
{2__JIPGEMLING.见凌见均线};
M5:A5,COLORDDDDDD;
M9:A9,COLOR13EEEE;
M14:MA(CLOSE,14),COLOREE33EE;
M22:MA(CLOSE,22),COLOR13EE13;
M36:A36,COLOR999999;
M58:MA(CLOSE,58),COLORD13813;
M94:MA(CLOSE,94),COLOREEEEEE;
M153:A153,COLOR33DEEF;
M248:MA(CLOSE,248),COLOREE33EE;
M400:MA(CLOSE,400),COLOR33EE33;
解答如下:
N:=0;
N1:=9+N;N2:=36+4*N;N3:=153+20*N;
E5:=(EMA(CLOSE,4)+EMA(CLOSE,5))/2;
A5:=(MA(CLOSE,4)+MA(CLOSE,5))/2;
E9:=EMA(CLOSE,N1);A9:=MA(CLOSE,N1);
E36:=EMA(CLOSE,N2);A36:=MA(CLOSE,N2);
E153:=EMA(CLOSE,N3);A153:=MA(CLOSE,N3);
ZQ:=DATATYPE;
MX:=IF(ZQ=13,A5,IF(ZQ=10,A9,IF(ZQ=9,A36,A153)));
EX:=IF(ZQ=13,E5,IF(ZQ=10,E9,IF(ZQ=9,E36,E153)));
FILLRGN(MX,EX,MX>EX,RGB(16,166,68),MX<=EX,RGB(168,18,38));
JDS:=BARSLAST(CROSS(EX,MX)+CROSS(MX,EX));
FJTJ:=(ZQ>7) AND (ZQ<>11)AND (ZQ<>12);
牛红柿子:DRAWICON(CROSS(CLOSE,MX)*FJTJ,LOW*0.998,12);
熊绿柿子:DRAWICON(CROSS(MX,CLOSE)*FJTJ,LOW*0.998,13);
变盘预备跑步:DRAWICON(JDS=0,EX,9),COLORGREEN;
M5:A5,COLORDDDDDD;
M9:A9,COLOR13EEEE;
M14:MA(CLOSE,14),COLOREE33EE;
M22:MA(CLOSE,22),COLOR13EE13;
M36:A36,COLOR999999;
M58:MA(CLOSE,58),COLORD13813;
M94:MA(CLOSE,94),COLOREEEEEE;
M153:A153,COLOR33DEEF;
M248:MA(CLOSE,248),COLOREE33EE;
M400:MA(CLOSE,400),COLOR33EE33;