通达信指标,请问三条输出线粘合的通达信选股指标该怎么编写? 求高手编写一个通达信股票三均线粘合选股公式,谢谢!
\u901a\u8fbe\u4fe1\u7684\u4e09\u7ebf\u7c98\u5408\u7684\u6761\u4ef6\u9009\u80a1MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
A:=MAX(MAX(MA1,MA2),MA3);
B:=MIN(MIN(MA1,MA2),MA3);
D:=A/B;
XG:BETWEEN(D,0.99,1.01);
\u516c\u5f0f\u5df2\u6d4b\u8bd5\u901a\u8fc7\uff01
\u5e0c\u671b\u80fd\u591f\u5e2e\u52a9\u4f60\uff01
m1:=ma(c,n1);
m2:=ma(c,n2);
m3:=ma(c,n3);
a1:=max(max(m1,m2),m3);
a2:=min(min(m1,m2),m3);
b1:=(a1-a2)/a2*100;
xg:b1>=m1 and b1<=m2;
\u53c2\u6570N1\u3001N2\u3001N3\u3001M1\u3001M2\u9700\u8981\u5728\u53c2\u6570\u5217\u8868\u8fdb\u884c\u8bbe\u7f6e\u3002
M2:=MA(C,10);
M3:=MA(C,20);
上:=MAX(M1,MAX(M2,M3));
下:=MIN(M1,MIN(M2,M3));
三线粘合:LLV((上-下)/下*100,3)<1.5 ;
研究公式就别用通达信了,通达信在公式.预警.股票池自动交易方面不专业,连全推行情都没有,大智慧是最专业的。你这个问题,换大智慧后用它的股票池功能,包你不会后悔
由于指标比较多,我就用常用的均线指标编写了一个,内容如下:
N:=3;{可调,小选股多,大选股少,此值代表的是粘合周期}
M:=1;{可调,越小越粘合,但越小选股越少,此值代表的是粘合度}
A:=MA(C,5);
B:=MA(C,10);
D:=MA(C,20);
E:=HHV(MAX(MAX(A,B),D),N);
F:=LLV(MIN(MIN(A,B),D),N);
XG:(E-F)/F*100<M;
公式已测试通过!
希望能够帮助你!
用绝对值求得粘合ABS
输出线指什么线,很多指标都有三条线
绛旓細涓夌嚎绮樺悎:LLV((涓-涓)/涓*100,3)<1.5 ;
绛旓細MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);A:=MAX(MAX(MA1,MA2),MA3);B:=MIN(MIN(MA1,MA2),MA3);D:=A/B;XG:BETWEEN(D,0.99,1.01);鑲℃皯瑕侀夎偂鍙互鑷繁鏍规嵁K绾胯蛋鍔垮幓閫夛紝涔熷彲浠ユ牴鎹嚜宸辩殑瑕佹眰閫氳繃鍑芥暟璁捐鍑哄叕寮忔潵鎵惧埌鑷繁鎵瑕侀夌殑鑲★紝杩欎釜鍏紡鎴戜滑灏卞彨閫夎偂鍏紡銆傚亣...
绛旓細涓夌嚎绮樺悎:LLV((涓-涓)/涓*100,3) <0.5 AND M1>REF(M1,1);
绛旓細鍙鑲′环妯悜鐩樻暣鏃堕棿杈冮暱,澶氭潯鍧囩嚎灏变細鍑虹幇绮樺悎璧板娍,鍧囩嚎绮樺悎鍚戜笂鍙戞暎褰,閫氬父鎸涓夋潯鎴栦笁鏉′互涓婄殑鍧囩嚎绮樺悎鍦ㄤ竴璧,褰撹偂浠锋í鐩樻暣鐞嗘湯绔,鏂瑰悜閫夋嫨鍚戜笂鏃,鐭湡鍧囩嚎,涓湡鍧囩嚎,闀挎湡鍧囩嚎灏变細鍛堝澶存帓鍒楃殑鏂瑰紡鍚戜笂鍙戞暎,鏁呯О涔嬩负鍧囩嚎绮樺悎鍚戜笂鍙戞暎褰
绛旓細鏈嬪弸锛屼綘瑕佺殑鍏紡濡備笅锛屽彲浠ラ氳繃鐨勶細A5:=MA(C,5);A10:=MA(C,10);A20:=MA(C,20);AA:=MAX(MAX(A5,A10),A20);AAA:=MIN(MIN(A5,A10),A20);AAAA:=AA/AAA<1.1;BB:=COUNT(AAAA,12)=12;ZM:CAPITAL <5000000 AND BB;
绛旓細閫氳揪淇杞欢涓祴璇曢氳繃锛欰A:=REF(MA(C,30),1);BB:=REF(MA(C,60),1);CC:=MA(C,30);DD:=MA(C,60);AA=BB AND CC=DD AND AA=CC;
绛旓細VARA8:=MA(VAR98,2);VARB8:=BARSLAST(CROSS(-10,VARA8)=1);VARC8:=BARSLAST(CROSS(VARA8,10)=1);VARD8:=VARA8<-10 AND VARB8>3;榛勯噾鍧:=VARA8>10 AND VARC8>3;涓夌嚎绮樺悎:=LLV((涓-涓)/涓*100,3)<0.5 AND X1<20 AND X2<20 AND X3<20 AND 榛勯噾鍧;XG:AA OR 涓夌嚎绮樺悎;...
绛旓細C,5),MA(C,10)))/MIN(MA(C,5),MA(C,10)),0,0.2),1,0)AND C>O AND CROSS(C,MA(C,10))AND CROSS(C,MA(C,5))AND (C-MA(C,10))/MA(C,10)>0.03;鎵璋绮樺悎灏辨槸闈犵殑寰堣繎锛岀┒绔熷杩戞墠绠楄繎锛熶氦鍙変箣鍓嶉兘鍙互鍙仛绮樺悎銆備綘鑷繁鎰熻涓涓嬪惂 鎴戞劅瑙夊緢杩戜簡锛岃秺杩戜俊鍙峰氨瓒婂皯銆
绛旓細CONDTION_C:=(CONDTION_A-CONDTION_B)/CONDTION_B*100<=1;{杩欓噷鐨勬暟鍊1鍙互淇敼涓轰綘鐨勭粡楠屽硷紝琛ㄧず鏈澶у拰鏈灏忎袱鏉$嚎鐨勮窛绂粆 CONDTION:BARSLAST(CONDTION_C)<=5AND CROSS(AMOV,CONDTION_A);{杩欓噷鐨勬暟鍊5鍙互淇敼涓轰綘鐨勭粡楠屽硷紝琛ㄧず绮樺悎鏉′欢婊¤冻璺濈鐜板湪鐨勫懆鏈熸暟锛屽洜涓虹矘鍚堝拰閲戝弶寰堝皯鍚屾椂鍑虹幇銆佸ぇ...
绛旓細璇村叿浣撲竴鐐癸紝閭e嚑鏉$矘鍚堬紝涓闃冲悶閭e嚑鏉★紵M1:=MA(C,5);M2:=MA(C,10);M3:=MA(C,20);H1:=MAX(MAX(M1,M2),M3);L1:=MIN(MIN(M1,M2),M3);涓闃崇┛涓夌嚎:H1<C AND O<L1;