通達信改為文華指標 [文華財經]
: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_1:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=9.9 AND OPEN=HIGH AND PERIOD=5,1,0);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_2:=BARSLASTCOUNT(XA_1)>=2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_3:=CONST(BARSLAST(XA_2));: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
水平線:IF(CURRBARSCOUNT<=XA_3+1,CONST(IF(XA_3=0,MAX(CLOSE,OPEN),REF(MAX(CLOSE,OPEN),XA_3))),DRAWNULL),DOTLINE,COLORLIBLUE;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_4:=BARSLAST(YEAR!=REF(YEAR,1));: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_5:=BARSLAST(HHV(VOL,XA_4+1)=VOL);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_6:=BARSLAST(LLV(VOL,XA_4+1)=VOL);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(FILTERX(XA_5=0,XA_4+1),OPEN,CLOSE,1,0),COLOR009900;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(FILTERX(XA_6=0,XA_4+1),OPEN,CLOSE,1,0),COLORGREEN;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_7:=CONST(XA_5);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
天量:IF(CURRBARSCOUNT<=XA_7+3,CONST(IF(XA_7=0,OPEN,REF(OPEN,XA_7))),DRAWNULL),DOTLINE,COLORGREEN;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
IF(CURRBARSCOUNT=XA_7+1,天量,DRAWNULL),COLORYELLOW,LINETHICK2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_8:=STRCAT(HYBLOCK,18);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_9:=STRCAT(XA_8,DYBLOCK);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_10:=STRCAT(DYBLOCK,18);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_11:=STRCAT(XA_9,GNBLOCK);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_12:=STRCAT(XA_11,18);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(XA_12,FGBLOCK)),COLORLIMAGENTA;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
DRAWBAND(EMA(CLOSE,7),RGB(83,123,68),EMA(CLOSE,13),RGB(155,50,50));: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
DRAWBAND(EMA(CLOSE,13),RGB(83,123,50),EMA(CLOSE,55),RGB(83,123,50));: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_13:=REF(HHV(MAX(HIGH,OPEN),N),M);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_14:=REF(LLV(MIN(HIGH,OPEN),N),M);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_15:=XA_13-(XA_13-XA_14)*0.191;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_16:=XA_13-(XA_13-XA_14)*0.382;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_17:=XA_13-(XA_13-XA_14)*0.5;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_18:=XA_13-(XA_13-XA_14)*0.618;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_19:=XA_13-(XA_13-XA_14)*0.809;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_20:=REFDATE(XA_13,DATE);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_21:=REFDATE(XA_15,DATE);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_22:=REFDATE(XA_16,DATE);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_23:=REF(HHVBARS(MAX(CLOSE,OPEN),60),15)+15;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_24:=REF(MAX(CLOSE,OPEN),XA_23);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(BARSTATUS=2,XA_24,XA_24,2000,1),COLORRED,LINETHICK2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_25:=CONST(XA_23);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
突破干:IF(CURRBARSCOUNT<=XA_25+1,CONST(IF(XA_25=0,MAX(CLOSE,OPEN),REF(MAX(CLOSE,OPEN),XA_25))),DRAWNULL),POINTDOT,COLORGREEN,LINETHICK4;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
IF(CURRBARSCOUNT=XA_25+1,突破干,DRAWNULL),POINTDOT,COLORAA00AA,LINETHICK4;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
DRAWTEXT(CURRBARSCOUNT=XA_25+1,突破干*1.01,STRCAT(CON2STR(CONST(XA_25+1),0),1)),COLORAA00AA;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
操做線:EXPMA(CLOSE,7),COLORYELLOW,LINETHICK2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
支撐線:EXPMA(CLOSE,13),COLORRED,LINETHICK2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
防守線:EXPMA(CLOSE,55),COLORLIRED,LINETHICK2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
生命線:MA(CLOSE,30),DOTLINE,COLORMAGENTA;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
海面:EMA(CLOSE,78),COLORWHITE,LINETHICK2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
海平面:EMA(CLOSE,80),COLORBLUE,LINETHICK2;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_26:=FILTER(BACKSET(FILTER(REF(LOW,500)=LLV(LOW,2*500+1),500),500+1),500);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_27:=FILTER(BACKSET(FILTER(REF(HIGH,25)=HHV(HIGH,2*25+1),25),25+1),25);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_28:=REF(CLOSE,BARSLAST(XA_27));: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_29:=BARSLAST(XA_27)<BARSLAST(XA_26) AND NOT(XA_27);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
麒麟:IF(XA_29,XA_28,XA_28),POINTDOT,COLORLIBLUE,LINETHICK3;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_29,XA_28,XA_28,10,(-1)),COLORGREEN;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
DRAWTEXT(ISLASTBAR,麒麟,19),COLORLIBLUE;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_30:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_31:=IF((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),1,0);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_30,OPEN,CLOSE,3,0),COLORAA00AA;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_30,OPEN,CLOSE,1,0),COLORBLACK;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_30,HIGH,LOW,0,1),COLORCC00CC;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_30,OPEN,CLOSE,3,1),COLORCC00CC;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
跌停板:STICKLINE(XA_31,OPEN,CLOSE,3,0),COLORFF1100;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_31,OPEN,CLOSE,2.5,0),COLORFF3300;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_31,OPEN,CLOSE,2,0),COLORFF4400;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_31,OPEN,CLOSE,1.5,0),COLORFF5500;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_31,OPEN,CLOSE,1,0),COLORFF6600;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_31,OPEN,CLOSE,0.5,0),COLORFF7700;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_31,LOW,HIGH,0,0),COLORFF7700;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_32:=REF((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<=(-0.03),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.03;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_32,OPEN,CLOSE,2.5,0),COLOR0000A5;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_32,OPEN,CLOSE,2,0),COLOR0000C5;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_32,OPEN,CLOSE,1.5,0),COLOR0000D5;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_32,OPEN,CLOSE,1,0),COLOR0000E5;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_32,LOW,HIGH,0,0),COLOR0000F5;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_32,CLOSE,(OPEN+CLOSE)/2,2.5,0),COLOR008CFD;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_33:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_34:=(MAX(CLOSE,OPEN)-REF(CLOSE,1))/REF(CLOSE,1)*100;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_33-XA_34>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),MAX(CLOSE,OPEN),HIGH,0,0),COLORGREEN;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_33-XA_34>=2.5 AND PERIOD=5 AND CLOSE>OPEN AND MA(CLOSE,5),CLOSE,OPEN,3.1,0),COLORRED;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_35:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
STICKLINE(XA_35,OPEN,CLOSE,2.8,1),COLOR0000CC;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
XA_36:=OPEN>CLOSE AND OPEN>REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />
假陰線:STICKLINE(XA_36,OPEN,CLOSE,2,0),COLORLIRED;: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" />文華技術人員:參考:
?下載信息??[文件大小:???下載次數:?]文件名:指標.txt
文華客服:
?n? 最小? 1
? 最大 777? 缺省80?m
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
3n1
?
?? 2
?
?
?
?
?? 120
?
? 10M2
?
? 2
?
?
?
?
?? 120
?
? 11?
請再次修改?上次改的不能用
謝謝! ? ? ? 網友回復:
?參考:
?下載信息??[文件大小:???下載次數:?]文件名:指標.txt
網友回復:
?還是不能用? 請刪除此貼?
?
?來源:程序化99
?下載信息??[文件大小:???下載次數:?]文件名:指標.txt
?
?來源: m.kzuj.com.cn
請再次修改?上次改的不能用
謝謝! ? ? ?
?
?下載信息??[文件大小:???下載次數:?]文件名:指標.txt
?
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容