通信达公式怎么用 通达信高低线主图基本公式源码
Hjx:=EMA(H,6);
Ljx:=EMA(L,6);YSH:=(EMA(Hjx+SLOPE(Hjx,4),4)+EMA(Hjx+SLOPE(Hjx,6),6)+EMA(Hjx+SLOPE(Hjx,8),8)+EMA(Hjx+SLOPE(Hjx,10),10)+EMA(Hjx+SLOPE(Hjx,12),12)+EMA(Hjx+SLOPE(Hjx,14),14))/6;
YHH:REF((HHV(YSH,24)+HHV(YSH,36)+HHV(YSH,48)+HHV(YSH,60)+HHV(YSH,72)+HHV(YSH,84))/6,1);
XSH:=(EMA(Hjx+SLOPE(Hjx,8),8)+EMA(Hjx+SLOPE(Hjx,12),12)+EMA(Hjx+SLOPE(Hjx,16),16)+EMA(Hjx+SLOPE(Hjx,20),20)+EMA(Hjx+SLOPE(Hjx,24),24)+EMA(Hjx+SLOPE(Hjx,28),28))/6;
XHH:REF((HHV(XSH,48)+HHV(XSH,72)+HHV(XSH,96)+HHV(XSH,120)+HHV(XSH,144)+HHV(XSH,168))/6,1);
SH:=(EMA(Hjx+SLOPE(Hjx,16),16)+EMA(Hjx+SLOPE(Hjx,24),24)+EMA(Hjx+SLOPE(Hjx,32),32)+EMA(Hjx+SLOPE(Hjx,40),40)+EMA(Hjx+SLOPE(Hjx,48),48)+EMA(Hjx+SLOPE(Hjx,56),56))/6;
HH:REF((HHV(SH,96)+HHV(SH,144)+HHV(SH,192)+HHV(SH,240)+HHV(SH,288)+HHV(SH,336))/6,1);
DSH:=(EMA(Hjx+SLOPE(Hjx,32),32)+EMA(Hjx+SLOPE(Hjx,48),48)+EMA(Hjx+SLOPE(Hjx,64),64)+EMA(Hjx+SLOPE(Hjx,80),80)+EMA(Hjx+SLOPE(Hjx,96),96)+EMA(Hjx+SLOPE(Hjx,112),112))/6;
DHH:REF((HHV(DSH,192)+HHV(DSH,288)+HHV(DSH,384)+HHV(DSH,480)+HHV(DSH,576)+HHV(DSH,672))/6,1);
YSL:=(EMA(Ljx+SLOPE(Ljx,4),4)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