网友求助:
我试了半一天通过不了,只好求助老师了!!原码如下:
股票:=(((H+(C+L)/2)/2+L+O+(C+L)/2)/4-(REF(((H+(C+L)/2)/2+L+O+(C+L)/2)/4,1)))/(REF(((H+(C+L)/2)/2+L+O+(C+L)/2)/4,1));
ZX:=((((INDEXH+INDEXL)+INDEXO)+INDEXC)/4-(REF((((INDEXH+INDEXL)+INDEXO)+INDEXC)/4,1)))/(REF((((INDEXH+INDEXL)+INDEXO)+INDEXC)/4,1));
风:=(3*(((((C+L)/2-EMA((C+L)/2,21))/EMA((C+L)/2,21)*10)*10+SMA(EMA(((C+L)/2-REF((C+L)/2,1))/REF((C+L)/2,1),5)*100,2,1)*10+SMA(EMA(((C+L)/2-REF((C+L)/2,1))/REF((C+L)/2,1),3)*100,2,1)*10)/3)+2*(2*(2*EMA(100*WINNER((C+L)/2)-100*WINNER(REF((C+L)/2,1)*1),8)+2*(2*EMA(100*WINNER((C+L)/2)-100*WINNER(REF((C+L)/2,1)),3))/2)/3))/5;
股险随境俏:=(((((SUM(股票,3)+SUM(ZX,3))/2)*100+风)/2)*2+3*((2*((LWINNER(3,(C+L)/2))*5)+3*风)/5))/5;
通幽处:=IF((((WMA((C+L)/2,2)+(((C+L)/2-STD((C+L)/2,2))+3*(EMA((C+L)/2,2)+(ZLSHORT/CAPITAL)*8)/2)/4)/2-(WMA((C+L)/2,7)+(((C+L)/2-STD((C+L)/2,2))+3*(EMA((C+L)/2,2)+(ZLSHORT/CAPITAL)*8)/2)/4)/2)/(WMA((C+L)/2,2)+(((C+L)/2-STD((C+L)/2,2))+3*(EMA((C+L)/2,2)+(ZLSHORT/CAPITAL)*8)/2)/4)/2>=0.0001),0,-2);
线性关系须明确:(8*((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5))-EMA((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5)),21))),COLORYELLOW;
验证:=((((C+L)/2-LLV(L,24))/(HHV((H+C)/2,24)-LLV(L,24))*1.1*(C+L)/2));
强势验证:=SMA(IF(L<=LLV(L,6),EMA(SMA(ABS(L-REF(L,1)),2,1)/SMA(MAX(L-REF(L,1),0),10,1)*1,3),0),2,1);
灵:=SMA(IF(L<=LLV(L,55),EMA(SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),10,1)*-1,3),0),5,1);
背离验证:STICKLINE(强势验证>REF(强势验证,1) AND 强势验证<4,灵,强势验证<8,0.1,0),COLORFFFFFF;
续持验证:EMA((2*(5*((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5))-EMA((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5)),21)))+(((C*2+H)/3+(C*2+H)/3)/2)+EMA(验证,2))/4,2),COLOR00FFFF;
波段验证:(8*((EMA((2*C+L)/3,3)-EMA((2*C+H)/3,6))-EMA((EMA((2*C+L)/3,3)-EMA((2*C+H)/3,6)),21))),COLORFF9900;
趋势阴线:=(((SMA(C,2,1)-EMA(LLV((C+L)/2,5),5))/MA(LLV((C+L)/2,5),5)*1000+5*(EMA((EMA((C-LLV(L,2))/(HHV(H,2)-LLV(L,2))*100,2)),2)+EMA((EMA(((2*C+L)/3-LLV(L,2))/(HHV((H+C)/2,2)-LLV(L,2))*100,2)),2))/2)/15);
组合:=(趋势阴线+EMA((EMA((C-LLV(L,2))/(HHV(H,2)-LLV(L,2))*43,2)),2))/2;
快速线:=(组合+(4*EMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*43,13,9),2)-3*EMA(EMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*43,13,9),2),2)))/2;
超速线:=(组合+(4*EMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*43,13,9),2)-3*EMA(EMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*43,13,9),2),2)))/2;
PARTLINE(线性关系须明确,(3*EMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3)-2*MA(EMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3),4))<2,RGB(0,50,250)),LINETHICK7;
有:=3*SMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3,1)-2*SMA(SMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3,1),3,1);
PARTLINE(波段验证,有<1,RGB(0,0,250)),LINETHICK7; PARTLINE(波段验证,有<1,RGB(250,250,0)),LINETHICK3; PARTLINE(波段验证,有<0,RGB(250,250,250)),LINETHICK3;
PARTLINE(波段验证,超速线<7.38,RGB(0,0,250)),LINETHICK7; PARTLINE(波段验证,超速线<7.38,RGB(250,0,250)),LINETHICK3; PARTLINE(波段验证,快速线<8,RGB(250,250,250)),LINETHICK3;
寻:=3*EMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3)-2*MA(EMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3),4);
PARTLINE(续持验证,寻<0 AND 续持验证<REF(续持验证,1),RGB(250,250,250)),LINETHICK3;
PARTLINE(续持验证,寻<2 AND 续持验证<REF(续持验证,1),RGB(250,250,0)),LINETHICK2;
反弹确认线:=(LLV(L,2)+(((EMA((((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*L),2)-(((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*H))*10)+LLV(L,2))+((EMA(((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*L,2)-(((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*H))*10))/3;
验证信号:=((((C+L)/2-LLV(L,34))/(HHV((H+C)/2,34)-LLV(L,34))*1.1*(C+L)/2));
启动:IF(线性关系须明确>0.1,线性关系须明确,0);
PARTLINE(启动,启动>0),COLORRED; PARTLINE(波段验证,波段验证>0 AND 波段验证>0,RGB(180,20,180));
神:=2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1)-(3*HHV(SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1),2)-2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1));
奇:=(2*神+EMA((2*(C+L)/2+(H+C)/2+L+O)/5,2)+2*((EMA((C*2+H+L+O)/5,5)+MA((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21))/3)+((EMA
((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34))/3)+((EMA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34)+MA((C*2+H+L+O)/5,55))/3))/7;
分清:=(FORCAST(HHV((C+L)/2,1),21)+(EMA(((C+L)/2+L+(H+C)/2)/3,55)-(C-EMA(((C+L)/2+L+(H+C)/2)/3,55))))/2;
放心买入:=(((C+L)/2+(H+C)/2+L)/3+(3*(C+H+L+(O+C+L)/3)/4-2*(C+L)/2))/2;
强:(EMA((分清+3*((EMA(放心买入,5)*5+分清)/6+((EMA(奇,5)+EMA(奇,8)+EMA(奇,13))/3))/2)/4,3)/3),POINTDOT,COLOR00FFFF;
信号验证:IF(验证>强,强,验证),COLORRED;
PARTLINE(续持验证,续持验证>强 AND 续持验证>=强,RGB(250,0,0));
解答如下:
股票:=(((H+(C+L)/2)/2+L+O+(C+L)/2)/4-(REF(((H+(C+L)/2)/2+L+O+(C+L)/2)/4,1)))/(REF(((H+(C+L)/2)/2+L+O+(C+L)/2)/4,1));
ZX:=((((INDEXH+INDEXL)+INDEXO)+INDEXC)/4-(REF((((INDEXH+INDEXL)+INDEXO)+INDEXC)/4,1)))/(REF((((INDEXH+INDEXL)+INDEXO)+INDEXC)/4,1));
风:=(3*(((((C+L)/2-EMA((C+L)/2,21))/EMA((C+L)/2,21)*10)*10+SMA(EMA(((C+L)/2-REF((C+L)/2,1))/REF((C+L)/2,1),5)*100,2,1)*10+SMA(EMA(((C+L)/2-REF((C+L)/2,1))/REF((C+L)/2,1),3)*100,2,1)*10)/3)+2*(2*(2*EMA(100*WINNER((C+L)/2)-100*WINNER(REF((C+L)/2,1)*1),8)+2*(2*EMA(100*WINNER((C+L)/2)-100*WINNER(REF((C+L)/2,1)),3))/2)/3))/5;
股险随境俏:=(((((SUM(股票,3)+SUM(ZX,3))/2)*100+风)/2)*2+3*((2*((LWINNER(3,(C+L)/2))*5)+3*风)/5))/5;
线性关系须明确:(8*((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5))-EMA((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5)),21))),COLORYELLOW;
验证:=((((C+L)/2-LLV(L,24))/(HHV((H+C)/2,24)-LLV(L,24))*1.1*(C+L)/2));
强势验证:=SMA(IF(L<=LLV(L,6),EMA(SMA(ABS(L-REF(L,1)),2,1)/SMA(MAX(L-REF(L,1),0),10,1)*1,3),0),2,1);
灵:=SMA(IF(L<=LLV(L,55),EMA(SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),10,1)*-1,3),0),5,1);
背离验证:STICKLINE(强势验证>REF(强势验证,1) AND 强势验证<4,灵,强势验证<8,0.1,0),COLORFFFFFF;
续持验证:EMA((2*(5*((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5))-EMA((EMA((2*C+L)/3,2)-EMA((2*C+H)/3,5)),21)))+(((C*2+H)/3+(C*2+H)/3)/2)+EMA(验证,2))/4,2),COLOR00FFFF;
波段验证:(8*((EMA((2*C+L)/3,3)-EMA((2*C+H)/3,6))-EMA((EMA((2*C+L)/3,3)-EMA((2*C+H)/3,6)),21))),COLORFF9900;
趋势阴线:=(((SMA(C,2,1)-EMA(LLV((C+L)/2,5),5))/MA(LLV((C+L)/2,5),5)*1000+5*(EMA((EMA((C-LLV(L,2))/(HHV(H,2)-LLV(L,2))*100,2)),2)+EMA((EMA(((2*C+L)/3-LLV(L,2))/(HHV((H+C)/2,2)-LLV(L,2))*100,2)),2))/2)/15);
组合:=(趋势阴线+EMA((EMA((C-LLV(L,2))/(HHV(H,2)-LLV(L,2))*43,2)),2))/2;
快速线:=(组合+(4*EMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*43,13,9),2)-3*EMA(EMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*43,13,9),2),2)))/2;
超速线:=(组合+(4*EMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*43,13,9),2)-3*EMA(EMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*43,13,9),2),2)))/2;
有:=3*SMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3,1)-2*SMA(SMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3,1),3,1);
寻:=3*EMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3)-2*MA(EMA(((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*8),3),4);
反弹确认线:=(LLV(L,2)+(((EMA((((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*L),2)-(((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*H))*10)+LLV(L,2))+((EMA(((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*L,2)-(((C+L)/2-LLV(L,2))/(HHV(H,2)-LLV(L,2))*H))*10))/3;
验证信号:=((((C+L)/2-LLV(L,34))/(HHV((H+C)/2,34)-LLV(L,34))*1.1*(C+L)/2));
启动:IF(线性关系须明确>0.1,线性关系须明确,0);
神:=2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1)-(3*HHV(SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1),2)-2*SMA(V*((C+L)/2+(H+C)/2+L)/3,2,1)/SMA(V,2,1));
奇:=(2*神+EMA((2*(C+L)/2+(H+C)/2+L+O)/5,2)+2*((EMA((C*2+H+L+O)/5,5)+MA((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21))/3)+((EMA
((C*2+H+L+O)/5,13)+MA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34))/3)+((EMA((C*2+H+L+O)/5,21)+MA((C*2+H+L+O)/5,34)+MA((C*2+H+L+O)/5,55))/3))/7;
分清:=(FORCAST(HHV((C+L)/2,1),21)+(EMA(((C+L)/2+L+(H+C)/2)/3,55)-(C-EMA(((C+L)/2+L+(H+C)/2)/3,55))))/2;
放心买入:=(((C+L)/2+(H+C)/2+L)/3+(3*(C+H+L+(O+C+L)/3)/4-2*(C+L)/2))/2;
强:(EMA((分清+3*((EMA(放心买入,5)*5+分清)/6+((EMA(奇,5)+EMA(奇,8)+EMA(奇,13))/3))/2)/4,3)/3),POINTDOT,COLOR00FFFF;
信号验证:IF(验证>强,强,验证),COLORRED;