ihzx 发表于 2021-8-21 14:05:20

潜龙勿用公式(大智慧)(飞狐用)

<p>{潜龙勿用大智慧}<br />
input:N1(21,1,100),N2(34,1,100),M1(25,1,100),N(20,0,999);<br />
底部:5,LINETHICK0,COLOR00FFFF;<br />
趋势:5*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1);<br />
抄底:CROSS(趋势,底部);<br />
A1:=C/MA(C,40)*100;<br />
A2:=C/MA(C,60)*100;<br />
A3:=H&gt;L*1.051;<br />
A4:=A3 AND COUNT(A3,5)&gt;1;<br />
A5:=A4 AND (A1&lt;76 OR A2&lt;74) AND ABS(C-O)&gt;0.1*0.1*REF(C,1);<br />
伏击:-76,COLOR00FFFF,LINETHICK0;<br />
铁底:-74,COLORRED,LINETHICK0;<br />
A6:=IF(A1&gt;90,90,A1);<br />
A7:=IF(A2&gt;90,90,A2);<br />
VAR1:=(((CLOSE - MA(CLOSE,N1)) / STD(CLOSE,N1)) * 100);<br />
VAR2:=EMA(VAR1,5);<br />
VAR3:=EMA(VAR2,5);<br />
VAR4:=(((MA(CLOSE,N2) - CLOSE) / MA(CLOSE,N2)) * 100);<br />
龙:=IF(CROSS(VAR2,VAR3) AND REF(VAR4,1) &gt; M1 AND CLOSE &gt; REF(CLOSE,1),100,0);<br />
APP:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));<br />
ASUPLY:=IF(CLOSE&gt;OPEN,APP*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE&lt;OPEN,APP*(HIGH-LOW),VOL/2));<br />
ADEMAND:=IF(CLOSE&gt;OPEN,APP*(HIGH-LOW),IF(CLOSE&lt;OPEN,APP*(HIGH-OPEN+CLOSE-LOW),VOL/2));<br />
RDEMAND:=IF(CLOSE&gt;OPEN,APP*(CLOSE-OPEN),0);<br />
RSUPLY:=IF(CLOSE&lt;OPEN,APP*(OPEN-CLOSE),0);<br />
RSDC:SUM(RDEMAND,N)/(SUM(RSUPLY,N)+SUM(RDEMAND,N))*100,POINTDOT,LINETHICK3,colorred;<br />
ASDC:SUM(ADEMAND,N)/(SUM(ASUPLY,N)+SUM(ADEMAND,N))*100,POINTDOT,LINETHICK0;<br />
80,POINTDOT,LINETHICK2;<br />
20,POINTDOT,LINETHICK2;<br />
STICKLINE(CROSS(rsdc,20),0,120,22,1),colorred;<br />
DRAWICON(A5 and 趋势&lt;底部 and rsdc&lt;=22 or 龙=100,底部,7),ALIGN1;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>{飞狐用潜龙勿用}<br />
input:N1(21,1,100),N2(34,1,100),M1(25,1,100),N(20,0,999);<br />
底部:5,LINETHICK0,COLOR00FFFF;<br />
趋势:5*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1);<br />
抄底:CROSS(趋势,底部);<br />
DRAWTEXTEX(趋势&lt;底部,1,500,900,'勿用乃用,是小心谨慎,无不利。')colorred;<br />
A1:=C/MA(C,40)*100,LINETHICK0;<br />
A2:=C/MA(C,60)*100,LINETHICK0;<br />
A3:=H&gt;L*1.051;<br />
A4:=A3 AND COUNT(A3,5)&gt;1;<br />
A5:=A4 AND (A1&lt;76 OR A2&lt;74) AND ABS(C-O)&gt;0.1*0.1*REF(C,1);<br />
伏击:-76,COLOR00FFFF,PRECISION0,LINETHICK0;<br />
铁底:-74,COLORRED,PRECISION0,LINETHICK0;<br />
A6:=IF(A1&gt;90,90,A1);<br />
A7:=IF(A2&gt;90,90,A2);<br />
VAR1:=(((CLOSE - MA(CLOSE,N1)) / STD(CLOSE,N1)) * 100);<br />
VAR2:=EMA(VAR1,5);<br />
VAR3:=EMA(VAR2,5);<br />
VAR4:=(((MA(CLOSE,N2) - CLOSE) / MA(CLOSE,N2)) * 100);<br />
龙:=IF(CROSS(VAR2,VAR3) AND REF(VAR4,1) &gt; M1 AND CLOSE &gt; REF(CLOSE,1),100,0);<br />
APP:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));<br />
ASUPLY:=IF(CLOSE&gt;OPEN,APP*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE&lt;OPEN,APP*(HIGH-LOW),VOL/2));<br />
ADEMAND:=IF(CLOSE&gt;OPEN,APP*(HIGH-LOW),IF(CLOSE&lt;OPEN,APP*(HIGH-OPEN+CLOSE-LOW),VOL/2));<br />
RDEMAND:=IF(CLOSE&gt;OPEN,APP*(CLOSE-OPEN),0);<br />
RSUPLY:=IF(CLOSE&lt;OPEN,APP*(OPEN-CLOSE),0);<br />
RSDC:SUM(RDEMAND,N)/(SUM(RSUPLY,N)+SUM(RDEMAND,N))*100,POINTDOT,LINETHICK3,coloryellow;<br />
ASDC:SUM(ADEMAND,N)/(SUM(ASUPLY,N)+SUM(ADEMAND,N))*100,POINTDOT,LINETHICK0;<br />
80,POINTDOT,LINETHICK1;<br />
20,POINTDOT,LINETHICK1;<br />
STICKLINE(CROSS(rsdc,20),0,60,8,1)colorred;<br />
DRAWICON(A5 and 趋势&lt;底部 and rsdc&lt;=22 or 龙=100,底部,4),PXDN9;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 潜龙勿用公式(大智慧)(飞狐用)