ihzx 发表于 2021-8-21 14:01:41

大智慧上涨之星指标公式

<p>VAR1:=&quot;DMI.PDI&quot;(12,6);<br />
VAR2:=&quot;DMI.MDI&quot;(12,6);<br />
VAR3:=VAR1&gt;65 AND VAR1&gt;REF(VAR1,1);<br />
VAR4:=LLV(VAR1,0);<br />
VAR5:=BARSLAST(VAR4=VAR1);<br />
VAR6:=(0-REF(VAR2,4))/(VAR4-REF(VAR2,VAR5))&gt;2;<br />
VAR7:=VAR1&gt;REF(VAR1,1);<br />
VAR8:=VOL&gt;2*MA(VOL,30);<br />
VAR9:=&quot;DMI.ADX&quot;(12,6);<br />
VARA:=&quot;DMI.ADXR&quot;(12,6);<br />
VARB:=CLOSE&gt;MA(CLOSE,30) AND CLOSE&lt;MA(CLOSE,30)*1.04;<br />
VARC:=MA(CLOSE,30)&gt;REF(MA(CLOSE,30),1);<br />
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))&lt;BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));<br />
VARE:=0-&quot;MACD.DIFF&quot;(7,21,3);<br />
VARF:=TROUGHBARS(3,15,1)&lt;4;<br />
VAR10:=EMA(CLOSE,30)&gt;REF(EMA(CLOSE,30),2);<br />
VAR11:=IF(VARF=1,50,0);<br />
VAR12:=CROSS(VAR2,VAR1) AND CROSS(VARA,VAR9);<br />
VAR13:=CROSS(VAR2,VAR1) AND CROSS(VAR9,VARA);<br />
VAR14:=VARB AND VARC AND VARD AND VAR10 AND VAR6 AND VAR7 AND VAR8*50;<br />
VAR15:=BARSLAST(CROSS(VAR2,VAR1)=1);<br />
VAR16:=BARSLAST(CROSS(VAR1,VAR2)=1);<br />
VAR17:=HHV(VAR1,VAR16);<br />
VAR18:=BARSLAST(VAR1=VAR17);<br />
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW) /4,30)*100,3),COLORWHITE;<br />
0,COLORRED;<br />
STICKLINE(FILTER(VARF=1,5) AND 多空&lt;-10,50,0,15,0),colorf00ff0;<br />
STICKLINE(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW;<br />
VAR19:=VAR3 OR VAR12 OR VAR13*100;<br />
VAR1A:=VAR13*100;<br />
DRAWTEXT(FILTER(VARF=1,3),25,'上涨★之星'),COLORRED;<br />
STICKLINE(多空&lt;-10,0,多空,0.85,0),COLORyellow;<br />
STICKLINE(多空&gt;10,0,多空,0.95,0),COLORRED;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧上涨之星指标公式