導航:首頁 > 源碼編譯 > 圖形變色源碼

圖形變色源碼

發布時間:2025-01-02 17:49:29

❶ 求通達信變色均線的公式

1、 均線變色公式為MA20:MA(C,20),COLORC08080,LINETHICK1; MA60:MA(C,60),COLORFF0000,LINETHICK2; MA120:MA(C,120),COLORFFFF80,LINETHICK3; MA250:MA(C,250),COLOR66DD66,LINETHICK4; IF(MA(C,20)>=REF(MA(C,20),1),MA(C,20),DRAWNULL),COLORWHITE,LINETHICK1; IF(MA(C,60)>=REF(MA(C,60),1),MA(C,60),DRAWNULL),COLORYELLOW,LINETHICK2; IF(MA(C,120)>=REF(MA(C,120),1),MA(C,120),DRAWNULL),COLORGREEN,LINETHICK3; IF(MA(C,250)>=REF(MA(C,250),1),MA(C,250),DRAWNULL),COLORRED,LINETHICK4。
這些代碼的意思是如果在輸出三十線上,如果上揚,輸出三十線,否則不輸出任何內容,DRAWNULL的意思,是不輸出任何內容,COLORRED的意思是塗紅色,在上篇教程中,我們對於均線指定顏色,用的是插入資源,直接選擇顏色,也是可以的,對於常用的顏色,可以直接用英文表述,RED是紅色,GREEN是綠色} {那麼IF的用法是,IF開頭,然後括弧里有三項內容,用逗號分開,第一項表示滿足什麼條件,第二項表示滿足條件後,得到的結果,第三項表示不滿足條件,得到的結果}
2、 均線分為普通均線和指數均線。普通均線是對過去某個時間段的收盤價進行普通平均。比如20日均線,是將過去20個交易日的收盤價相加然後除以20,就得到一個值;再以昨日向前倒推20個交易日,同樣的方法計算出另外一個值,以此類推,將這些值連接起來,就形成一個普通均線。指數均線是指形成方式和普通均線完全一致,但在計算均線值的時候,計算方式不一樣。比如20日均線,指數均線則採取指數加權平均的方法,越接近當天,所佔的比重更大,而不是像普通均線中那樣平均分配比重。所以指數均線大多數情況下能夠更快地反映出最新的變化。
3、 均線實際上是移動平均線指標的簡稱。均線的顏色分別是白、黃、紫、和綠線,分別代表了5日、10日、20日和60日均線,顏色線會根據設置而不同,並不是固定的。
4、 均線指標可以設置為止損線,也對股票有一定的支撐和壓製作用,當股票在均線指標上方,那麼均線對股票起到一定的支撐作用,當股票在均線指標下方,那麼均線對股票起到一定的壓製作用。
(通達信版本為5.30)

❷ 求大師分享,告訴我這個紅綠背景主圖是什麼指標公式源碼。那裡可以下載

