以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://222.73.7.161/bbs/index.asp) -- 公式模型编写问题提交 (http://222.73.7.161/bbs/list.asp?boardid=4) ---- 请老师帮我改改这指标,文华财经改为金字塔的,谢谢老师了 (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=172397) |
-- 作者:linyong -- 发布时间:2019/10/14 11:13:17 -- 请老师帮我改改这指标,文华财经改为金字塔的,谢谢老师了 M1:=5; M2:=10; HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,118); DDD:=BARSLAST(CC); CURRBARSCOUNT:=DATACOUNT-BARPOS+1; GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=REFX1(DINGBUTS,10000); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=REFX1(DINGBUTS1,10000); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); DRAWLINE1(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORGREEN,LINETHICK1; 局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4); 局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2); 局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4); 局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2); 局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0)); 距前高天:=BARSLAST(局部高点预选C=1); 距前低天:=BARSLAST(局部低点预选C=-1); 小值周期:=20; 大值周期:=20; 低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0); 低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0); 低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0); 预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)<>1) OR REF(低保留S,距前低天)=0,1,0); 判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0); 高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0); 高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0); 高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0); 预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)<>1) OR REF(高保留,距前高天)=0,1,0); 判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0); 低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0); 低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0); 低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); AAAD:=IF(高保留=1 AND 低保留=-1 AND H>REF(H,REF(距前高天,1)+2),1,IF(高保留=1 AND 低保留=-1 AND L<REF(L,REF(距前低天,1)+2),-1,0)); 极点保留:=IF(AAAD=0,高保留+低保留,AAAD); 局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,NULL)) ,CIRCLEDOT ,COLORYELLOW; DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORRED; DRAWLINE1(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORYELLOW; DRAWLINE1(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF; DRAWLINE1(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW; AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L*0.98,119); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=REFX1(DDTS1,10000); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=REFX1(DDTS2,10000); DRAWLINE1(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1), COLORRED,LINETHICK2; MA1:=MA(CLOSE,M1); MA2:=MA(CLOSE,M2); HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12) +7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+ REF(H,20))/210,COLORBLUE,LINETHICK1; LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12) +7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+ REF(L,20))/210,COLORBLUE,LINETHICK1; D90H:=EMA(HH,90),COLORRED,LINETHICK1; D90L:=EMA(LL,90),COLORRED,LINETHICK1; DGH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12) +7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+ REF(H,20))/210,COLORBLUE,LINETHICK1; DDL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12) +7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+ REF(L,20))/210,COLORBLUE,LINETHICK1; D90C:=D90H-D90L; D90D:=D90H+D90C*2,COLORRED,LINETHICK1; D90T:=D90L-D90C*2,COLORRED,LINETHICK1; G0:=(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1+REFX1(MA(REFX1(MA(H,25),25/2),25),25/2),LINETHICK1,COLORWHITE; D0:=REFX1(MA(REFX1(MA(L,25),25/2),25),25/2)-(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1,LINETHICK1,COLORWHITE; DTD:=D0>=D90T AND G0>=D90D; KTD:=G0<=D90D AND D0<=D90T; ZDD:=D0>=D90T AND G0<=D90D; BDD0:=(REFX1(MA(REFX1(MA(H,60),60/2),60),60/2)-REFX1(MA(REFX1(MA(L,60),60/2),60),60/2))*3+REFX1(MA(REFX1(MA(H,60),60/2),60),60/2),LINETHICK2,COLORGREEN; BDT0:=REFX1(MA(REFX1(MA(L,60),60/2),60),60/2)-(REFX1(MA(REFX1(MA(H,60),60/2),60),60/2)-REFX1(MA(REFX1(MA(L,60),60/2),60),60/2))*3,LINETHICK2,COLORGREEN; ZK1:(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1+REFX1(MA(REFX1(MA(H,25),25/2),25),25/2),DOT,COLORWHITE; ZD1:REFX1(MA(REFX1(MA(L,25),25/2),25),25/2)-(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1,DOT,COLORWHITE; BS:(REFX1(MA(REFX1(MA(H,60),60/2),60),60/2)-REFX1(MA(REFX1(MA(L,60),60/2),60),60/2))*2.2+REFX1(MA(REFX1(MA(H,60),60/2),60),60/2),DOT,COLORRED; SS:=REFX1(MA(REFX1(MA(L,25),25/2),25),25/2)-(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1.5,DOT,COLORGREEN; BD:REFX1(MA(REFX1(MA(L,60),60/2),60),60/2)-(REFX1(MA(REFX1(MA(H,60),60/2),60),60/2)-REFX1(MA(REFX1(MA(L,60),60/2),60),60/2))*2.8,DOT,COLORGREEN; ZZ:=(ZK1+ZD1)/2,DOT,COLORYELLOW; 多头多定位:=CROSS(ZD1,L) AND DTD=1; 多头平定位:=CROSS(H,ZK1) AND DTD=1 AND ZDD=0; 空头空定位:=CROSS(H,ZK1) AND KTD=1; 空头平定位:=CROSS(ZD1,L) AND KTD=1 AND ZDD=0; 震荡多定位:=CROSS(ZD1,L) AND ZDD=1; 震荡空定位:=CROSS(H,ZK1) AND ZDD=1; DRAWTEXT(ISLASTBAR,ZK1,\'卖\'),COLORWHITE; DRAWTEXT(ISLASTBAR,ZD1,\'买\'),COLORWHITE; DRAWTEXT(ISLASTBAR,BS,\'顶\'),COLORRED; DRAWTEXT(ISLASTBAR,BD,\'底\'),COLORGREEN; DRAWICON(空头平定位=1,L,\'ICO116\'); DRAWICON(多头平定位=1,H,\'ICO117\'); DRAWICON(多头多定位=1 OR 震荡多定位=1,L,\'ICO134\'); DRAWICON(空头空定位=1 OR 震荡空定位=1,H,\'ICO135\');
|
-- 作者:FireScript -- 发布时间:2019/10/14 13:37:47 -- M1:=5; M2:=10; HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,118); DDD:=BARSLAST(CC); CURRBARSCT:=DATACOUNT-BARPOS+1; GDTS:=IF(CC,CURRBARSCT,0); DINGBU:=IF(DDD,REF(H,DDD),H); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=refx(DINGBUTS,10000); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=refx(DINGBUTS1,10000); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCT>GDCS2,0,1); DRAWLINE(CURRBARSCT=GDCS2,H,CURRBARSCT=GDCS1,H,1),COLORGREEN,LINETHICK1; 局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4); 局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2); 局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4); 局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2); 局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0)); 距前高天:=BARSLAST(局部高点预选C=1); 距前低天:=BARSLAST(局部低点预选C=-1); 小值周期:=20; 大值周期:=20; 低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0); 低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0); 低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0); 预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)<>1) OR REF(低保留S,距前低天)=0,1,0); 判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0); 高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0); 高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0); 高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0); 预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)<>1) OR REF(高保留,距前高天)=0,1,0); 判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0); 低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0); 低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0); 低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); AAAD:=IF(高保留=1 AND 低保留=-1 AND H>REF(H,REF(距前高天,1)+2),1,IF(高保留=1 AND 低保留=-1 AND L<REF(L,REF(距前低天,1)+2),-1,0)); 极点保留:=IF(AAAD=0,高保留+低保留,AAAD); 局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,NULL)) ,CIRCLEDOT ,COLORYELLOW; DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0),COLORRED; DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0),COLORYELLOW; DRAWLINE(CURRBARSCT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF; DRAWLINE(CURRBARSCT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW; AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L*0.98,119); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=refx(DDTS1,10000); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=refx(DDTS2,10000); DRAWLINE(CURRBARSCT=DDCS2,L,CURRBARSCT=DDCS1,L,1), COLORRED,LINETHICK2; MA1:=MA(CLOSE,M1); MA2:=MA(CLOSE,M2); HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12) +7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+ REF(H,20))/210,COLORBLUE,LINETHICK1; LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12) +7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+ REF(L,20))/210,COLORBLUE,LINETHICK1; D90H:=EMA(HH,90),COLORRED,LINETHICK1; D90L:=EMA(LL,90),COLORRED,LINETHICK1; DGH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6) +13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12) +7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+ REF(H,20))/210,COLORBLUE,LINETHICK1; DDL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6) +13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12) +7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+ REF(L,20))/210,COLORBLUE,LINETHICK1; D90C:=D90H-D90L; D90D:=D90H+D90C*2,COLORRED,LINETHICK1; D90T:=D90L-D90C*2,COLORRED,LINETHICK1; G0:=(refx(MA(refx(MA(H,25),25/2),25),25/2)-refx(MA(refx(MA(L,25),25/2),25),25/2))*1+refx(MA(refx(MA(H,25),25/2),25),25/2),LINETHICK1,COLORWHITE; D0:=refx(MA(refx(MA(L,25),25/2),25),25/2)-(refx(MA(refx(MA(H,25),25/2),25),25/2)-refx(MA(refx(MA(L,25),25/2),25),25/2))*1,LINETHICK1,COLORWHITE; DTD:=D0>=D90T AND G0>=D90D; KTD:=G0<=D90D AND D0<=D90T; ZDD:=D0>=D90T AND G0<=D90D; BDD0:=(refx(MA(refx(MA(H,60),60/2),60),60/2)-refx(MA(refx(MA(L,60),60/2),60),60/2))*3+refx(MA(refx(MA(H,60),60/2),60),60/2),LINETHICK2,COLORGREEN; BDT0:=refx(MA(refx(MA(L,60),60/2),60),60/2)-(refx(MA(refx(MA(H,60),60/2),60),60/2)-refx(MA(refx(MA(L,60),60/2),60),60/2))*3,LINETHICK2,COLORGREEN; ZK1:(refx(MA(refx(MA(H,25),25/2),25),25/2)-refx(MA(refx(MA(L,25),25/2),25),25/2))*1+refx(MA(refx(MA(H,25),25/2),25),25/2),DOT,COLORWHITE; ZD1:refx(MA(refx(MA(L,25),25/2),25),25/2)-(refx(MA(refx(MA(H,25),25/2),25),25/2)-refx(MA(refx(MA(L,25),25/2),25),25/2))*1,DOT,COLORWHITE; BS:(refx(MA(refx(MA(H,60),60/2),60),60/2)-refx(MA(refx(MA(L,60),60/2),60),60/2))*2.2+refx(MA(refx(MA(H,60),60/2),60),60/2),DOT,COLORRED; SS:=refx(MA(refx(MA(L,25),25/2),25),25/2)-(refx(MA(refx(MA(H,25),25/2),25),25/2)-refx(MA(refx(MA(L,25),25/2),25),25/2))*1.5,DOT,COLORGREEN; BD:refx(MA(refx(MA(L,60),60/2),60),60/2)-(refx(MA(refx(MA(H,60),60/2),60),60/2)-refx(MA(refx(MA(L,60),60/2),60),60/2))*2.8,DOT,COLORGREEN; ZZ:=(ZK1+ZD1)/2,DOT,COLORYELLOW; 多头多定位:=CROSS(ZD1,L) AND DTD=1; 多头平定位:=CROSS(H,ZK1) AND DTD=1 AND ZDD=0; 空头空定位:=CROSS(H,ZK1) AND KTD=1; 空头平定位:=CROSS(ZD1,L) AND KTD=1 AND ZDD=0; 震荡多定位:=CROSS(ZD1,L) AND ZDD=1; 震荡空定位:=CROSS(H,ZK1) AND ZDD=1; DRAWTEXT(ISLASTBAR,ZK1,\'卖\'),COLORWHITE; DRAWTEXT(ISLASTBAR,ZD1,\'买\'),COLORWHITE; DRAWTEXT(ISLASTBAR,BS,\'顶\'),COLORRED; DRAWTEXT(ISLASTBAR,BD,\'底\'),COLORGREEN; DRAWICON(空头平定位=1,L,\'ICO116\'); DRAWICON(多头平定位=1,H,\'ICO117\'); DRAWICON(多头多定位=1 OR 震荡多定位=1,L,\'ICO134\'); DRAWICON(空头空定位=1 OR 震荡空定位=1,H,\'ICO135\'); 替换了部分函数,修改了一个与金字塔函数名重名的变量名称。 然后注意这里的设置。
|