通达信指标编写教学(五十八)获取集合竞价成交量
鈥嶇偣鍑诲叧娉ㄢ槤锛岀疆椤+鏄熸爣姣忓ぉ璁㈤槄锛屽涔犳洿澶氭寚鏍囧唴瀹光樇鈽濃嶁
閫氳揪淇℃寚鏍囩紪鍐欐暀瀛﹁棰戯細
瑙嗛浠g爜濡備笅:
閲戦:=DYNAINFO(15);鑲℃暟:=閲戦/O;鎵嬫暟:鑲℃暟/100;
鏇村鏁欏瑙嗛锛岀偣鍑诲叧娉ㄨ棰戝彿銆傘傘傛壂鐮佷笅鏂逛簩缁寸爜鑱旂郴浣滆
閫氳揪淇℃寚鏍囩紪鍐欏熀纭鐭ヨ瘑锛堜笁锛
璺ㄥ懆鏈熷紩鐢ㄧ殑瑙勫垯
鐢ㄦ硶锛氣滄寚鏍囧悕绉 . 璇彞鍚嶇О # 鍛ㄦ湡鈥濓紙鍙傛暟锛夛紱
AA:"MACD.DIF#DAY"; #WEEK 鍛ㄧ嚎
CC:"MACD.DEA#DAY";
DD:"MACD.MACD#DAY";
AA:"KDJ.K#DAY"(9.3.3);
杩愮畻鐨勮娉曡鍒
鐢ㄦ硶锛氱鍚堝姞鍑忎箻闄ょ殑杩愮畻瑙勫垯
AA: (C+L)/2; BB: C+L/2;
甯歌寮曠敤鏍囩殑
鐢ㄦ硶锛氬紩鍙+鑲$エ浠g爜+$ +寮曠敤鏁版嵁锛
AA:鈥002129$CLOSE鈥;
鐜板湪璇村彟涓绉嶅父鐨勬寚鏍 MACD锛岃繖閲屽笇鏈涜兘鈥滀互鍋忕洊鍏ㄢ濓紝璇曞浘閫氳繃瑙i噴 MACD 鐨勭紪杈戞柟娉曪紝浣垮ぇ瀹堕兘鏄庣櫧鍏朵綑鍚勭鎸囨爣鐨勭紪杈戯紝鍥犱负鎸囨爣瀹炲湪澶浜嗭紝涓嶅彲鑳介愪竴鍘昏锛屽笇鏈涜兘鐞嗚В銆
杩欐槸涓涓櫘閫氱殑 MACD 鍥撅紝鍥句腑鍙湅鍒板嚑涓绱狅紝 涓婄┛锛堥噾鍙夛級銆佷笅绌匡紙姝诲弶锛夈乆X 鍦 鍦 XX 涔嬩笂銆乆X 鍦 鍦 XX 涔嬩笅銆乆X 浣嶄簬寮哄娍鍖猴紙0 杞翠互涓婏級銆乆X 浣 浣嶄簬寮卞娍鍖猴紙0 杞翠互涓嬶級銆
鍐嶇粏鐪嬩竴涓嬶紝榛勭櫧涓ょ嚎褰㈡垚鍙夈佽皝姣旇皝澶с佸湪浠涔堝尯鍩熻繖浜涢棶棰樸傝岀湅宸︿笂瑙掞紝
鎴戜滑鐭ラ亾浜 MACD 鏄敱 DIF銆丏EA銆丮ACD 缁勬垚銆
濡傛灉鎴戜滑鎯冲仛 閲戝弶 灏辨槸 鐧界嚎涓婄┛榛勭嚎 涔熷氨鏄 DIF 涓婄┛ DEA
杩欓噷璇翠竴涓皬绐嶉棬
褰撲綘鍦ㄥ叕寮忕紪杈戝紡涓緭鍏 MACD. 鍚庯紝浼氬嚭鐜 MACD 鐨勬寚鏍囩殑鎵鏈夋瀯鎴愶紝浣犲湪涓婇潰閫夊氨寰椾簡锛岃繖涓柟娉曞鍏朵粬鎸囨爣涔熸槸鏈夌敤鐨勩傛墍浠ワ紝
MACD 閲戝弶 鎸囨爣灏辨槸 CROSS(MACD.DIF,MACD.DEA);
MACD 姝诲弶 鎸囨爣灏辨槸 CROSS(MACD.DEA,MACD.DIF);
鐧界嚎楂樹簬榛勭嚎 鎸囨爣灏辨槸 MACD.DIF>MACD.DEA;
榛勭嚎楂樹簬鐧界嚎 鎸囨爣灏辨槸 MACD.DEA>MACD.DIF;
寰堢畝鍗曪紝瀵逛笉瀵癸紝鐪嬬潃 MACD 鐨勫浘锛岀収鐫浣犳兂瑕佺殑锛屽氨鑳藉仛鍑恒
濂戒簡锛岀幇鍦ㄥ仛涓鍋 MACD 姘翠笂閲戝弶
鈥滄按涓婇噾鍙夆濓紝灏辨槸鎸 MACD 鍦 0 杞翠笂閲戝弶锛岃瀵熶竴涓嬶紝灏辨槸鐧介粍涓ょ嚎鍦 0 杞翠笂閲戝弶
鎸囨爣灏辨槸
MACD.DEA>0 AND MACD.DIF>0 AND CROSS(MACD.DIF,MACD.DEA);
鑷充簬鍏朵粬鎸囨爣锛屽師鐞嗕篃鏄浉閫氱殑锛屽湪杩欓噷锛屾垜鎯冲伔涓涓嬫噿锛屼氦缁欎綘鍘昏瘯璇曘
END
閫氳揪淇℃寚鏍囩紪鍐欐暀瀛﹁棰戯細
瑙嗛浠g爜濡備笅:
閲戦:=DYNAINFO(15);鑲℃暟:=閲戦/O;鎵嬫暟:鑲℃暟/100;
鏇村鏁欏瑙嗛锛岀偣鍑诲叧娉ㄨ棰戝彿銆傘傘傛壂鐮佷笅鏂逛簩缁寸爜鑱旂郴浣滆
閫氳揪淇℃寚鏍囩紪鍐欏熀纭鐭ヨ瘑锛堜笁锛
璺ㄥ懆鏈熷紩鐢ㄧ殑瑙勫垯
鐢ㄦ硶锛氣滄寚鏍囧悕绉 . 璇彞鍚嶇О # 鍛ㄦ湡鈥濓紙鍙傛暟锛夛紱
AA:"MACD.DIF#DAY"; #WEEK 鍛ㄧ嚎
CC:"MACD.DEA#DAY";
DD:"MACD.MACD#DAY";
AA:"KDJ.K#DAY"(9.3.3);
杩愮畻鐨勮娉曡鍒
鐢ㄦ硶锛氱鍚堝姞鍑忎箻闄ょ殑杩愮畻瑙勫垯
AA: (C+L)/2; BB: C+L/2;
甯歌寮曠敤鏍囩殑
鐢ㄦ硶锛氬紩鍙+鑲$エ浠g爜+$ +寮曠敤鏁版嵁锛
AA:鈥002129$CLOSE鈥;
鐜板湪璇村彟涓绉嶅父鐨勬寚鏍 MACD锛岃繖閲屽笇鏈涜兘鈥滀互鍋忕洊鍏ㄢ濓紝璇曞浘閫氳繃瑙i噴 MACD 鐨勭紪杈戞柟娉曪紝浣垮ぇ瀹堕兘鏄庣櫧鍏朵綑鍚勭鎸囨爣鐨勭紪杈戯紝鍥犱负鎸囨爣瀹炲湪澶浜嗭紝涓嶅彲鑳介愪竴鍘昏锛屽笇鏈涜兘鐞嗚В銆
杩欐槸涓涓櫘閫氱殑 MACD 鍥撅紝鍥句腑鍙湅鍒板嚑涓绱狅紝 涓婄┛锛堥噾鍙夛級銆佷笅绌匡紙姝诲弶锛夈乆X 鍦 鍦 XX 涔嬩笂銆乆X 鍦 鍦 XX 涔嬩笅銆乆X 浣嶄簬寮哄娍鍖猴紙0 杞翠互涓婏級銆乆X 浣 浣嶄簬寮卞娍鍖猴紙0 杞翠互涓嬶級銆
鍐嶇粏鐪嬩竴涓嬶紝榛勭櫧涓ょ嚎褰㈡垚鍙夈佽皝姣旇皝澶с佸湪浠涔堝尯鍩熻繖浜涢棶棰樸傝岀湅宸︿笂瑙掞紝
鎴戜滑鐭ラ亾浜 MACD 鏄敱 DIF銆丏EA銆丮ACD 缁勬垚銆
濡傛灉鎴戜滑鎯冲仛 閲戝弶 灏辨槸 鐧界嚎涓婄┛榛勭嚎 涔熷氨鏄 DIF 涓婄┛ DEA
杩欓噷璇翠竴涓皬绐嶉棬
褰撲綘鍦ㄥ叕寮忕紪杈戝紡涓緭鍏 MACD. 鍚庯紝浼氬嚭鐜 MACD 鐨勬寚鏍囩殑鎵鏈夋瀯鎴愶紝浣犲湪涓婇潰閫夊氨寰椾簡锛岃繖涓柟娉曞鍏朵粬鎸囨爣涔熸槸鏈夌敤鐨勩傛墍浠ワ紝
MACD 閲戝弶 鎸囨爣灏辨槸 CROSS(MACD.DIF,MACD.DEA);
MACD 姝诲弶 鎸囨爣灏辨槸 CROSS(MACD.DEA,MACD.DIF);
鐧界嚎楂樹簬榛勭嚎 鎸囨爣灏辨槸 MACD.DIF>MACD.DEA;
榛勭嚎楂樹簬鐧界嚎 鎸囨爣灏辨槸 MACD.DEA>MACD.DIF;
寰堢畝鍗曪紝瀵逛笉瀵癸紝鐪嬬潃 MACD 鐨勫浘锛岀収鐫浣犳兂瑕佺殑锛屽氨鑳藉仛鍑恒
濂戒簡锛岀幇鍦ㄥ仛涓鍋 MACD 姘翠笂閲戝弶
鈥滄按涓婇噾鍙夆濓紝灏辨槸鎸 MACD 鍦 0 杞翠笂閲戝弶锛岃瀵熶竴涓嬶紝灏辨槸鐧介粍涓ょ嚎鍦 0 杞翠笂閲戝弶
鎸囨爣灏辨槸
MACD.DEA>0 AND MACD.DIF>0 AND CROSS(MACD.DIF,MACD.DEA);
鑷充簬鍏朵粬鎸囨爣锛屽師鐞嗕篃鏄浉閫氱殑锛屽湪杩欓噷锛屾垜鎯冲伔涓涓嬫噿锛屼氦缁欎綘鍘昏瘯璇曘
END