NA:=STRCAT(CON2STR(YEAR,0),' 年 ');
YA:=STRCAT(CON2STR(MONTH,0),' 月 ');
RA:=STRCAT(CON2STR(DAY,0),' 日 ');
SJ:=STRCAT(STRCAT(NA,YA), RA);
DRAWTEXT_FIX(C>0,0.88,0,0,SJ);
{布林+寶塔+藍灰操盤}
{藍灰底}
買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(買線>=賣線,HHV(H,60),LLV(L,60),5,0),COLOR000045;
STICKLINE(買線<賣線,HHV(H,60),LLV(L,60),5,0),COLOR004500;
{紅軌道}
紅軌道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
軌道:MA(MA(CLOSE,3),3),COLOR32CD32,LINETHICK2;
SHENG:=IF(紅軌道>=軌道,軌道,DRAWNULL);
升:SHENG,COLORMAGENTA,LINETHICK2;
{變色K線}
N1:=14;
M:=6;
TR1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N1);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N1);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N1);
PDI:=DMP*100/TR1,LINETHICK2;
MDI:=DMM*100/TR1;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLOR0000FF;
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORC08000;
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA ;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0) ,COLOR00FF00; }
{箱體線}
N:=7;
T1:=CONST(LLVBARS(LOW,N));
T1HIGH:=CONST(REF(HIGH,T1));
CC:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
突破殺入線:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLORYELLOW;
DRAWTEXT(ISLASTBAR, T3HIGH, '殺入線!'),LINETHICK1,COLORYELLOW;
AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);
BA:=EMA(AB,5);
A1{高}:=REFDATE(REF(HHV(H,96),5),DATE);
B1{低}:=REFDATE(REF(LLV(L,96),5),DATE);
DY{中}:=((A1)+(B1))/2;
箱頂:IF(AB>0 AND AB-BA<=0,A1,A1),COLORGREEN,DOTLINE;
箱腰:IF(AB>0 AND AB-BA<=0,DY,DY),COLORYELLOW,DOTLINE;
箱低:IF(AB>0 AND AB-BA<=0,B1,B1),COLORRED,DOTLINE;
DRAWTEXT(ISLASTBAR,箱頂,'箱頂'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,箱腰,'箱腰'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,箱低,'箱低'),COLORYELLOW;
VARAA:=IF(CLOSE>150,91.3,0.913);
{突破:INTPART(CLOSE/VARAA )*VARAA,POINTDOT,LINETHICK4,COLORRED;
再突破:突破+VARAA,POINTDOT,LINETHICK4,COLOR00FF00 ;
回踩:(突破+再突破)/2,POINTDOT,COLORWHITE,LINETHICK4;}
STICKLINE(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱低,箱腰,0.1,-1),COLORRED;
STICKLINE(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱頂,箱腰,0.1,-1),COLORGREEN;
DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱腰,1);
DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱腰,2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.01,0,'K線底部出紅色或粉色,可低吸建倉!'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.05,0,'綠點表示長期的壓力點!'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.10,0,'白點表示中短期的壓力和支撐點,'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.16,0,'紅點表示有效支撐或突破長中短期壓力點!股價向下跌破,原則清倉!'),COLORGREEN;
EE:=(H+L+O+2*C)/5;
CRTP:=EE+(H-L);
CRZL:=2*EE-L;
CRZC:=2*EE-H;
CRFZ:=EE-(H-L);
高:CONST(CRTP),COLORRED;
阻:CONST(CRZL),COLORC7C9FF;
支:CONST(CRZC),COLOR7C9CFF;
反:CONST(CRFZ),COLORDD00DD;
DRAWTEXT(ISLASTBAR, 反, '反轉價'),LINETHICK1,COLORDD00DD;
DRAWTEXT(ISLASTBAR, 支, '支撐'),LINETHICK1,COLOR7C9CFF;
DRAWTEXT(ISLASTBAR, 阻, '阻力'),LINETHICK1,COLORC7C9FF;
DRAWTEXT(ISLASTBAR, 高, ' 高破線'),LINETHICK1,COLORGREEN;
均線:=EXPMA(C,12),COLORGRAY,LINETHICK2;
日:=50;
昨前:=3;
高2:=REF(HHV(H,日),昨前);
低2:=REF(LLV(L,日),昨前);
H4:=高2-(高2-低2)*0.618;
H5:=高2-(高2-低2)*0.809;
支撐80.9%:REFDATE(H5,DATE),COLORRED;
支撐61.8%:REFDATE(H4,DATE),COLORGREEN,;
STICKLINE(CURRBARSCOUNT=1,支撐80.9%,支撐80.9%,300,-1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,支撐61.8%,支撐61.8%,300,-1),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1 AND 支撐80.9%,支撐80.9%,'備錢'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1 AND 支撐61.8%,支撐61.8%,'轉運'),COLORRED;
WH1:=IF(L=LLV(L,9),L,0);
WH2:=CONST(BARSLAST(WH1!=0));
WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));
WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);
WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));
WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);
WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORRED,DOTLINE;
STICKLINE(CURRBARSCOUNT<=WH2+1 AND L=LLV(L,9),O,C,3,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=WH2+10,WH7,'LINE'),COLORRED;
DRAWTEXT(ISLASTBAR,WH7,'進場'),COLORRED;
WH8:IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,9),L,DRAWNULL),DRAWNULL),CIRCLEDOT;
H81:=IF(H=HHV(H,9),H,DRAWNULL);
H82:=CONST(BARSLAST(H81!=DRAWNULL));
H83:=CONST(IF(H82=0,L,REF(L,H82)));
H84:=CONST(REF(BARSLAST(L<H83),H82+1)+H82+1);
H85:=CONST(IF(H84=0,L,REF(L,H84)));
H86:=CONST(REF(BARSLAST(L<H85),H84+1)+H84+1);
H87:=IF(CURRBARSCOUNT<=H82+10,CONST(IF(H86=0,L,REF(L,H86))),DRAWNULL),DOTLINE;
H88:=IF(CURRBARSCOUNT<=H82+1,IF(H=HHV(H,9),H,DRAWNULL),DRAWNULL),CIRCLEDOT;
DRAWTEXT(CURRBARSCOUNT=H82+10,H87,'LINE'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,H87,'止損'),COLORYELLOW;
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
起爆:=CROSS(AAA-REF(AAA,1),15);
DRAWTEXT(起爆,MA(L,3),'↖暴張'),COLORYELLOW,LINETHICK2;
LC:=REF((O+H+L+2*C)/5,1);
{短線擒黑碼}
RSI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*10;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,23))/(0.015*AVEDEV(TYP,23));
買:=CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),COLORRED;
DRAWTEXT(CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),MA(L,3),'↖◆短線擒黑碼◆'),COLORWHITE;
DRAWICON(買,MA(L,3),17);
賣:=CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),COLORGREEN;
DRAWTEXT(CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),箱頂,'■■逃跑■■'),COLORGREEN;
DRAWICON(賣,MA(H,3),28);
{絕密買點}
A81:=EMA(C,3),COLORWHITE;
A82:=EMA(C,5),COLORYELLOW;
A83:=EMA(C,7),COLORMAGENTA;
A84:=EMA(C,12),COLORGREEN;
A85:=EMA(C,20),COLORRED;
A86:=EMA(C,50),COLORBLUE,LINETHICK2;
SS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ;
SSS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018;
DRAWICON(SS8 ,MA(L,3),5);
DRAWTEXT(SS8,MA(L,3),'↖絕密買點'),COLORYELLOW;
ZYX1:="DMI.PDI"(12,6);
ZYX2:="DMI.MDI"(12,6);
ZYX3:=ZYX1>65 AND ZYX1>REF(ZYX1,1);
ZYX4:=LLV(ZYX1,0);
ZYX5:=BARSLAST(ZYX4=ZYX1);
ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2;
ZYX7:=ZYX1>REF(ZYX1,1);
ZYX8:=VOL>2*MA(VOL,30);
ZYX9:="DMI.ADX"(12,6);
ZYXA:="DMI.ADXR"(12,6);
ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
ZYXC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
{ZYXE:=0-"MACD.DIFF"(7,21,3);}
ZYXF:=TROUGHBARS(3,15,1)<4;
ZYX10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
ZYX11:=IF(ZYXF=1,50,0);
ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9);
ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA);
ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50;
ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1);
ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1);
ZYX17:=HHV(ZYX1,ZYX16);
ZYX18:=BARSLAST(ZYX1=ZYX17);
{STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED;}
ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100;
ZYX1A:=ZYX13*100;
DRAWICON(FILTER(ZYXF=1,3),MA(L,3),23);
DRAWTEXT(FILTER(ZYXF=1,3),箱低,'■■鐵底■■'),COLORGREEN;
{量能平台}
ND:=10;
PTD:=CONST(LLVBARS(V,ND));
TDPX:IF(CURRBARSCOUNT<=ND,CONST(IF(PTD=0,O,REF(O,PTD))),DRAWNULL),COLORFF0000;
IF(CURRBARSCOUNT=PTD+1,TDPX,DRAWNULL),CIRCLEDOT,COLORFF0000,LINETHICK2;
DRAWTEXT(ISLASTBAR,TDPX,' 【地平線】'),COLORFF0000;
G21:=30;
T112:=CONST(HHVBARS(V,G21));
T122:=IF(CURRBARSCOUNT<=G21+7,CONST(IF(T112=0,H,REF(H,T112))),DRAWNULL);
T122A:=IF(CURRBARSCOUNT=T112+1,T122,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,T122,'30天量能平台'),COLORWHITE;
W10:=10;
TW1:=CONST(HHVBARS(V,W10));
TW0:=IF(CURRBARSCOUNT<=W10+7,CONST(IF(TW1=0,C,REF(C,TW1))),DRAWNULL);
TW0A:=IF(CURRBARSCOUNT=TW1+1,TW0,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,TW0,'10量能平台'),COLORWHITE;
W20:=20;
TW20:=CONST(HHVBARS(V,W20));
TW22:=IF(CURRBARSCOUNT<=W20+7,CONST(IF(TW20=0,C,REF(C,TW20))),DRAWNULL);
TW22A:=IF(CURRBARSCOUNT=TW20+1,TW22,DRAWNULL),COLORWHITE;
DRAWTEXT(ISLASTBAR,TW22,'20量能平台'),COLORWHITE;
MW:=10;
MW1:=CONST(LLVBARS(V,MW));
MW0:=IF(CURRBARSCOUNT<=MW+7,CONST(IF(MW1=0,O,REF(O,MW1))),DRAWNULL);
MW0A:=IF(CURRBARSCOUNT=MW1+1,MW0,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,MW0,'地量反彈量能平台'),COLORWHITE;
{N1:=18;N2:=36;N3:=55;}
EM1:=EMA(C,18),NODRAW;
EM2:=EMA(C,36),COLORRED;
EM3:=EMA(C,55),COLORGREEN;
TJ8:=BETWEEN(EM2,EM1,EM3);
{DRAWICON(TJ8=0,L,14);}
B18:='<-----------------財富平台';
DRAWTEXT(VOL=HHV(VOL,20),C ,B18),COLORRED;
{超跌反彈}
RSV:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;
短期底部:=LLV(OPEN,30);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=(3*K-2*D),LINETHICK2;
D2:=SMA(J,3,1)*0.82;

