通达信指标编写教学:K线形态编写合集(七)
鐐瑰嚮鍏虫敞鈽濓紝缃《+鏄熸爣姣忓ぉ璁㈤槄锛屽涔犳洿澶氭寚鏍囧唴瀹光樇鈽
鏇村鏁欏瑙嗛锛岀偣鍑诲叧娉ㄨ棰戝彿銆傘傘傛壂鐮佷笅鏂逛簩缁寸爜鑱旂郴浣滆
閫氳揪淇℃寚鏍囩紪鍐-鍩烘湰璇硶娉曞垯
H锛氭渶楂樹环 HIGH; L:鏈浣庝环 LOW; O:寮鐩樹环OPEN;
C:鏀剁洏浠 CLOSE; V:鎴愪氦閲 VOL; AMO:鎴愪氦棰 AMOUNT;
1銆佽鍙ヨ嫳鏂囨牸寮忥細璇彞鍚嶇О+鈥滐細鈥 + 鈥滃嚱鏁扳+ 鈥滃垎鍙封濄
2銆佸睆钄借緭鍑鸿鍦ㄥ悗闈㈠姞涓娾=鈥濄
3銆佸啋鍙峰拰绛変簬鍙蜂箣闂翠笉鑳芥湁绌烘牸銆
4銆佽鍙ュ悕绉颁笉鑳界敤绯荤粺淇濈暀瀛楋細濡備笉鑳界敤C锛屽洜涓篊鏄敹鐩樹环
5銆佸悇璇彞涔嬮棿鐨勫悕绉颁笉鑳介噸澶嶃
6銆佸嚱鏁扮殑鎷彿瑕佸绉帮紝閲岄潰涓嶈兘娌℃湁閫楀彿銆
7銆佹瘡鏉¤鍙ョ敤鍒扮殑鍙橀噺閮借鏈夎绠椾緷鎹細
AA:=C; BB: MA(AA,10);
甯哥敤鍑芥暟
1銆丆ross鐢ㄦ硶: 浜ゅ弶绀轰緥锛欰A:=MA(C,5); {浜旀棩鍧囩嚎}BB:=MA(C,10); {10鏃ュ潎绾縸Cross(AA,BB); {閲戝弶}Cross(BB,AA); {姝诲弶}
2銆丷ef鐢ㄦ硶锛歊ef(A,B) 鍙栧緱B鍛ㄦ湡鍓嶇殑A鍊肩ず渚嬶細AA:Ref(H, 1); 杩斿洖鏄ㄥぉ鏈楂樹环BB:Ref(C, 2);Ref(ma(C,10), 1);娑ㄥ仠鏉匡細C/ref (c, 1)>=1.1;澶ч槼绾匡細C/ref(c, 1)>1.05;
3銆乨rawicon鐢ㄦ硶锛歞rawicon (A,B,N鍙峰浘鏍)锛汵鐨勫彇鍊艰寖鍥1-24, 浠ヤ笅鏄氳揪淇″叕寮忓浘鏍 缂栧彿涓瑙堢ず渚嬶細AA:=ma(c,5);BB:=MA(C,10);Drawicon(cross(aa,bb),h,1);
4銆乨rawtext鐢ㄦ硶锛欴rawtext(A,B,鈥欐枃瀛椻)锛涘鏋淎鏉′欢鎴愮珛锛屽湪B浣嶇疆鍐欎笂鎸囧畾鏂囧瓧銆傜ず渚嬶細AA:MA(C,5)锛汢B:MA(C,10);CC:=CROSS(AA,BB);DD: DRAWTEXT(CC,BB*0.89,鈥欓噾鍙夆);
5銆丠HV銆丩LV鐢ㄦ硶HHV(A,B);鍙栧緱B鍛ㄦ湡鍐匒鐨勬渶澶у糒LV(A,B);鍙栧緱B鍛ㄦ湡鍐匒鐨勬渶灏忓肩ず渚嬶細AA:=HHV(H,5);BB:=LLV(L,5);CC:=AA / BB> 1.3;DD:=H/REF(C,5)E>1.3;
6銆丆OUNT鐢ㄦ硶COUNT(A,B): B澶╁唴A鏉′欢鎴愮珛鐨勬鏁扮ず渚嬶細AA:=C>0;BB:COUNT(AA,10)>=1; 鍗佸ぉ鍐呮定鍋滅殑鑲$エ
7銆両F鍑芥暟鐢ㄦ硶IF锛圓,B,C锛;濡傛灉A鏉′欢鎴愮珛锛屽垯鏄剧ずB锛屽惁鍒欐樉绀篊绀轰緥锛氬潎绾垮彉鑹睞A:MA(C,20);BB:MA(C,10);IF (AA>REF(AA,1),AA,DRAWNULL;
8銆丒VERY 鍑芥暟鐢ㄦ硶EVERY(A,B): A 鏉′欢鎴愮珛锛岃繛缁瑽鍛ㄦ湡鎴愮珛銆傜ず渚嬶細AA:=MA(C,60); 鎻忚堪鎬ц鍙B:=AA>REF(AA,1); 閫昏緫鎬ц鍙ワ細鎴愮珛=1锛屼笉鎴愮珛=0CC:EVERY(BB,10);
9銆丯OT 鍑芥暟鐢ㄦ硶NOT (A); A鏉′欢涓嶆垚绔嬬ず渚嬶細AA:=MA(60);BB:=AA>REF(AA,1);CC:BB AND NOT(REF(BB,1));
10銆丮AX, MIN 鍑芥暟鐢ㄦ硶MAX(A,B); 鍙朅銆丅鐨勬渶澶у糓IN锛圓,B锛;鍙朅銆丅閲岀殑杈冨皬鍊肩ず渚嬶細AA:=H 鈥 MAX(C,O);BB:=MIN(C,O) 鈥 L;CC:AA/BB>3 ;
11銆丼UM鍑芥暟鐢ㄦ硶SUM(A,B); 鎶夿鍛ㄦ湡鍐呯殑A锛岀疮鍔犲湪涓璧风ず渚嬶細AA:=SUM(C,5);BB:AA/5 ;
12銆丄BS鐢ㄦ硶ABS(A); 鍙朅鐨勭粷瀵瑰肩ず渚嬶細ABS(-5)=5;ABS(5)=5;鏃ュ唴娉㈠姩锛欰BS(C-O);鍗佹棩娉㈠姩锛歋UM(ABS(C-O),10);
13銆丅ARSLAST鐢ㄦ硶BARSLAST(A); A鏉′欢鎴愮珛鍒颁粖澶╃殑鍛ㄦ湡鏁扮ず渚嬶細AA:=C/REF(C,1)>1.098;BB:BARSLAST(AA);
璺ㄥ懆鏈熷紩鐢ㄧ殑瑙勫垯
鐢ㄦ硶锛氣滄寚鏍囧悕绉 . 璇彞鍚嶇О # 鍛ㄦ湡鈥濓紙鍙傛暟锛夛紱
AA:"MACD.DIF#DAY"; #WEEK 鍛ㄧ嚎
CC:"MACD.DEA#DAY";
DD:"MACD.MACD#DAY";
AA:"KDJ.K#DAY"(9.3.3);
甯歌寮曠敤鏍囩殑
鐢ㄦ硶锛氬紩鍙+鑲$エ浠g爜+$ +寮曠敤鏁版嵁锛
AA:鈥002129$CLOSE鈥;
END