波浪買賣點(diǎn)指標(biāo)源碼 附帶虛擬量能預(yù)測(cè)公式源碼[其他軟件公式]
相關(guān)標(biāo)簽: 2132點(diǎn)必破波浪理論 、 波浪理論與2132點(diǎn) 、 冒險(xiǎn)島白色波浪點(diǎn) 、 一條大河波浪寬 、 波浪理論 、 波浪線 、 波浪符號(hào) 、 波浪線怎么打 、 艾略特波浪理論 、
波浪買賣點(diǎn)指標(biāo)源碼
{n:=6;}
v1:=MA(HIGH,30)*1.15;
V2:=MA(HIGH,3)*1.03;
V3:=MA(LOW,3)*0.97;
V4:=MA(LOW,30)*0.85;
{}
GET:ZIG(3,N),COLORYELLOW;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>ref(ZIG(3,5),1) AND ref(ZIG(3,5),1)<=ref(ZIG(3,5),2) AND ref(ZIG(3,5),2)<=ref(ZIG(3,5),3);
EX1:=ZIG(3,5)<ref(ZIG(3,5),1) AND ref(ZIG(3,5),1)>=ref(ZIG(3,5),2) AND ref(ZIG(3,5),2)>=ref(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>ref(ZIG(3,10),1) AND ref(ZIG(3,10),1)<=ref(ZIG(3,10),2) AND ref(ZIG(3,10),2)<=ref(ZIG(3,10),3);
EX2:=ZIG(3,10)<ref(ZIG(3,10),1) AND ref(ZIG(3,10),1)>=ref(ZIG(3,10),2) AND ref(ZIG(3,10),2)>=ref(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>ref(ZIG(3,20),1) AND ref(ZIG(3,20),1)<=ref(ZIG(3,20),2) AND ref(ZIG(3,20),2)<=ref(ZIG(3,20),3);
EX3:=ZIG(3,20)<ref(ZIG(3,20),1) AND ref(ZIG(3,20),1)>=ref(ZIG(3,20),2) AND ref(ZIG(3,20),2)>=ref(ZIG(3,20),3);
PL40:=ZIG(3,40);
走強(qiáng)1:=BARSLAST(PL5<ref(PL5,1));
走弱1:=BARSLAST(PL5>ref(PL5,1));
走強(qiáng)2:=BARSLAST(PL10<ref(PL10,1));
走弱2:=BARSLAST(PL10>ref(PL10,1));
走強(qiáng)3:=BARSLAST(PL20<ref(PL20,1));
走弱3:=BARSLAST(PL20>ref(PL20,1));
ZTJZ5:=IF(PL10>ref(PL10,1),COUNT(EN1,走強(qiáng)2),0);
ZTJD5:=IF(PL10>ref(PL10,1),COUNT(EX1,走強(qiáng)2),0);
DTJZ5:=IF(PL10<ref(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<ref(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>ref(PL20,1),COUNT(EN2,走強(qiáng)3),0);
ZTJD10:=IF(PL20>ref(PL20,1),COUNT(EX2,走強(qiáng)3),0);
DTJZ10:=IF(PL20<ref(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<ref(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢買'),COLORFFFF00;
DRAWTEXT(EX1 AND PL10>ref(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>ref(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>ref(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>ref(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>ref(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.94,'Ⅰ'),COLORFF6000;
DRAWTEXT(EX2 AND DTJD10=2,H*1.06,'Ⅱ'),COLORFF6000;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.91,'Ⅲ大買'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>ref(PL20,1) AND ZTJD10=1,H*1.06,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>ref(PL20,1) AND ZTJZ10=2,L*0.91,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>ref(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'③賣'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>ref(PL20,1) AND ZTJZ10=3,L*0.94,'④'),LINETHICK3,COLOR00FF00;
{預(yù)測(cè)量}
預(yù)測(cè)額:=IF(DATE<>CURRENTDATE OR OPENMINUTES(CURRENTTIME)=1,AMOUNT,(AMOUNT/OPENMINUTES(CURRENTTIME))*240), LINETHICK;
an:=20;
SAT:=IF((預(yù)測(cè)額/CLOSE)/(HHV(預(yù)測(cè)額,aN)/HHV(CLOSE,aN))*100>100,100,(預(yù)測(cè)額/CLOSE)/(HHV(預(yù)測(cè)額,aN)/HHV(CLOSE,aN))*100);
預(yù)測(cè)量:=IF(DATE<>CURRENTDATE OR OPENMINUTES(CURRENTTIME)=1,VOL,(VOL/OPENMINUTES(CURRENTTIME))*240), LINETHICK;
量:=VOL;
DRAWTEXTEX(CLOSE,1,120,140,'預(yù)測(cè)額:'+NUMTOSTR(預(yù)測(cè)額,2)),ColorffFF66;
DRAWTEXTEX(CLOSE,1,120,100,'預(yù)測(cè)量:'+NUMTOSTR(預(yù)測(cè)量,2)),ColorffFF66;
DRAWTEXTEX(CLOSE,1,120,60,'量:'+NUMTOSTR(量,2)),ColorffFF66;
{支撐阻力}
gj:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
明日阻力:=LOW+(gj-LOW)+(CLOSE-LOW);
明日支撐:=LOW+(CLOSE-gj);
今日阻力:=ref(明日阻力 , 1);
今日支撐:=ref(明日支撐 , 1);
mc:=ref(CLOSE,1);
{止損位}
vaa:=HHV(HIGH,2);
vab:=vaa*0.95;
DRAWTEXTEX(CLOSE,1,410,440,'[今日 止損位 :'+NUMTOSTR(vab,2)+']'),LINETHICK1,COLOR00FF00;
DRAWNUMBER(BARSTATUS=2and vab,vab-0.02,vab,2),COLORWHITE;{橫線位置數(shù)字}
STICKLINE(BARSTATUS=2and vab,vab,vab,30,0),LINETHICK2,COLORYELLOW;{2天前的最高價(jià)下劃?rùn)M線}
DRAWTEXT(BARSCOUNT(CLOSE)=SYSPARAM(1),vab,'←5%止損位線'),SHIFT2,PXUP10,color00FF; {內(nèi)容來(lái)至程序化交易網(wǎng) CXH99.COM}
DRAWTEXTEX(CLOSE,1,410,80,'---------------'),colorFFFFFF;
DRAWTEXTEX(CLOSE,1,410,160,'---------------'),colorFFFFFF;
DRAWTEXTEX(CLOSE,1,410,240,'---------------'),colorFFFFFF;
DRAWTEXTEX(CLOSE,1,410,320,'---------------'),colorFFFFFF;
DRAWTEXTEX(CLOSE,1,410,400,'---------------'),colorFFFFFF;
DRAWTEXTEX(CLOSE,1,410,120,'今日支撐=:'+NUMTOSTR(今日支撐,2)+''),colorFFFF;
DRAWTEXTEX(CLOSE,1,410,200,'今日阻力=:'+NUMTOSTR(今日阻力,2)+''),colorFF00;
DRAWTEXTEX(CLOSE,1,410,280,'明日支撐=:'+NUMTOSTR(明日支撐,2)),colorFF00FF;
DRAWTEXTEX(CLOSE,1,410,360,'明日阻力=:'+NUMTOSTR(明日阻力,2)),colorFFFF00;
{畫線}
aa:=ref(HIGH,n)=HHV(HIGH,2*n+1);
aaa:=FILTER(aa,n);
bb:=BACKSET(aaa,n+1);
cc1:=FILTER(bb,n);
cc:=cc1 or ISLASTBAR;
aa2:=ref(LOW,n)=LLV(LOW,2*n+1);
aaa2:=FILTER(aa2,n);
bb2:=BACKSET(aaa2,n+1);
cc22:=FILTER(bb2,n);
cc2:=cc22 and NOT(cc1);
ea:=BACKSET(cc,ref(BARSLAST(cc2),1)+1);
eb:=ea>ref(ea,1);
ee:=BACKSET(eb,2);
ff1:=ee>ref(ee,1);
ee2:=BACKSET(ff1 and COUNT(cc,ref(BARSLAST(cc2),1)+2)=0,ref(BARSLAST(cc2),1)+2);
ff2:=ee2>ref(ee2,1);
ee3:=BACKSET(ff2 and COUNT(cc,ref(BARSLAST(cc2),1)+2)=0,ref(BARSLAST(cc2),1)+2);
ff3:=ee3>ref(ee3,1);
js:=IF(cc,COUNT(cc2,ref(BARSLAST(cc),1)+1),0);
g1:=IF(js=1 and cc,BARSLAST(ff1),0);
ga:=IF(cc and ref(LOW,BARSLAST(ff1))>=ref(LOW,BARSLAST(ff2)),BARSLAST(ff2),BARSLAST(ff1));
g2:=IF(js=2 and cc,ga,0);
g3:=IF(js>=3 and cc,IF(cc and ref(LOW,ga)>=ref(LOW,BARSLAST(ff3)),BARSLAST(ff3),ga),0);
gg:=g1+g2+g3;
ja:=BACKSET(cc,gg);
jb:=ja>ref(ja,1);
jj:=BACKSET(jb,2);
ld:=jj>ref(jj,1);
ld1:=ld or ISLASTBAR;
hea:=BACKSET(ld1,ref(BARSLAST(cc),1)+1);
heb:=hea>ref(hea,1);
hee:=BACKSET(heb,2);
hff1:=hee>ref(hee,1);
hee2:=BACKSET(hff1 and COUNT(ld1,ref(BARSLAST(cc),1)+2)=0,ref(BARSLAST(cc),1)+2);
hff2:=hee2>ref(hee2,1);
hee3:=BACKSET(hff2 and COUNT(ld1,ref(BARSLAST(cc),1)+2)=0,ref(BARSLAST(cc),1)+2);
hff3:=hee3>ref(hee3,1);
hjs:=IF(ld1,COUNT(cc1,ref(BARSLAST(ld1),1)+1),0);
hg1:=IF(hjs=1 and ld1,BARSLAST(hff1),0);
hga:=IF(ld1 and ref(HIGH,BARSLAST(hff1))<=ref(HIGH,BARSLAST(hff2)),BARSLAST(hff2),BARSLAST(hff1));
hg2:=IF(hjs=2 and ld1,hga,0);
hg3:=IF(hjs>=3 and ld1,IF(ld1 and ref(HIGH,hga)<=ref(HIGH,BARSLAST(hff3)),BARSLAST(hff3),hga),0);
hgg:=hg1+hg2+hg3;
hja:=BACKSET(ld1,hgg);
hjb:=hja>ref(hja,1);
hjj:=BACKSET(hjb,2);
hd:=hjj>ref(hjj,1);
x1:=BACKSET(ISLASTBAR,BARSLAST(ld)+1);
x2:=x1>ref(x1,1);
y1:=BACKSET(ISLASTBAR,BARSLAST(hd)+1);
y2:=y1>ref(y1,1);
z1:=IF(BARSLAST(x2)<BARSLAST(y2),x2,y2);
z2:=IF(BARSLAST(x2)<BARSLAST(y2),LOW,HIGH);
DRAWLINE(z1,z2,ISLASTBAR,CLOSE,0),POINTDOT,colorff9900;
uu:=BACKSET(ISLASTBAR,BARSLAST(ld)+1);
vv:=uu>ref(uu,1);
ww:=BACKSET(vv,ref(BARSLAST(ld),1)+2);
xx:=ww>ref(ww,1);
DRAWLINE(xx,LOW,vv,LOW,1),POINTDOT,colorffff;
uu2:=BACKSET(ISLASTBAR,BARSLAST(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=BACKSET(vv2,ref(BARSLAST(hd),1)+2);
xx2:=ww2>ref(ww2,1);
DRAWLINE(xx2,HIGH,vv2,HIGH,1),POINTDOT,colorffff;
DRAWICON(hd and xx2,HIGH*1.002,12);
DRAWICON(ld and xx,LOW*1.002,10);
高1:ref(HIGH,BARSLAST(vv2)),POINTDOT,color99ff66;
高2:ref(HIGH,BARSLAST(xx2)),POINTDOT,colorff66ff;
低1:ref(LOW,BARSLAST(vv)),POINTDOT,color99ff66;
低2:ref(LOW,BARSLAST(xx)),POINTDOT,colorff66ff;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容