❸ cci欏跺簳鑳岀誨彉鑹叉寚鏍囧叕寮忔簮鐮

浠ヤ笅鏄涓涓鍩轟簬CCI欏跺簳鑳岀誨彉鑹叉寚鏍囧叕寮忕殑婧愮爜錛屼緵鎮ㄥ弬鑰冿細


CCI欏跺簳鑳岀誨彉鑹叉寚鏍囧叕寮忔簮鐮侊細


1. 璁$畻CCI鎸囨爣錛


CCI = (鏀剁洏浠 - 鏀剁洏浠風殑N鏃ョ畝鍗曠Щ鍔ㄥ鉤鍧) / 鐪熷疄娉㈠箙鐨凬鏃ョ畝鍗曠Щ鍔ㄥ鉤鍧


榪欓噷鍋囪綨涓26錛岀湡瀹炴嘗騫呬嬌鐢ㄧ畝鍗曠殑N鏃ヤ環鏍煎彉鍔ㄦ潵璁$畻銆


2. 紜瀹欳CI鎸囨爣鐨勯浂綰匡細


閫氳繃奼傚嚭褰撳ぉ鐨勬敹鐩樹環鐨勫鉤鍧囧礆紝騫惰劇疆涓烘寚鏍囩殑闆剁嚎銆


