您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

麻烦给改下语法错误,关键词使用不正确 [博易POBO]

咨询内容:

麻烦给改下语法错误,关键词使用不正确

提示语法错误,关键词使用不正确。麻烦给改下
 DRAWGBK(1,COLORRGB(0,0,20),COLORRGB(0,0,40),1);
主力:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORFFFFFF,LINETHICK2,PRECIS0;
NN:=IF(DATE<>REF(DATE,1),0,BARSLAST(DATE<>REF(DATE,1)))+1;
TO:=IF(DATE<>REF(DATE,1),OPEN,REF(TO,1));
压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF,LINETHICK2,PRECIS0;
支撑:MA(REF(LLV(C,30),1),2),COLORFFFF33,LINETHICK2,PRECIS0;
昨高:REF(HHV(HIGH,NN),NN),LINETHICK0,PRECIS0;
昨低:REF(LLV(LOW,NN),NN),LINETHICK0,PRECIS0;
H1:=REF(HHV(HIGH,NN),NN);
L1:=REF(LLV(LOW,NN),NN);
C1:=REF(C,BARSLAST(DAY>REF(DAY,1))+1),COLORCYAN,CIRCLEDOT,PRECIS0;
中A:=(H1+L1+C1)/3;
压5:=2*中A-2*L1+H1+(H1-L1);
压4:=中A+2*(H1-L1);
压3:=2*中A-2*L1+H1;
压2:=中A+H1-L1;
压1:=2*中A-L1;
中:=(H1+L1+C1)/3;
支1:=2*中A-H1;
支2:=中A-(H1-L1);
支3:=2*中A-2*H1+L1;
支4:=中A-2*(H1-L1);
支5:=支3-(H1-L1);
DRAWNUMBER(ISLASTBAR AND C>压4,压5,压5,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>压3,压4,压4,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>压2,压3,压3,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>压1,压2,压2,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>中,压1,压1,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR,中,中,0),ALIGN0,COLORFF00FF;
DRAWNUMBER(ISLASTBAR AND C<中,支1,支1,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支1,支2,支2,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支2,支3,支3,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支3,支4,支4,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支4,支5,支5,0),ALIGN0,COLOR0099FF;
HH1:=IF(H<REF(H,2) AND REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IF(L>REF(L,2) AND REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=IF(HH1>0,HH1,REF(HH1,BARSLAST(HH1>0)));
LL2:=IF(LL1>0,LL1,REF(LL1,BARSLAST(LL1>0)));
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=IF(K1<0 OR K1>0,K1,REF(K1,BARSLAST(K1<0 OR K1>0)));
W1:=K2;
生命:MA(CLOSE,55),COLOR00FFFF,PRECIS0,LINETHICK3;
止损价:IF(K2=1,HH2,LL2),PRECIS0,LINETHICK0,COLOR66CCFF;
{PARTLINE(NOT(K2=1),止损价),LINETHICK1,COLORRED;
PARTLINE(K2=1,止损价),LINETHICK1,COLORGREEN;}
DRAWTEXT(ISLASTBAR  AND NOT(K2=1),止损价,'┄多损'),ALIGN0,COLORRED;
DRAWTEXT(ISLASTBAR  AND K2=1,止损价,'┄空损'),ALIGN0,COLORGREEN;
W2:=(OPEN-CLOSE) ;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE((W2>0 AND K2=-3),O,C,4,0),COLORRED;
STICKLINE((W2>0 AND K2=-3),O,H,0.0,0),COLORRED;
STICKLINE((W2>0 AND K2=-3),C,L,0.0,0),COLORRED;
STICKLINE((W2<=0 AND K2=-3),O,C,4,1),COLORRED;
STICKLINE((W2<=0 AND K2=-3),O,L,0.0,0),COLORRED;
STICKLINE((W2<=0 AND K2=-3),C,H,0.0,0),COLORRED;
STICKLINE((W2>0 AND K2=1),O,C,4,0),COLORGREEN;
STICKLINE((W2>0 AND K2=1),O,H,0.0,0),COLORGREEN;
STICKLINE((W2>0 AND K2=1),C,L,0.0,0),COLORGREEN;
STICKLINE((W2<=0 AND K2=1),C,O,4,1),COLORGREEN;
STICKLINE((W2<=0 AND K2=1),C,H,0.0,0),COLORGREEN;
STICKLINE((W2<=0 AND K2=1),O,L,0.0,0),COLORGREEN;
{DRAWICON(K2=1 AND REF(K2,1)=-3,H*1.002,5);
DRAWICON(K2=-3 AND REF(K2,1)=1,LOW*0.998,4);}
CO:=(C-O);
PARTLINE(C>生命,生命),COLOR00FFFF,LINETHICK3;
PARTLINE(C<生命,生命),COLORBLUE,LINETHICK3;
VAR1:=ZIG(3,2.88)<REF(ZIG(3,2.88),1) AND REF(ZIG(3,2.88),1)>REF(ZIG(3,2.88),2);
VAR2:=ZIG(3,2.88)>REF(ZIG(3,2.88),1) AND REF(ZIG(3,2.88),1)<REF(ZIG(3,2.88),2);
STICKLINE(VAR1,H,H*1.0001,10,0),COLOR00FF33;
STICKLINE(VAR2,L*0.9997,L*0.9998,10,0),COLOR0055FF;
VAR3:=ZIG(3,4.88)<REF(ZIG(3,4.88),1) AND REF(ZIG(3,4.88),1)>REF(ZIG(3,4.88),2);
VAR4:=ZIG(3,4.88)>REF(ZIG(3,4.88),1) AND REF(ZIG(3,4.88),1)<REF(ZIG(3,4.88),2);
STICKLINE(VAR3,H*1.0001,H*1.0002,15,0),COLOR00CC33;
STICKLINE(VAR4,L*0.9996,L*0.9997,15,0),COLOR0077FF;
VAR5:=ZIG(3,5.88)<REF(ZIG(3,5.88),1) AND REF(ZIG(3,5.88),1)>REF(ZIG(3,5.88),2);
VAR6:=ZIG(3,5.88)>REF(ZIG(3,5.88),1) AND REF(ZIG(3,5.88),1)<REF(ZIG(3,5.88),2);
STICKLINE(VAR5,H*1.0002,H*1.0003,20,0),COLOR339933;
STICKLINE(VAR6,L*0.9995,L*0.9996,20,0),COLOR0099FF;
VAR7:=ZIG(3,6.88)<REF(ZIG(3,6.88),1) AND REF(ZIG(3,6.88),1)>REF(ZIG(3,6.88),2);
VAR8:=ZIG(3,6.88)>REF(ZIG(3,6.88),1) AND REF(ZIG(3,6.88),1)<REF(ZIG(3,6.88),2);
STICKLINE(VAR7,H*1.0004,H*1.0005,25,0),COLOR336633;
STICKLINE(VAR8,L*0.9994,L*0.9995,25,0),COLOR00CCFF;
VAR9:=ZIG(3,8.88)<REF(ZIG(3,8.88),1) AND REF(ZIG(3,8.88),1)>REF(ZIG(3,8.88),2);
VAR10:=ZIG(3,8.88)>REF(ZIG(3,8.88),1) AND REF(ZIG(3,8.88),1)<REF(ZIG(3,8.88),2);
STICKLINE(VAR9,H*1.0005,H*1.0006,30,0),COLOR666633;
STICKLINE(VAR10,L*0.9993,L*0.9994,30,0),COLOR00FFFF;
VAR13:=ZIG(3,15.88)<REF(ZIG(3,15.88),1) AND REF(ZIG(3,15.88),1)>REF(ZIG(3,15.88),2);
VAR14:=ZIG(3,15.88)>REF(ZIG(3,15.88),1) AND REF(ZIG(3,15.88),1)<REF(ZIG(3,15.88),2);
STICKLINE(VAR13,H*1.0006,H*1.0007,35,0),COLOR006600;
STICKLINE(VAR14,L*0.9993,L*0.9992,35,0),COLOR99FFFF;
A0:=(L+H+C*2)/4;
K:=EMA(A0,14);
J:=EMA(A0,25);
A1X:=(K-REF(K,1))/REF(K,1)*100;
A2X:=(J-REF(J,1))/REF(J,1)*100;
G:=BARSLAST(CROSS(A1X,0));
界:REF(A0,G),COLORFF88FF,PRECIS0,LINETHICK0;
PARTLINE(REF(A0,G),界),COLORFF88FF,LINETHICK3;
LCH:=REF(CLOSE,1);
RSIH:=((SMA(MAX(CLOSE - LCH,0),4.1,1))/(SMA(ABS(CLOSE - LCH),4.1,1)))*(100);
STICKLINE((CROSS(RSIH,11))*(25),O,O+CO,4,0),COLOR00CCFF;
RSU:=((SMA(MAX((CLOSE - LCH),0),3,1) / SMA(ABS((CLOSE - LCH)),3,1)) * 100);
DRAWTEXT(CROSS(90,RSU) AND ISLASTBAR,HIGH * 1.0005,'背');
{AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
神线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK0,PRECIS0,COLOR66CCFF;
CC:=(CLOSE/神线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-神线)/神线)/3;
TMP:=MA1-MAAA*MA1;
PARTLINE(DMA((2*CLOSE+LOW+HIGH)/4,AA),神线),LINETHICK3,COLOR3300CC;
PARTLINE(TMP<=神线,神线),LINETHICK3,COLOR33CC33;
奇线:MA(C,453),PRECIS0,COLOR0033FF;
PARTLINE(C>奇线,奇线),COLOR00FFFF,LINETHICK2;
PARTLINE(C<奇线,奇线),COLORFF0000,LINETHICK2;}
VAR12G:=1;
VAR20G:=((((2*CLOSE)+HIGH)+LOW) / 4);
VAR40G:=LLV(LOW,5);
VAR50G:=HHV(HIGH,4);
C1G:=(EMA((((VAR20G-VAR40G)/(VAR50G-VAR40G))*100),4)*VAR12G);
C2G:=(EMA(((0.667*REF(C1G,1))+(0.333*C1G)),2)*VAR12G);
D:=IF(DAY<>REF(DAY,1),0,REF(D,1))+V;
E:=IF(DAY<>REF(DAY,1),0,REF(E,1))+(H+L+C+O)/4*V;
均价:=E/D;
POLYLINE(DATE=CURRENTDATE,E/D),COLOR0066FF;
STICKLINE(TO AND DATE=CURRENTDATE,TO,TO,1,1),COLORWHITE;
DRAWTEXT(ISLASTBAR,TO,'┄┄┄┄'),ALIGN0,COLOR808089;
VAR1K:=IF(DATE<1531110 AND DATE>900101,1,0);
启点:REF(L,BARSLAST(VOL<LLV(VOL,30)*1.001))*VAR1K,COLORFFFF33,POINTDOT,LINETHICK3,PRECIS0;
STICKLINE(L,启点,启点,8,0);
LV:=LLV(V,30)*VAR1K;
DRAWTEXT(V=LV,L*0.9998,'◆'),COLORYELLOW;
VAR06:=REF(C,1);
VAR07:=SMA(MAX(C-VAR06,0),6,1)/SMA(ABS(C-VAR06),6,1)*100;
VAR010:=LLV(LOW,21);
VAR020:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR010) / (VAR020 - VAR010)) * 100),5);
AK:=EMA((((CLOSE - VAR010) / (VAR020 - VAR010)) * 50),13);
AB:=CROSS(AK1,AK);
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,H*1.0005,'大空'),COLOR00FF00;
LCN:=REF(CLOSE,1);
RSI:=((SMA(MAX(CLOSE - LCN,0),4.1,1))/(SMA(ABS(CLOSE - LCN),4.1,1)))*(100);
DRAWICON((CROSS(RSI,8))*(25) AND (CROSS(RSI,11))*(25) AND 主力<14,L*0.9998,1);
DRAWICON(FILTER(CROSS(82,VAR07),4),H*1.0002,2);
MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
STICKLINE(FILTER(卖=1,1) AND C1G<C2G,O,O+CO,5,0),COLORFFCC33;
STICKLINE(FILTER(CROSS(VAR07,11),4),O,O+CO,4,0),COLOR00FFFF;
DRAWICON(FILTER(买=1,5),L*0.9997,9);
DRAWICON((AB=1) AND ISLASTBAR,L*0.9998,8);
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1),COLORYELLOW;
DRAWTEXT(CROSS(短线,长线) AND 长线<18 AND 长线>REF(长线,1) OR CROSS(长线,5),L*0.9985,'大多'),COLOR00FFFF;
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9 AND 主力>73,HIGH * 1.0008,'平多'),COLORFF00FF;
MA3:=MA(CLOSE,2),COLORYELLOW;
DRAWTEXT(CROSS(MA3,支撑) AND ISLASTBAR,LOW*0.9999,'试多'),COLORFF00FF;
VAREE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARFE:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10E:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11E:=VARFE<REF(VAR10E,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11E AND COUNT(VAR11E,30)=1 AND DATE=CURRENTDATE,LOW*0.9990,'有金');

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: 递归算法不支持,会在新版本中更新。有些线我删除了。
DRAWGBK(1,COLORRGB(0,0,20),COLORRGB(0,0,40),1);
主力:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORFFFFFF,LINETHICK2,PRECIS0;
NN:=IF(DATE<>REF(DATE,1),0,BARSLAST(DATE<>REF(DATE,1)))+1;
//TO1:=IF(DATE<>REF(DATE,1),OPEN,REF(TO1,1));
压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF,LINETHICK2,PRECIS0;
支撑:MA(REF(LLV(C,30),1),2),COLORFFFF33,LINETHICK2,PRECIS0;
昨高:REF(HHV(HIGH,NN),NN),LINETHICK0,PRECIS0;
昨低:REF(LLV(LOW,NN),NN),LINETHICK0,PRECIS0;
H1:=REF(HHV(HIGH,NN),NN);
L1:=REF(LLV(LOW,NN),NN);
C1:=REF(C,BARSLAST(DAY>REF(DAY,1))+1),COLORCYAN,CIRCLEDOT,PRECIS0;
中A:=(H1+L1+C1)/3;
压5:=2*中A-2*L1+H1+(H1-L1);
压4:=中A+2*(H1-L1);
压3:=2*中A-2*L1+H1;
压2:=中A+H1-L1;
压1:=2*中A-L1;
中:=(H1+L1+C1)/3;
支1:=2*中A-H1;
支2:=中A-(H1-L1);
支3:=2*中A-2*H1+L1;
支4:=中A-2*(H1-L1);
支5:=支3-(H1-L1);
DRAWNUMBER(ISLASTBAR AND C>压4,压5,压5,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>压3,压4,压4,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>压2,压3,压3,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>压1,压2,压2,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR AND C>中,压1,压1,0),ALIGN0,COLORFFCC66;
DRAWNUMBER(ISLASTBAR,中,中,0),ALIGN0,COLORFF00FF;
DRAWNUMBER(ISLASTBAR AND C<中,支1,支1,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支1,支2,支2,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支2,支3,支3,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支3,支4,支4,0),ALIGN0,COLOR0099FF;
DRAWNUMBER(ISLASTBAR AND C<支4,支5,支5,0),ALIGN0,COLOR0099FF;
HH1:=IF(H<REF(H,2) AND REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IF(L>REF(L,2) AND REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=IF(HH1>0,HH1,REF(HH1,BARSLAST(HH1>0)));
LL2:=IF(LL1>0,LL1,REF(LL1,BARSLAST(LL1>0)));
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=IF(K1<0 OR K1>0,K1,REF(K1,BARSLAST(K1<0 OR K1>0)));
W1:=K2;
生命:MA(CLOSE,55),COLOR00FFFF,PRECIS0,LINETHICK3;
止损价:IF(K2=1,HH2,LL2),PRECIS0,LINETHICK0,COLOR66CCFF;
{PARTLINE(NOT(K2=1),止损价),LINETHICK1,COLORRED;
PARTLINE(K2=1,止损价),LINETHICK1,COLORGREEN;}
DRAWTEXT(ISLASTBAR  AND NOT(K2=1),止损价,'┄多损'),ALIGN0,COLORRED;
DRAWTEXT(ISLASTBAR  AND K2=1,止损价,'┄空损'),ALIGN0,COLORGREEN;
W2:=(OPEN-CLOSE) ;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE((W2>0 AND K2=-3),O,C,4,0),COLORRED;
STICKLINE((W2>0 AND K2=-3),O,H,0.0,0),COLORRED;
STICKLINE((W2>0 AND K2=-3),C,L,0.0,0),COLORRED;
STICKLINE((W2<=0 AND K2=-3),O,C,4,1),COLORRED;
STICKLINE((W2<=0 AND K2=-3),O,L,0.0,0),COLORRED;
STICKLINE((W2<=0 AND K2=-3),C,H,0.0,0),COLORRED;
STICKLINE((W2>0 AND K2=1),O,C,4,0),COLORGREEN;
STICKLINE((W2>0 AND K2=1),O,H,0.0,0),COLORGREEN;
STICKLINE((W2>0 AND K2=1),C,L,0.0,0),COLORGREEN;
STICKLINE((W2<=0 AND K2=1),C,O,4,1),COLORGREEN;
STICKLINE((W2<=0 AND K2=1),C,H,0.0,0),COLORGREEN;
STICKLINE((W2<=0 AND K2=1),O,L,0.0,0),COLORGREEN;
{DRAWICON(K2=1 AND REF(K2,1)=-3,H*1.002,5);
DRAWICON(K2=-3 AND REF(K2,1)=1,LOW*0.998,4);}
CO:=(C-O);
PARTLINE(C>生命,生命),COLOR00FFFF,LINETHICK3;
PARTLINE(C<生命,生命),COLORBLUE,LINETHICK3;
VAR1:=ZIG(3,2.88)<REF(ZIG(3,2.88),1) AND REF(ZIG(3,2.88),1)>REF(ZIG(3,2.88),2);
VAR2:=ZIG(3,2.88)>REF(ZIG(3,2.88),1) AND REF(ZIG(3,2.88),1)<REF(ZIG(3,2.88),2);
STICKLINE(VAR1,H,H*1.0001,10,0),COLOR00FF33;
STICKLINE(VAR2,L*0.9997,L*0.9998,10,0),COLOR0055FF;
VAR3:=ZIG(3,4.88)<REF(ZIG(3,4.88),1) AND REF(ZIG(3,4.88),1)>REF(ZIG(3,4.88),2);
VAR4:=ZIG(3,4.88)>REF(ZIG(3,4.88),1) AND REF(ZIG(3,4.88),1)<REF(ZIG(3,4.88),2);
STICKLINE(VAR3,H*1.0001,H*1.0002,15,0),COLOR00CC33;
STICKLINE(VAR4,L*0.9996,L*0.9997,15,0),COLOR0077FF;
VAR5:=ZIG(3,5.88)<REF(ZIG(3,5.88),1) AND REF(ZIG(3,5.88),1)>REF(ZIG(3,5.88),2);
VAR6:=ZIG(3,5.88)>REF(ZIG(3,5.88),1) AND REF(ZIG(3,5.88),1)<REF(ZIG(3,5.88),2);
STICKLINE(VAR5,H*1.0002,H*1.0003,20,0),COLOR339933;
STICKLINE(VAR6,L*0.9995,L*0.9996,20,0),COLOR0099FF;
VAR7:=ZIG(3,6.88)<REF(ZIG(3,6.88),1) AND REF(ZIG(3,6.88),1)>REF(ZIG(3,6.88),2);
VAR8:=ZIG(3,6.88)>REF(ZIG(3,6.88),1) AND REF(ZIG(3,6.88),1)<REF(ZIG(3,6.88),2);
STICKLINE(VAR7,H*1.0004,H*1.0005,25,0),COLOR336633;
STICKLINE(VAR8,L*0.9994,L*0.9995,25,0),COLOR00CCFF;
VAR9:=ZIG(3,8.88)<REF(ZIG(3,8.88),1) AND REF(ZIG(3,8.88),1)>REF(ZIG(3,8.88),2);
VAR10:=ZIG(3,8.88)>REF(ZIG(3,8.88),1) AND REF(ZIG(3,8.88),1)<REF(ZIG(3,8.88),2);
STICKLINE(VAR9,H*1.0005,H*1.0006,30,0),COLOR666633;
STICKLINE(VAR10,L*0.9993,L*0.9994,30,0),COLOR00FFFF;
VAR13:=ZIG(3,15.88)<REF(ZIG(3,15.88),1) AND REF(ZIG(3,15.88),1)>REF(ZIG(3,15.88),2);
VAR14:=ZIG(3,15.88)>REF(ZIG(3,15.88),1) AND REF(ZIG(3,15.88),1)<REF(ZIG(3,15.88),2);
STICKLINE(VAR13,H*1.0006,H*1.0007,35,0),COLOR006600;
STICKLINE(VAR14,L*0.9993,L*0.9992,35,0),COLOR99FFFF;
A0:=(L+H+C*2)/4;
K:=EMA(A0,14);
J:=EMA(A0,25);
A1X:=(K-REF(K,1))/REF(K,1)*100;
A2X:=(J-REF(J,1))/REF(J,1)*100;
G:=BARSLAST(CROSS(A1X,0));
界:REF(A0,G),COLORFF88FF,PRECIS0,LINETHICK0;
PARTLINE(REF(A0,G),界),COLORFF88FF,LINETHICK3;
LCH:=REF(CLOSE,1);
RSIH:=((SMA(MAX(CLOSE - LCH,0),4.1,1))/(SMA(ABS(CLOSE - LCH),4.1,1)))*(100);
STICKLINE((CROSS(RSIH,11))*(25),O,O+CO,4,0),COLOR00CCFF;
RSU:=((SMA(MAX((CLOSE - LCH),0),3,1) / SMA(ABS((CLOSE - LCH)),3,1)) * 100);
DRAWTEXT(CROSS(90,RSU) AND ISLASTBAR,HIGH * 1.0005,'背');
{AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
神线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK0,PRECIS0,COLOR66CCFF;
CC:=(CLOSE/神线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-神线)/神线)/3;
TMP:=MA1-MAAA*MA1;
PARTLINE(DMA((2*CLOSE+LOW+HIGH)/4,AA),神线),LINETHICK3,COLOR3300CC;
PARTLINE(TMP<=神线,神线),LINETHICK3,COLOR33CC33;
奇线:MA(C,453),PRECIS0,COLOR0033FF;
PARTLINE(C>奇线,奇线),COLOR00FFFF,LINETHICK2;
PARTLINE(C<奇线,奇线),COLORFF0000,LINETHICK2;}
VAR12G:=1;
VAR20G:=((((2*CLOSE)+HIGH)+LOW) / 4);
VAR40G:=LLV(LOW,5);
VAR50G:=HHV(HIGH,4);
C1G:=(EMA((((VAR20G-VAR40G)/(VAR50G-VAR40G))*100),4)*VAR12G);
C2G:=(EMA(((0.667*REF(C1G,1))+(0.333*C1G)),2)*VAR12G);
//D:=IF(DAY<>REF(DAY,1),0,REF(D,1))+V;
//E:=IF(DAY<>REF(DAY,1),0,REF(E,1))+(H+L+C+O)/4*V;
//均价:=E/D;
//POLYLINE(DATE=CURRENTDATE,E/D),COLOR0066FF;
//STICKLINE(TO AND DATE=CURRENTDATE,TO,TO,1,1),COLORWHITE;
//DRAWTEXT(ISLASTBAR,TO,'┄┄┄┄'),ALIGN0,COLOR808089;
VAR1K:=IF(DATE<1531110 AND DATE>900101,1,0);
启点:REF(L,BARSLAST(VOL<LLV(VOL,30)*1.001))*VAR1K,COLORFFFF33,POINTDOT,LINETHICK3,PRECIS0;
STICKLINE(L,启点,启点,8,0);
LV:=LLV(V,30)*VAR1K;
DRAWTEXT(V=LV,L*0.9998,'◆'),COLORYELLOW;
VAR06:=REF(C,1);
VAR07:=SMA(MAX(C-VAR06,0),6,1)/SMA(ABS(C-VAR06),6,1)*100;
VAR010:=LLV(LOW,21);
VAR020:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR010) / (VAR020 - VAR010)) * 100),5);
AK:=EMA((((CLOSE - VAR010) / (VAR020 - VAR010)) * 50),13);
AB:=CROSS(AK1,AK);
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,H*1.0005,'大空'),COLOR00FF00;
LCN:=REF(CLOSE,1);
RSI:=((SMA(MAX(CLOSE - LCN,0),4.1,1))/(SMA(ABS(CLOSE - LCN),4.1,1)))*(100);
DRAWICON((CROSS(RSI,8))*(25) AND (CROSS(RSI,11))*(25) AND 主力<14,L*0.9998,1);
DRAWICON(FILTER(CROSS(82,VAR07),4),H*1.0002,2);
MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
STICKLINE(FILTER(卖=1,1) AND C1G<C2G,O,O+CO,5,0),COLORFFCC33;
STICKLINE(FILTER(CROSS(VAR07,11),4),O,O+CO,4,0),COLOR00FFFF;
DRAWICON(FILTER(买=1,5),L*0.9997,9);
DRAWICON((AB=1) AND ISLASTBAR,L*0.9998,8);
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1),COLORYELLOW;
DRAWTEXT(CROSS(短线,长线) AND 长线<18 AND 长线>REF(长线,1) OR CROSS(长线,5),L*0.9985,'大多'),COLOR00FFFF;
X6:=REF(CLOSE,1);
X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
DRAWTEXT(X9 AND 主力>73,HIGH * 1.0008,'平多'),COLORFF00FF;
MA3:=MA(CLOSE,2),COLORYELLOW;
DRAWTEXT(CROSS(MA3,支撑) AND ISLASTBAR,LOW*0.9999,'试多'),COLORFF00FF;
VAREE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARFE:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10E:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11E:=VARFE<REF(VAR10E,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11E AND COUNT(VAR11E,30)=1 AND DATE=CURRENTDATE,LOW*0.9990,'有金'); 来源 程序化久久网

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息或微信:cxhjy888 进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容