通达信指标公式源码 中长线买卖点主图指标

SJ:=IF(DATE+19000000<20191128,1,0); X1:=EMA(CLOSE,8)*SJ,COLORWHITE; X3:=EMA(X1,16)*SJ,COLORRED; B:=B

SJ:=IF(DATE+19000000&lt;20191128,1,0); X1:=EMA(CLOSE,8)*SJ,COLORWHITE; X3:=EMA(X1,16)*SJ,COLORRED; B:=BARSLAST(DAY&lt;&gt;REF(DAY,1))+1; VAR2:=(CLOSE+HIGH+LOW)/3; VAR3:=EMA(VAR2,10); VAR4:=REF(VAR3,1); STICKLINE(VAR3*SJ&gt;VAR4,VAR3,VAR4,2 ,0),COLORRED; STICKLINE(VAR3&lt; VAR4*SJ,VAR3,VAR4,2,0), COLORGREEN; W:=BARSLAST(DATE&lt;&gt;REF(DATE,1)); OO:=REF(OPEN,W); HX:=HHV(HIGH,3); LX:=LLV(LOW,3); H1:=IF(HX&lt;REF(HX,1)&amp;&amp;HX&lt;REF(HX,2)&amp;&amp;HX&lt;REF(HX,4)&amp;&amp;LX&lt;REF(LX,1)&amp; &amp;LX&lt;REF(LX,3)&amp;&amp;LX&lt;REF(LX,5)&amp;&amp;OPEN&gt;CLOSE&amp;&amp;(HHV(OPEN,0)-CLOSE)&gt; 0,REF(HX,4),0); L1:=IF(LX&gt;REF(LX,1)&amp;&amp;LX&gt;REF(LX,3)&amp;&amp;LX&gt;REF(LX,5)&amp;&amp;HX&gt;REF(HX,1)&amp;&amp; HX&gt;REF(HX,2)&amp;&amp;HX&gt;REF(HX,4)&amp;&amp;OPEN&lt;CLOSE&amp;&amp;(CLOSE-LLV(OPEN,0))&gt;0 ,REF(LX,4),0); H2:=VALUEWHEN(H1&gt;0,H1); L2:=VALUEWHEN(L1&gt;0,L1); K111:=IF(CLOSE&gt;H2,-3,IF(CLOSE&lt;L2,1,0)); K222:=VALUEWHEN(K111&lt;&gt;0,K111); TMP:=K222; MA55:=MA(CLOSE,55); DRAWTEXT(CROSS(TMP*SJ,0) ,HX,''),COLORGREEN; 卖空 DRAWTEXT(CROSS(0,TMP*SJ),LX,')'),COLORRED; 买多

腾讯文库通达信指标公式源码