3. 緇樺埗棰滆壊鏍規嵁鐨勮緟鍔╃嚎錛


璁劇疆涓夋潯杈呭姪綰匡細搴曢儴闃堝肩嚎銆侀《閮ㄥ垎紱葷嚎浠ュ強閽濆寲鍖哄彉鑹茬嚎銆傚亣璁鵑《閮ㄩ槇鍊間負100錛岄《閮ㄥ彉鑹茬嚎涓97錛屽簳閮ㄥ垎紱葷嚎涓-7銆


涓嬮潰鏄涓孌靛叿浣撶殑浠g爜瀹炵幇涓婅堪鎬濊礬錛


VAR CCI_Close = CLOSE; //鏀剁洏浠 VAR CCI_M1 = MA(CCI_Close, N=26); //CCI鐨勭煭鏈熺Щ鍔ㄥ鉤鍧囩嚎 VAR CCI_M2 = MA(CLOSE, M=26); //鏀剁洏浠風殑闀挎湡縐誨姩騫沖潎綰 VAR MIDLINE = CLOSE - AVG(CLOSE); //褰撳墠浠鋒牸鐩稿逛簬鏀剁洏浠風殑鍋忕誨害 VAR CCITOTAL = (MIDLINE - TAU(N)) > TAU(N) * CCI_M2 ? CCITOTAL * K : (MIDLINE - TAU(N)) < -TAU(N) * CCI_M2 ? -(CCITOTAL * K) : (0 - TAU(N)); //璁$畻CCI鍊 VAR MIDLINEZERO = MIDLINE - TAU(N); //璁$畻褰撳墠浠鋒牸鐩稿逛簬鏀剁洏浠風殑鍋忕誨害鐨勯浂綰 COLORRED = IF(CCITOTAL > MIDLINEZERO AND CCITOTAL > MIDLINE AND CCITOTAL > MIDLINE * 0.95 AND MIDLINEZERO < MIDLINE * 0.97); //鍦ㄥ簳閮ㄦ椂涓虹孩鑹 COLORBLUE = IF(MIDLINEZERO > CCITOTAL AND MIDLINEZERO > -MIDLINE AND MIDLINEZERO > -MIDLINE * 0.95 AND CCITOTAL < MIDLINE * 0.97); //鍦ㄩ《閮ㄦ椂涓鴻摑鑹 COLORGREEN = IF(CCITOTAL < MIDLINEZERO AND CCITOTAL > -MIDLINE * 0.95 AND MIDLINEZERO < -MIDLINE * 0.97); //鍦ㄩ挐鍖栧尯鏃朵負緇胯壊 榪欐典唬鐮佷細鏍規嵁CCI鎸囨爣涓庤緟鍔╃嚎鐨勪綅緗鍏崇郴錛岃嚜鍔ㄥ湪鍥捐〃涓婄粯鍒跺嚭涓嶅悓鐨勯滆壊銆


