指標 修改 [文華財經]
-
咨詢內容:
?
MA10:MA(C,8),COLORRED,LINETHICK1;MA20:MA(C,18),COLORGREEN,LINETHICK1;
MA120:MA(C,120),COLORGRAY,LINETHICK1;//IF(C<MA60,MA60,NULL),RGB(0,128,128),LINETHICK2;//IF(C<MA120,MA120,NULL),RGB(0,0,255),LINETHICK2;DRAWICON(CROSS(MA10,MA20),L,4),VALIGN0;DRAWICON(CROSS(MA20,MA10),H,5),VALIGN2;DRAWCOLORKLINE(C>MA20,COLORRED,0);DRAWCOLORKLINE(C<=MA20,COLORGREEN,0);
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,'CO5';DDD:=BARSLAST(CC);CURRBARSCOUNT:=DATACOUNT-BARPOS;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);
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,'CO4';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);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT;DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;
?
老師? 你好? 可以把上面這個指標中的小箭頭? ?? ?如圖? ?圈中 小箭頭 去除
謝謝?
?來源:程序化99
-
文華技術人員:
?參考:
MA10:MA(C,8),COLORRED,LINETHICK1; MA20:MA(C,18),COLORGREEN,LINETHICK1;
MA120:MA(C,120),COLORGRAY,LINETHICK1; //IF(C<MA60,MA60,NULL),RGB(0,128,128),LINETHICK2; //IF(C<MA120,MA120,NULL),RGB(0,0,255),LINETHICK2; //DRAWICON(CROSS(MA10,MA20),L,4),VALIGN0; //DRAWICON(CROSS(MA20,MA10),H,5),VALIGN2; DRAWCOLORKLINE(C>MA20,COLORRED,0); DRAWCOLORKLINE(C<=MA20,COLORGREEN,0);
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,'CO5'; DDD:=BARSLAST(CC); CURRBARSCOUNT:=DATACOUNT-BARPOS; 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);
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,'CO4'; 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);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;?
?來源: www.kzuj.com.cn
-
文華客服:
? 謝謝了
上圖指標中有? 虛線支持 線現(xiàn)在想要? 虛線壓力 線
加入指標部分? 可以用其它顏色? 謝謝?
-
網友回復:
?您需要自己來定義壓力線,我們幫你分析下。
?
-
網友回復:
?
MA10:MA(C,10),COLORRED,LINETHICK1;
MA20:MA(C,20),COLORGREEN,LINETHICK1;
MA60:MA(C,60),COLORMAGENTA,LINETHICK1;
MA120:MA(C,120),COLORWHITE,LINETHICK1;
//IF(C<MA60,MA60,NULL),RGB(0,128,128),LINETHICK2;
//IF(C<MA120,MA120,NULL),RGB(0,0,255),LINETHICK2;
DRAWICON(CROSS(MA10,MA20),L,4),VALIGN0;
DRAWICON(CROSS(MA20,MA10),H,5),VALIGN2;
DRAWCOLORKLINE(C>MA20,COLORRED,0);
DRAWCOLORKLINE(C<=MA20,COLORGREEN,0);
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,'CO5'; DDD:=BARSLAST(CC); CURRBARSCOUNT:=DATACOUNT-BARPOS; 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); 高點壓力:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORGREEN,DOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS1,H,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS2,H,COLORLIGHTGREY),POINTDOT;
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,'CO4'; 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); 低點支撐:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORRED,DOT; ZGSTAR:=(高點壓力+低點支撐)/2; ZGEND:=REFX1((高點壓力+低點支撐)/2,10000); STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;
老師? ?你好? ?找到最初的指標? ?我現(xiàn)在只需要? 白色虛線 壓力 和支撐 2種? ? 謝謝
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容