咨詢(xún)內(nèi)容:
老師幫忙改下下方指標(biāo),改成我們博易大師軟件的
DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0);
H1:=MAX(GETPRICE('YCLOSE'),GETPRICE('HIGH'));
L1:=MIN(GETPRICE('YCLOSE'),GETPRICE('LOW'));
P1:=H1-L1;
阻力:=L1+P1*7/8,COLORGREEN;
支撐:=L1+P1*0.5/8,COLORRED;
中線(xiàn):=(支撐+阻力)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢(shì)線(xiàn):EMA(V11,3),LINETHICK2,COLORMAGENTA;
V12:=(趨勢(shì)線(xiàn)-REF(趨勢(shì)線(xiàn),1))/REF(趨勢(shì)線(xiàn),1)*100;
STICKLINE1(趨勢(shì)線(xiàn)<11,趨勢(shì)線(xiàn),11,5,0),COLORYELLOW;//準(zhǔn)備買(mǎi)入:
AA:=(趨勢(shì)線(xiàn)<11) AND FILTER((趨勢(shì)線(xiàn)<=11),15) AND C<中線(xiàn);
BB0:=REF(趨勢(shì)線(xiàn),1)<11 AND CROSS(趨勢(shì)線(xiàn),11) AND C<中線(xiàn);
BB1:=REF(趨勢(shì)線(xiàn),1)<11 AND REF(趨勢(shì)線(xiàn),1)>6 AND CROSS(趨勢(shì)線(xiàn),11);
BB2:=REF(趨勢(shì)線(xiàn),1)<6 AND REF(趨勢(shì)線(xiàn),1)>3 AND CROSS(趨勢(shì)線(xiàn),6);
BB3:=REF(趨勢(shì)線(xiàn),1)<3 AND REF(趨勢(shì)線(xiàn),1)>1 AND CROSS(趨勢(shì)線(xiàn),3);
BB4:=REF(趨勢(shì)線(xiàn),1)<1 AND REF(趨勢(shì)線(xiàn),1)>0 AND CROSS(趨勢(shì)線(xiàn),1);
BB5:=REF(趨勢(shì)線(xiàn),1)<0 AND CROSS(趨勢(shì)線(xiàn),0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
STICKLINE1(BB=1 AND C<中線(xiàn),11,50,3,0),COLORRED;//下單買(mǎi)入:
DRAWICON(BB=1 AND C<中線(xiàn),55,1);
DRAWTEXT(BB0,60,'★買(mǎi)'),COLORRED;
DRAWTEXT(AA,16,'準(zhǔn)備買(mǎi)入'),COLORYELLOW;
STICKLINE1(趨勢(shì)線(xiàn)>89,趨勢(shì)線(xiàn),89,5,0),COLORWHITE;//準(zhǔn)備賣(mài)出:
CC:=(趨勢(shì)線(xiàn)>89) AND FILTER((趨勢(shì)線(xiàn)>89),15) AND C>中線(xiàn);
DD0:=REF(趨勢(shì)線(xiàn),1)>89 AND CROSS(89,趨勢(shì)線(xiàn)) AND C>中線(xiàn);
DD1:=REF(趨勢(shì)線(xiàn),1)>89 AND REF(趨勢(shì)線(xiàn),1)<94 AND CROSS(89,趨勢(shì)線(xiàn));
DD2:=REF(趨勢(shì)線(xiàn),1)>94 AND REF(趨勢(shì)線(xiàn),1)<97 AND CROSS(94,趨勢(shì)線(xiàn));
DD3:=REF(趨勢(shì)線(xiàn),1)>97 AND REF(趨勢(shì)線(xiàn),1)>99 AND CROSS(97,趨勢(shì)線(xiàn));
DD4:=REF(趨勢(shì)線(xiàn),1)>99 AND REF(趨勢(shì)線(xiàn),1)<100 AND CROSS(99,趨勢(shì)線(xiàn));
DD5:=REF(趨勢(shì)線(xiàn),1)>100 AND CROSS(100,趨勢(shì)線(xiàn));
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
STICKLINE1(DD=1 AND C>中線(xiàn),89,50,3,0),COLORGREEN;//下單賣(mài)出:
DRAWICON(DD=1 AND C>中線(xiàn),45,2);
DRAWTEXT(DD0,40,'★賣(mài)'),COLORGREEN;
DRAWTEXT (CC,84,'準(zhǔn)備賣(mài)出'),COLORWHITE;
頂:89,COLORGREEN;
底:11,COLORRED;
中:50,POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,頂,'頂'),COLORGREEN;
DRAWTEXT(ISLASTBAR,底,'底'),COLORRED;
DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;
?
?來(lái)源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員:
H1:=MAX(STKDATA('',9,'CLOSE'),HIGH);
L1:=MIN(STKDATA('',9,'CLOSE'),LOW);
P1:=H1-L1;
阻力:=L1+P1*7/8,COLORGREEN;
支撐:=L1+P1*0.5/8,COLORRED;
中線(xiàn):=(支撐+阻力)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趨勢(shì)線(xiàn):EMA(V11,3),LINETHICK2,COLORMAGENTA;
V12:=(趨勢(shì)線(xiàn)-REF(趨勢(shì)線(xiàn),1))/REF(趨勢(shì)線(xiàn),1)*100;
STICKLINE(趨勢(shì)線(xiàn)<11,趨勢(shì)線(xiàn),11,5,0),COLORYELLOW;//準(zhǔn)備買(mǎi)入:
AA:=(趨勢(shì)線(xiàn)<11) AND FILTER((趨勢(shì)線(xiàn)<=11),15) AND C<中線(xiàn);
BB0:=REF(趨勢(shì)線(xiàn),1)<11 AND CROSS(趨勢(shì)線(xiàn),11) AND C<中線(xiàn);
BB1:=REF(趨勢(shì)線(xiàn),1)<11 AND REF(趨勢(shì)線(xiàn),1)>6 AND CROSS(趨勢(shì)線(xiàn),11);
BB2:=REF(趨勢(shì)線(xiàn),1)<6 AND REF(趨勢(shì)線(xiàn),1)>3 AND CROSS(趨勢(shì)線(xiàn),6);
BB3:=REF(趨勢(shì)線(xiàn),1)<3 AND REF(趨勢(shì)線(xiàn),1)>1 AND CROSS(趨勢(shì)線(xiàn),3);
BB4:=REF(趨勢(shì)線(xiàn),1)<1 AND REF(趨勢(shì)線(xiàn),1)>0 AND CROSS(趨勢(shì)線(xiàn),1);
BB5:=REF(趨勢(shì)線(xiàn),1)<0 AND CROSS(趨勢(shì)線(xiàn),0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
STICKLINE(BB=1 AND C<中線(xiàn),11,50,3,0),COLORRED;//下單買(mǎi)入:
DRAWICON(BB=1 AND C<中線(xiàn),55,1);
DRAWTEXT(BB0,60,'★買(mǎi)'),COLORRED;
DRAWTEXT(AA,16,'準(zhǔn)備買(mǎi)入'),COLORYELLOW;
STICKLINE(趨勢(shì)線(xiàn)>89,趨勢(shì)線(xiàn),89,5,0),COLORWHITE;//準(zhǔn)備賣(mài)出:
CC:=(趨勢(shì)線(xiàn)>89) AND FILTER((趨勢(shì)線(xiàn)>89),15) AND C>中線(xiàn);
DD0:=REF(趨勢(shì)線(xiàn),1)>89 AND CROSS(89,趨勢(shì)線(xiàn)) AND C>中線(xiàn);
DD1:=REF(趨勢(shì)線(xiàn),1)>89 AND REF(趨勢(shì)線(xiàn),1)<94 AND CROSS(89,趨勢(shì)線(xiàn));
DD2:=REF(趨勢(shì)線(xiàn),1)>94 AND REF(趨勢(shì)線(xiàn),1)<97 AND CROSS(94,趨勢(shì)線(xiàn));
DD3:=REF(趨勢(shì)線(xiàn),1)>97 AND REF(趨勢(shì)線(xiàn),1)>99 AND CROSS(97,趨勢(shì)線(xiàn));
DD4:=REF(趨勢(shì)線(xiàn),1)>99 AND REF(趨勢(shì)線(xiàn),1)<100 AND CROSS(99,趨勢(shì)線(xiàn));
DD5:=REF(趨勢(shì)線(xiàn),1)>100 AND CROSS(100,趨勢(shì)線(xiàn));
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
STICKLINE(DD=1 AND C>中線(xiàn),89,50,3,0),COLORGREEN;//下單賣(mài)出:
DRAWICON(DD=1 AND C>中線(xiàn),45,2);
DRAWTEXT(DD0,40,'★賣(mài)'),COLORGREEN;
DRAWTEXT (CC,84,'準(zhǔn)備賣(mài)出'),COLORWHITE;
頂:89,COLORGREEN;
底:11,COLORRED;
中:50,POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,頂,'頂'),COLORGREEN;
DRAWTEXT(ISLASTBAR,底,'底'),COLORRED;
DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;
謝謝
來(lái)源 程序化久久網(wǎng)