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

大智慧布林解盘指标公式

<p>{布林智能解盘}<br />
JL01:=MA(C,3);<br />
LJL07:=(3*C+L+O+H)/6;<br />
牛线: (20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;<br />
马线:MA(牛线,6),COLORYELLOW,LINETHICK4,POINTDOT;<br />
上限:马线+3*STD(CLOSE,20),COLORMAGENTA,CROSSDOT;<br />
下限:马线-2.9*STD(CLOSE,20),COLORGREEN,CROSSDOT;<br />
买:马线-2*STD(CLOSE,20),LINETHICK2,COLORWHITE;<br />
卖:马线+2*STD(CLOSE,20),LINETHICK2,COLORYELLOW;</p>
<p>PARTLINE(马线,JL01&lt;=牛线),COLORRED,LINETHICK4,POINTDOT;<br />
VAR1:=(C&gt;REF(C,1) AND C&gt;REF(C,2));<br />
VAR2:=(REF(VAR1,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR3:=(REF(VAR2,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VAR4:=(REF(VAR3,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR5:=(REF(VAR4,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VAR6:=(REF(VAR5,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR7:=(REF(VAR6,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VAR8:=(REF(VAR7,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR9:=(REF(VAR8,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VARA:=(REF(VAR9,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VARB:=(REF(VARA,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VARC:=(REF(VARB,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
PARTLINE(牛线,VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC),COLORRED,LINETHICK1;<br />
VARD:=(C&lt;REF(C,1) AND C&lt;REF(C,2));<br />
VARE:=(REF(VARD,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VARF:=(REF(VARE,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR10:=(REF(VARF,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VAR11:=(REF(VAR10,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR12:=(REF(VAR11,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VAR13:=(REF(VAR12,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR14:=(REF(VAR13,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VAR15:=(REF(VAR14,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR16:=(REF(VAR15,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
VAR17:=(REF(VAR16,1) AND C&lt;=REF(C,1) AND C&gt;=REF(C,2));<br />
VAR18:=(REF(VAR17,1) AND C&gt;=REF(C,1) AND C&lt;=REF(C,2));<br />
PARTLINE(牛线,VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18),COLORGREEN,LINETHICK1;<br />
GJ:=(C+H+L+O)/4;<br />
明日阻力:=L+(GJ-L)+(C-L);<br />
明日支撑:=L+(C-GJ);<br />
今日支撑:REF(明日支撑 , 1),COLORMAGENTA,linethick0;<br />
今日阻力:REF(明日阻力 , 1),COLORYELLOW,linethick0;<br />
STICKLINE(C&gt;=O,C,O,6,0),COLOR000045;<br />
STICKLINE(C&gt;=O,C,O,5,0),COLOR000065;<br />
STICKLINE(C&gt;=O,C,O,4,0),COLOR000085;<br />
STICKLINE(C&gt;=O,C,O,3,0),COLOR0000A5;<br />
STICKLINE(C&gt;=O,C,O,2,0),COLOR0000C5;<br />
STICKLINE(C&gt;=O,C,O,1,0),COLOR0000E5;<br />
STICKLINE(C&gt;=O,H,L,0,0),COLOR0000F5;<br />
STICKLINE(C&lt;O,C,O,6,0),COLOR353500;<br />
STICKLINE(C&lt;O,C,O,5,0),COLOR454500;<br />
STICKLINE(C&lt;O,C,O,4,0),COLOR555500;<br />
STICKLINE(C&lt;O,C,O,3,0),COLOR656500;<br />
STICKLINE(C&lt;O,C,O,2,0),COLOR757500;<br />
STICKLINE(C&lt;O,C,O,1,0),COLOR858500;<br />
STICKLINE(C&lt;O,H,L,0,0),COLOR959500;<br />
A007:=(HIGH+LOW+CLOSE)/3;<br />
A008:=((A007-MA(A007,14))/(0.015*AVEDEV(A007,14)))/2;<br />
A009:=(A008+(EMA(((0-(100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))))+100)/100,3)*200-100))/2;<br />
A010:=A009-REF(A009,14);<br />
A011:=A009-REF(A009,26);<br />
A012:=(A009+A010+A011)/3;<br />
KKM:=EMA(A012,4);<br />
A013:=HHV(HIGH,34);<br />
A014:=(2*CLOSE+HIGH+LOW)/4;<br />
A015:=LLV(LOW,34);<br />
A016:=EMA(((A014-A015)/(A013-A015))*100,13);<br />
A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);<br />
KKMD:=A016-A017&gt;1 AND A016&lt;30 AND A017&lt;30;<br />
KKML:=A016-A017&lt;0 AND A016&gt;80 AND A017&gt;80 AND REF(A016-A017,1)&gt;0;<br />
KKMQ:=COUNT(A016-A017&gt;0,2)=2;<br />
KKAL:=(A016-A017)&lt;0;</p>
<p>DRAWTEXT(FILTER(KKMD,30),L,'最佳买入时机★'),COLOR00FFFF;<br />
DRAWTEXT(FILTER(KKML,30),H,'最佳卖出时机'),COLORFFFF00;<br />
DRAWTEXT(FILTER(KKMQ,30),C,'持仓区'),COLOR00FF00;<br />
DRAWTEXT(FILTER(KKAL,30),H,'空仓区'),COLORFF8080;<br />
DRAWTEXT(FILTER(CLOSE/REF(CLOSE,1)&gt;INDEXC/REF(INDEXC,1),30),L*0.95,'该股强于大盘'),COLORFF00FF;<br />
DRAWTEXT(CROSS(MA(CLOSE,5),MA(CLOSE,10)),L*0.92,'可出手'),COLORFF00FF;<br />
DRAWTEXT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),H*1.08,'收手了'),COLORFF0000;<br />
DRAWTEXT(FILTER(KKM&gt;EMA(KKM,4) AND KKM&gt;REF(KKM,1),30),L*0.98,'快速介入');<br />
DRAWTEXT(FILTER(KKM&lt;EMA(KKM,4) AND KKM&lt;REF(KKM,1),30),H*1.02,'风险较大');<br />
DRAWTEXT(FILTER(KKM&gt;EMA(KKM,4) AND KKM&lt;REF(KKM,1),30),H,'休息观望~'),COLORAA8800;<br />
DRAWTEXT(FILTER(KKM&lt;EMA(KKM,4) AND KKM&gt;REF(KKM,1),30),L,'有防御能力'),COLORAA00AA;<br />
DRAWTEXTABS(2,0,'小鹰大侠-修改'),COLOR0000FF,linethick1;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 大智慧布林解盘指标公式