褰揅CI鎸囨爣鍦ㄥ簳閮ㄥ尯鍩熸椂錛屼細鏄劇ず綰㈣壊錛涘綋CCI鎸囨爣鍦ㄩ《閮ㄥ尯鍩熸椂錛屼細鏄劇ず钃濊壊錛涘綋CCI鎸囨爣澶勪簬閽濆寲鍖烘椂錛屼細鏄劇ず緇胯壊銆傝繖浜涢滆壊淇″彿鍙浠ュ府鍔╂姇璧勮呮洿濂藉湴鍒ゆ柇甯傚満鐨勮秼鍔垮拰鍙鑳界殑鍙嶈漿鐐廣 璇鋒敞鎰忥紝榪欏彧鏄涓涓綆鍗曠殑紺轟緥浠g爜錛屽疄闄呬嬌鐢ㄦ椂鍙鑳介渶瑕佹牴鎹鎮ㄧ殑鏁版嵁鍜屼氦鏄撶瓥鐣ヨ繘琛岃皟鏁淬傛ゅ栵紝浣跨敤浠諱綍鎶鏈鎸囨爣鏃訛紝閮介渶瑕佺粨鍚堝叾浠栦俊鎮榪涜岀患鍚堝垎鏋愶紝浠ラ伩鍏嶅崟涓鎸囨爣鐨勮瀵箋

❹ 求同花順均線變色源碼

5日均線變色
VAR1:=MA(CLOSE,5);
FF:=VAR1>REF(VAR1,1);
PARTLINE(Var1,FF,RGB(255,0,0),1,RGB(0,255,0)),LINETHICK2;

❺ 通達信SKDJ指標下跌和上漲段K線變色

朋友下面是以SKDJ指標下跌和上漲段K線變色源碼,放到你的主圖指標裡面就可以了。
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
STICKLINE(IF(K>D,1,0),O,C,1,0)COLORRED;
STICKLINE(IF(K<D,1,0),O,C,1,0)COLORGREEN;

❻ 通達信簡單明了的變色多空線的源碼變博易大師的源碼

M1:=3;M2:=6;M3:=12;M4:=24;
BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4,COLORRED;
PARTLINE(BBI>REF(BBI,1),BBI),COLORRED;
PARTLINE(BBI=REF(BBI,1),BBI),COLORRED;
PARTLINE(BBI<REF(BBI,1),BBI),COLORGREEN;

(已在博易大師測試)

閱讀全文

與圖形變色源碼相關的資料

熱點內容
中國銀行程序員加班嗎 瀏覽:520
重命名如何轉換文件夾 瀏覽:768
伺服器賬號怎麼做 瀏覽:860
android訪問api 瀏覽:890
app製作網站源碼 瀏覽:975
社保pdf 瀏覽:159
php條件顯示 瀏覽:322
安卓玩什麼軟體好 瀏覽:129
java如何導出 瀏覽:22
俱樂部源碼棋牌 瀏覽:355
印度的19乘19演算法 瀏覽:195
中國移動app專屬流量如何取消 瀏覽:669
駕考app題庫怎麼導出來 瀏覽:682
與網頁伺服器連接發送什麼代碼 瀏覽:373
沒有伺服器怎麼弄博客 瀏覽:581
如何用vc編譯c語言 瀏覽:327
PDF下載的文件 瀏覽:505
常熟電信程序員有編制嗎 瀏覽:152
前端c語言編譯工具 瀏覽:82
eclipse編譯java程序 瀏覽:859