麻煩老師改一下為謝!!!! [文華財經(jīng)]
-
咨詢內(nèi)容:
?
MA8:=1;
自動畫線:=0;
//自畫線;
HIGHN:=(10);
LOWN:=(10);
//HIGHDISPLAY:=20;
//LOWDISPLAY:=20;
//ZGDISPLAY:=20;
//MADISPLAY:=20;
AAUU:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AAUU,HIGHN+1);
CCUU:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
//DRAWICON(CCUU,H,'CO5';
DDD:=BARSLAST(CCUU);
CURRBARSCOUNT:=DATACOUNT-BARPOS;
GDTS:=IF(CCUU,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(C,DDD),C);
{頂部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=(REFX1(DINGBUTS,10000))*自動畫線*MA8;
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=(REFX1(DINGBUTS1,10000))*自動畫線*MA8;
DINGBU2:=(REF(DINGBU1,DDD+1))*MA8;
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
//高壓:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORCYAN,LINETHICK2, NOTEXT;AA1A:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1A,LOWN+1);
CCA1A:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
//DRAWICON(CCA1A,L-2,'CO4';
DD1A:=BARSLAST(CCA1A);
DDTS:=IF(CCA1A,CURRBARSCOUNT,0);
YDB:=IF(DD1A,REF(L,DD1A),L);
DDTS1:=(IF(DD1A,REF(DDTS,DD1A),DDTS))*自動畫線*MA8;
DDCS1:=REFX1(DDTS1,10000);
ZDB:=REF(YDB,DD1A+1);
DDTS2:=REF(DDTS1,DD1A+1);
DDCS2:=(REFX1(DDTS2,10000))*自動畫線*MA8;
//低撐:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORWHITE,LINETHICK2, NOTEXT;DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L,CROSS(QY1,0.5),L,1),COLORYELLOW,DASHDOTDOT, NOTEXT;射線1
DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H,CROSS(QY,0.5),H,1),COLORGREEN,DASHDOTDOT;射線2請老師在兩射線的起點向后畫直線至最新K線為止,并在末端標注價位C>直線時為紅色C<直線時為綠色
?
?來源:程序化99
-
文華技術人員:
?請稍等
?
?來源: www.kzuj.com.cn
-
文華客服:
?謝謝齊老師還在加班辛苦了!!
?
-
網(wǎng)友回復:
?參考;
MA8:=1;自動畫線:=0;//自畫線;HIGHN:=(10);LOWN:=(10);//HIGHDISPLAY:=20;//LOWDISPLAY:=20;//ZGDISPLAY:=20;//MADISPLAY:=20;AAUU:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AAUU,HIGHN+1);CCUU:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);//DRAWICON(CCUU,H,'CO5';DDD:=BARSLAST(CCUU);CURRBARSCOUNT:=DATACOUNT-BARPOS;GDTS:=IF(CCUU,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(C,DDD),C);{頂部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=(REFX1(DINGBUTS,10000))*自動畫線*MA8;DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=(REFX1(DINGBUTS1,10000))*自動畫線*MA8;DINGBU2:=(REF(DINGBU1,DDD+1))*MA8;MM:=IF(CURRBARSCOUNT>GDCS2,0,1);//高壓:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORCYAN,LINETHICK2, NOTEXT;
AA1A:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1A,LOWN+1);CCA1A:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);//DRAWICON(CCA1A,L-2,'CO4';DD1A:=BARSLAST(CCA1A);DDTS:=IF(CCA1A,CURRBARSCOUNT,0);YDB:=IF(DD1A,REF(L,DD1A),L);DDTS1:=(IF(DD1A,REF(DDTS,DD1A),DDTS))*自動畫線*MA8;DDCS1:=REFX1(DDTS1,10000);ZDB:=REF(YDB,DD1A+1);DDTS2:=REF(DDTS1,DD1A+1);DDCS2:=(REFX1(DDTS2,10000))*自動畫線*MA8;//低撐:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORWHITE,LINETHICK2, NOTEXT;
DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L,CROSS(QY1,0.5),L,1),COLORYELLOW,DASHDOTDOT, NOTEXT;DRAWSL(ISLASTBAR&&? C> VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),0,-SUMBARS(CROSS(QY1,0.5),3)+1,0,COLORRED);DRAWSL(ISLASTBAR&&? C< VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY1,0.5),3)),0.5),L),0,-SUMBARS(CROSS(QY1,0.5),3)+1,0,COLORGREEN);
DRAWSL(ISLASTBAR&&? C> VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),0,-SUMBARS(CROSS(QY,0.5),3)+1,0,COLORRED);DRAWSL(ISLASTBAR&&? C< VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),VALUEWHEN(CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H),0,-SUMBARS(CROSS(QY,0.5),3)+1,0,COLORGREEN);
//射線1DRAWLINE1( CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(QY,0.5),3)),0.5),H,CROSS(QY,0.5),H,1),COLORGREEN,DASHDOTDOT;//射線2?
- 網(wǎng)友回復: ?老師早上好!4樓射線能否根據(jù)直線同步變色,射線也改成至最后K線為止,請修改
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內(nèi)容