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

大智慧自创K线王指标公式

<p>HHV(MA(H,13),13),colorred,LINETHICK1;<br />
MA3:MA(CLOSE,3),colorffffff,LINETHICK0;<br />
MA7:MA(CLOSE,7),colorYELLOW,LINETHICK0;<br />
MA13:MA(CLOSE,13),COLORFF00FF,LINETHICK0;<br />
MA26:eMA(CLOSE,26),COLORGREEN,LINETHICK0;<br />
MA80:MA(CLOSE,80),POINTDOT,COLORyellow,LINETHICK0;<br />
MA140:MA(c,140),POINTDOT,colorFF00FF,linethick0;<br />
MA280:MA(c,280),POINTDOT,colorFFFF00,linethick0;<br />
MA560:MA(c,560),POINTDOT,colorred,linethick1;<br />
{k线}<br />
买线:=EMA(C,2);<br />
卖线:=EMA(SLOPE(C,21)*20+C,42);<br />
中:(MA(CLOSE,30)+MA(C,72))/2,color999999,LINETHICK0;<br />
HLY1:中*1.1,POINTDOT,COLOR999999,LINETHICK0;<br />
Var61:=(CLOSE*2+HIGH+LOW)/4;<br />
Var62:=EMA(Var61,3);<br />
Var63:=EMA(Var62,6);<br />
L1: EMA(Var61,3),LINETHICK0;<br />
L2: EMA(Var62,4),LINETHICK0;<br />
L3: EMA(Var63,5),LINETHICK0;<br />
{正常上涨}<br />
STICKLINE(CLOSE&gt;OPEN,OPEN,LOW,0.5,0 ),COLOR0000ff;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,HIGH,0.5,0 ),COLOR0000ff;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,OPEN,8,0) ,COLOR000077;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,OPEN,7,0) ,COLOR000099;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,OPEN,6,0) ,COLOR0000bb;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,OPEN,5,0) ,COLOR0000cc;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,OPEN,4,0) ,COLOR0000dd;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,OPEN,3,0) ,COLOR0000ee;<br />
STICKLINE(CLOSE&gt;OPEN,CLOSE,OPEN,2,0) ,COLOR0000ff;<br />
{正常下跌}<br />
STICKLINE(OPEN&gt;=CLOSE,CLOSE,LOW,0.5,0 ),COLORffFF00;<br />
STICKLINE(OPEN&gt;=CLOSE,OPEN,HIGH,0.5,0 ),COLORffff00;<br />
STICKLINE(OPEN&gt;=CLOSE ,CLOSE ,OPEN,8,0 ),COLORff7700;<br />
STICKLINE(OPEN&gt;=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff9900;<br />
STICKLINE(OPEN&gt;=CLOSE ,CLOSE ,OPEN,6,0 ),COLORffbb00;<br />
STICKLINE(OPEN&gt;=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffcc00;<br />
STICKLINE(OPEN&gt;=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffdd00;<br />
STICKLINE(OPEN&gt;=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffee00;<br />
STICKLINE(OPEN&gt;=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffFF00;<br />
{整理下跌区}<br />
STICKLINE(L1&lt;L2,CLOSE,LOW,0.5 ,0 ),COLORffff00;<br />
STICKLINE(L1&lt;L2,OPEN,HIGH,0.5 ,0 ),COLORffff00;<br />
STICKLINE(L1&lt;L2,CLOSE ,OPEN,8,0 ),COLORff7700;<br />
STICKLINE(L1&lt;L2 ,CLOSE ,OPEN,7,0 ),COLORff9900;<br />
STICKLINE(L1&lt;L2 ,CLOSE ,OPEN,6,0 ),COLORffbb00;<br />
STICKLINE(L1&lt;L2,CLOSE ,OPEN,5,0 ),COLORffcc00;<br />
STICKLINE(L1&lt;L2 ,CLOSE ,OPEN,4,0 ),COLORffdd00;<br />
STICKLINE(L1&lt;L2 ,CLOSE ,OPEN,3,0 ),COLORffee00;<br />
STICKLINE(L1&lt;L2 ,CLOSE ,OPEN,2,0 ),COLORffFF00;<br />
{下跌开始}<br />
Var44:=REF(L1,1)&gt;L1 AND L1&gt;L2;<br />
STICKLINE(Var44,OPEN,LOW,0.5,0 ),COLORff0000;<br />
STICKLINE(Var44,CLOSE,HIGH,0.5,0 ),COLORff0000;<br />
STICKLINE(Var44,CLOSE,OPEN,8,0) ,COLOR550000;<br />
STICKLINE(Var44,CLOSE,OPEN,7,0) ,COLOR660000;<br />
STICKLINE(Var44,CLOSE,OPEN,6,0) ,COLOR770000;<br />
STICKLINE(Var44,CLOSE,OPEN,5,0) ,COLOR990000;<br />
STICKLINE(Var44,CLOSE,OPEN,4,0) ,COLORbb0000;<br />
STICKLINE(Var44,CLOSE,OPEN,3,0) ,COLORdd0000;<br />
STICKLINE(Var44,CLOSE,OPEN,2,0) ,COLORff0000;<br />
{顶部钝化区}<br />
stickline((CLOSE &gt;= HLY1),CLOSE,LOW,0.5 ,0),colorff00ff;<br />
STICKLINE((CLOSE &gt;= HLY1),OPEN,HIGH,0.5 ,0),COLORff00ff;<br />
stickline((CLOSE &gt;= HLY1),CLOSE ,OPEN,8,0),colorff11ff;<br />
stickline((CLOSE &gt;= HLY1),CLOSE ,OPEN,7,0),colorff77ff;<br />
stickline((CLOSE &gt;= HLY1),CLOSE ,OPEN,6,0),colorff99ff;<br />
stickline((CLOSE &gt;= HLY1),CLOSE ,OPEN,5,0),colorffbbff;<br />
stickline((CLOSE &gt;= HLY1),CLOSE ,OPEN,4,0),colorffccff;<br />
stickline((CLOSE &gt;= HLY1),CLOSE ,OPEN,3,0),colorffddff;<br />
stickline((CLOSE &gt;= HLY1),CLOSE ,OPEN,2,0),colorffeeff;<br />
{单边下跌}<br />
STICKLINE(买线&lt;卖线,CLOSE,LOW,0.5 ,0 ),COLOR00ff00;<br />
STICKLINE(买线&lt;卖线,OPEN,HIGH,0.5 ,0 ),COLOR00ff00;<br />
stickline(买线&lt;卖线,CLOSE ,OPEN,8,0),color003300;<br />
stickline(买线&lt;卖线,CLOSE ,OPEN,7,0),color005500;<br />
stickline(买线&lt;卖线,CLOSE ,OPEN,6,0),color007700;<br />
stickline(买线&lt;卖线,CLOSE ,OPEN,5,0),color009900;<br />
stickline(买线&lt;卖线,CLOSE ,OPEN,4,0),color00bb00;<br />
stickline(买线&lt;卖线,CLOSE ,OPEN,3,0),color00dd00;<br />
stickline(买线&lt;卖线,CLOSE ,OPEN,2,0),color00ff00;<br />
{变盘}<br />
stickline(cross(买线,卖线) or cross(卖线,买线),CLOSE,LOW,0.5 ,0),color00ffff;<br />
STICKLINE(cross(买线,卖线) or cross(卖线,买线),OPEN,HIGH,0.5 ,0),COLOR00ffff;<br />
stickline(cross(买线,卖线) or cross(卖线,买线),CLOSE ,OPEN,8,0),color00ffff;<br />
{超跌牛熊买点}<br />
KS:=(C-MA(C,13))/MA(C,13)*(-100);<br />
STICKLINE(KS &gt;=8,h*1.01,h,5,0),COLORcccccc;<br />
{起步压力}<br />
var56:=EMA(CLOSE,8);{起步}<br />
var57:=EMA(var56,20);<br />
var58:=CROSS(var56,var57);<br />
var59:=var56&lt;MA(CLOSE,120);<br />
起步:= var58 AND var59;<br />
STICKLINE(起步&gt;0,h*1.01,h,5,0),COLOR00ff00;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧自创K线王指标公式