㈠ 怎麼看通達信雙龍會主圖指標(源碼)
看通達信雙龍會主圖指標(源碼)的方法:
打開通達信軟體,然後有主圖跟副圖,副圖上有很多指標,選擇好你平時常用的指標,然後再指標上比如rsi,或者kdi等等,在它們的上面點擊右鍵,就可以看到指標設置,指標源碼,你點擊指標源碼確認,就可以看到所有的源代碼啦!
㈡ 通達信副圖公式源碼和選股公式源碼有何區別
通達信副圖公式源碼
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:3*K-2*D;
通達信選股公式源碼
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
J<1;
2個都是KDJ指標,不同的地方是選股只有1個輸出,而且還是限制條件。
㈢ 各位老師,通達信 副圖 源碼如下;編寫選股公式要求要求:出現完整的紅三角 選入,不知是否難以實現
{未來函數,信號會漂移,慎用!}
VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);
絕底:((VARB28 < (0)) AND ZXNH) AND ((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)<10;
㈣ 閫氳揪淇″懆鏈熷叡鎸疢ACD鎸囨爣鍏寮忔簮鐮佸壇鍥
鍦ㄦ妧鏈鍒嗘瀽涓錛岄氳揪淇″懆鏈熷叡鎸疢ACD鎸囨爣鏄涓涓寮哄ぇ鐨勫伐鍏鳳紝閫氳繃緇撳悎涓嶅悓鍛ㄦ湡鐨勫揩鎱㈢嚎鍜屼俊鍙風嚎錛屽府鍔╂姇璧勮呮崟鎹変拱鍗栨椂鏈恆備互涓嬫槸鎸囨爣鐨勬牳蹇冨叕寮忓拰鍓鍥劇殑婧愮爜瑙h伙細</
DIFM:</ Ema(C,240)- EMA(C,520)錛岃繖鏄鏈堢嚎鍛ㄦ湡鐨凞IF錛堝揩閫熺Щ鍔ㄥ鉤鍧囩嚎涓庢參閫熺Щ鍔ㄥ鉤鍧囩嚎涔嬪樊錛夛紝瀹冪敤緇胯壊鏄劇ず錛岃〃紺洪暱鏈熻秼鍔跨殑娼滃湪鍙樺寲銆
DEAM:</ EMA(DIFM,180)錛屽笵IFM榪涜180鍛ㄦ湡鐨勫鉤婊戝勭悊錛屼負鏈堢嚎MACD綰挎彁渚涚ǔ瀹氱殑鏀鎸侊紝浠ラ粍宀╄春縐熻壊鏄劇ず銆
MACD錛堟湀錛:</ (DIFM-DEAM)/2錛屾湀綰縈ACD鍊礆紝閫氳繃璁$畻DIFM涓嶥EAM鐨勫樊鍊奸櫎浠2錛屾樉紺烘湀綰胯秼鍔跨殑寮哄害錛屼互榛勬媿鍒欒壊鉶氱嚎褰㈠紡鍛堢幇銆
DIFW:</ EMA(CLOSE,60)- EMA(CLOSE,130)錛岃繖鏄鍛ㄧ嚎鐨凞IF錛屼互钃濊壊綺楃嚎灞曠ず錛屽弽鏄犵煭鏈熸嘗鍔ㄦ儏鍐點
DEAW:</ EMA(DIFW,45)錛屽笵IFW榪涜45鍛ㄦ湡騫蟲粦澶勭悊錛屼負鍛ㄧ嚎MACD鎻愪緵鎸囧礆紝浠ラ粍鑹叉樉紺恆
MACD錛堝懆錛:</ (DIFW-DEAW)*2錛屽懆綰縈ACD鍊礆紝閫氳繃鏀懼ぇDIFW涓嶥EAW鐨勫樊鍊礆紝涓轟氦鏄撶矖鍏嗚呮彁渚涙洿綺劇粏鐨勭煭鏈熶俊鍙鳳紝浠ラ粍鑹插疄綰垮憟鐜般
DIFD:</ EMA(C,12)- EMA(C,26)錛屾棩綰緿IF錛岀敤緔鑹茬粏綰胯〃紺猴紝鏄蹇閫熶笌鎱㈤熸棩綰跨Щ鍔ㄥ鉤鍧囩嚎鐨勫樊寮傦紝鏄鐭鏈熸嘗鍔ㄧ殑鏁忔劅鎸囨爣銆
DEAD:</ EMA(DIFD,9)錛屽笵IFD榪涜9鍛ㄦ湡騫蟲粦澶勭悊錛屽艦鎴愭棩綰縈ACD鐨勪俊鍙風嚎錛屼互钃濊壊綺楃嚎灞曠ず銆
MACD錛堟棩錛:</ (DIFD-DEAD)*2錛屾棩綰縈ACD鍊礆紝閫氳繃璋冩暣DIFD涓嶥EAD鐨勫樊鍊礆紝鎻紺烘棩鍐呯殑涔板崠淇″彿錛屼互綰㈣壊鉶氱嚎鏄劇ず銆
鍓鍥懼彲瑙嗗寲:</ 閫氳繃STICKLINE鍑芥暟錛孧ACD(鏈)銆丮ACD(鍛)鍜孧ACD(鏃)浠ヤ笉鍚岀矖緇嗗拰棰滆壊鐨勭嚎鏉★紝鐩磋傚湴鍛堢幇涓嶅悓鍛ㄦ湡鐨勫叡鎸鏁堟灉銆
淇″彿鍒ゆ柇:</ 鐭鏈熷畨鍏ㄧ嚎錛歁ACD錛堟棩錛>REF(MACD錛堟棩錛,1) AND MACD錛堝懆錛>REF(MACD錛堝懆錛,1)錛屽綋鏃ョ嚎鍜屽懆綰垮悓鏃朵笂絀垮墠涓浜ゆ槗鏃ョ殑鍊礆紝鍙戝嚭涔板叆淇″彿錛岀敤綰㈣壊琛ㄧず銆
鐭鏈熼庨櫓:</ (鐭鏈熷畨鍏!=1)錛屽綋鐭鏈熷畨鍏ㄧ嚎涓嶆垚絝嬫椂錛屾彁紺哄彲鑳藉瓨鍦ㄩ庨櫓錛屼互鐧借壊琛ㄧず銆
涓鏈熷畨鍏ㄧ嚎:</ MACD錛堝懆錛>REF(MACD錛堝懆錛,1) AND MACD錛堟湀錛>REF(MACD錛堟湀錛,1)錛屽懆綰誇笌鏈堢嚎鍚屾椂涓婄┛錛屼負涓鏈熺湅娑ㄤ俊鍙鳳紝鐢ㄨ摑緔鑹茶〃紺恆
涓鏈熼庨櫓:</ (涓鏈熷畨鍏!=1)錛屽綋涓鏈熷畨鍏ㄧ嚎涓嶆垚絝嬫椂錛岃〃鏄庝腑鏈熻秼鍔垮彲鑳藉弽杞錛屼互緇胯壊鏄劇ず銆
杈呭姪綰:</ DIF2綰匡紙緔鑹茬粏綰匡級鏄劇ず鏃ョ嚎DIFD錛孌IF1綰匡紙綰㈣壊緇嗙嚎錛夋牴鎹鐭鏈熷畨鍏ㄤ俊鍙瘋皟鏁達紝DEA1綰匡紙緇胯壊綺楃嚎錛変唬琛―EAD綰匡紝DEA2綰匡紙钃濈傳鑹茬矖綰匡級鏍規嵁涓鏈熷畨鍏ㄤ俊鍙瘋皟鏁淬
閫氳繃榪欎簺鍏寮忓拰鍥懼艦錛屾姇璧勮呭彲浠ユ洿鍏ㄩ潰鍦拌В璇婚氳揪淇″懆鏈熷叡鎸疢ACD鎸囨爣錛屼粠鑰屽湪浜ゆ槗鍐崇瓥涓寰楀埌鏈夊姏鐨勬敮鎾戙傚姟蹇呯粨鍚堝競鍦哄疄闄呮儏鍐靛拰鍥捐〃璧板娍錛岀伒媧昏繍鐢ㄣ
㈤ 綺鵑夐氳揪淇¤蔣浠舵寚鏍囨洿鏂幫細鍓鍥--鈥滄垚浜ら噺鈥濓紙婧愮爜錛
鍦ㄩ氳揪淇¤蔣浠朵腑錛屾垚浜ら噺鍓鍥炬寚鏍囧逛簬鎶曡祫鑰呮潵璇存槸涓欏規瀬鍏蜂環鍊肩殑杈呭姪宸ュ叿銆備互涓嬫槸涓孌電簿閫夌殑婧愮爜錛岀敤浜庢瀯寤烘垚浜ら噺鐨勫姩鎬佸垎鏋:
VAR0: EMA(VOL, 20);
VAR1: VAR0 + 2 * STD(VOL, 10);
VAR2: VAR0 - 2 * STD(VOL, 10);
涓婅岄勮︾嚎: 褰揤AR1鍊奸珮浜庡墠涓浜ゆ槗鏃VAR1鐨勫兼椂錛孶PPER: STICKLINE(VAR1 > REF(VAR1, 1), VAR1, REF(VAR1, 1), 8, 0), COLORRED; 浼氫互綰㈣壊鏄劇ず錛屼負娼滃湪鐨勪笂鍗囪秼鍔挎彁渚涜嗚夋彁紺恆
涓嬭屼繚鎶ょ嚎: 綾諱技鍦幫紝VAR2鍊奸珮浜庡墠涓浜ゆ槗鏃ユ椂錛孡OWER: STICKLINE(VAR2 > REF(VAR2, 1), VAR2, REF(VAR2, 1), 8, 0), COLORRED; 浠ョ孩鑹叉爣璁板彲鑳界殑鍥炶皟鍖哄煙銆
鏇存繁鍏ョ殑瀹氬埗: 鎸囨爣C1鍒癈39錛屽侰1: (3 * EMA(VARA1, 寤舵湡)) / 3錛屽埌C39: EMA(VARA1, 40 + 43 + 46) / 3錛屽垎鍒鏄劇ず涓嶅悓鍛ㄦ湡鐨勭Щ鍔ㄥ鉤鍧囩嚎錛岀敤浠ユ崟鎹変笉鍚屾椂闂村昂搴︾殑瓚嬪娍鍙樺寲錛孡INETHICK3, COLOR0099FF 鍜 LINETHICK2, COLORBLUE 涓轟笉鍚岄滆壊鍜岀嚎鏉$矖緇嗗尯鍒嗐
榪欎簺瀹氬埗鍏寮忔棬鍦ㄥ府鍔╂姇璧勮呭湪澶嶆潅甯傚満鐜澧冧腑鍋氬嚭鏇存槑鏅虹殑鍐崇瓥銆傝鋒敞鎰忥紝姝ゆ簮鐮佷粎涓哄︿範鐮旂┒鐩鐨勮捐★紝闈炲晢涓氱敤閫錛屽苟涓斿彲鑳藉瓨鍦ㄤ竴浜涚紪鐮侀棶棰橈紝濡傞渶綰誇笅鍜ㄨ㈠勭悊錛岃鋒敞鏄庝富鍥99銆佸壇鍥1銆
閲嶈佹彁紺: 璇ユ寚鏍囨彁渚涚殑淇℃伅浠呬緵鍙傝冿紝鎵鏈夋姇璧勫喅絳栭渶鑷琛屽垽鏂錛岄庨櫓鑷鎷呫傜悊瑙e苟榪愮敤榪欎簺鎸囨爣鏃訛紝璇峰姟蹇呯粨鍚堟偍鐨勪釜浜轟氦鏄撶瓥鐣ュ拰甯傚満鍒嗘瀽銆
㈥ 通達信軟體的主圖和兩個副圖的指標源碼改為條件選股公式
把原碼拷貝過來就行了,把在條件選股公式里的指標的原碼全部拷貝到技術指標公式--其他公式。再命名,可以同名的
㈦ 閫氳揪淇℃寚鏍囧叕寮忓ぇ鍏
閫氳揪淇℃寚鏍囧叕寮忓ぇ鍏錛
1.銆愰氳揪淇°戜富鍔涙綔浼忥紙鍓鍥撅級-鎸囨爣鍏寮忔簮鐮
N:=14;
M:=156;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.15*AVEDEV(TYP,N));
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
涓誨姏娼滀紡涓:COUNT(MACD<0,10)=10,COLORRED,LINETHICK0;
STICKLINE(涓誨姏娼滀紡涓,0,MACD*30,8,0),COLORRED;
100,COLOR1C1C1C;
0,COLOR1C1C1C;
-100,COLOR1C1C1C;
-100,STICK,COLOR1C1C1C;
2.銆愰氳揪淇°戣祫閲戠洃鎺э紙涓誨姏鎾ゃ佷富鍔涙挙銆佽秼鍔跨嚎銆佹ˉ闀囧噯澶囩幇閲戱級-鎸囨爣鍏寮忔簮鐮
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;
涓誨姏鎾:IF(V4<=0,V4,0),COLORBLUE;
涓誨姏榪:IF(V4>=0,V4,0),COLORFF00FF;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
澶х洏璧勯噾榪涘満:IF(VB>=0,VB,0),COLORRED;
澶х洏璧勯噾鎾よ蛋:IF(VB<=0,VB,0),COLORGREEN;
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);
瓚嬪娍綰:EMA(V11,3);
V12:=(瓚嬪娍綰-REF(瓚嬪娍綰,1))/REF(瓚嬪娍綰,1)*100;
鍑嗗囩幇閲:STICKLINE(瓚嬪娍綰<=13,0,20,5,0),COLORCC9900;
AA:=(瓚嬪娍綰<=13)ANDFILTER((瓚嬪娍綰<=13),15);
DRAWTEXT(AA,30,'鍑嗗囩幇閲慭'),COLORCC9900;
涔板叆鑲$エ:STICKLINE(瓚嬪娍綰<=13ANDV12>13,0,50,5,0),COLOR0099FF;
BB:=(瓚嬪娍綰<=13ANDV12>13)ANDFILTER((瓚嬪娍綰<=13ANDV12>13),10);
DRAWTEXT(BB,60,'涔板叆娑蹭婦鑲$エ'),COLOR0099FF;
鍗栦復鐣:STICKLINE(瓚嬪娍綰>90AND瓚嬪娍綰>REF(瓚嬪娍綰,1),100,95,15,1),COLORFFFF00;
瑙侀《娓呬粨:FILTER(瓚嬪娍綰>90AND瓚嬪娍綰 DRAWTEXT(瑙侀《娓呬粨,90,'閫冮《'),COLORYELLOW; CC:=(瓚嬪娍綰>=90ANDV12)ANDFILTER((瓚嬪娍綰>=90ANDV12),10); STICKLINE(澶х洏璧勯噾榪涘満AND瓚嬪娍綰<13,0,30,10,0),COLORRED; STICKLINE(澶х洏璧勯噾鎾よ蛋AND瓚嬪娍綰>90,0,30,10,0),COLORGREEN; STICKLINE(涓誨姏榪汚ND瓚嬪娍綰<13,0,40,10,0),COLORFF00FF; STICKLINE(涓誨姏鎾AND瓚嬪娍綰>90,0,40,10,0),COLORBLUE; 3.閫氳揪淇″垎鏃朵拱鐐規寚鏍囧叕寮忋愪拱鍗栥佷富鍔涘樊銆佹暎鎴峰樊銆 A1:=(DVOL/C)/2,NODRAW;A2:=SUM(IF(A1>100ANDCLOSE>REF(CLOSE,1),A1,0),0);A3:=SUM(IF(A1>100AND