牛熊线之老牛副图原牛熊线优化改进为八线合一

ZW1:=(H+L+O+2*C)/5;
ZW2:=(REF(H,1)+REF(L,1)+REF(O,1)+2*REF(C,1))/5;
明日突破价:=ZW1+H-L;
明日阻力价:=2*ZW1-L,NODRAW;
明日反转价:=ZW1-H+L;
明日支撑价:=2*ZW1-H,NODRAW, LINETHICK1;
明日心理价:(ZW1+明日突破价+明日阻力价+明日支撑价+明日反转价)/5,NODRAW,colorwhite;
缺口:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1);
DRAWTEXT(缺口,LOW,'缺'),COLOR00FFFF;
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),coloryellow;
BDGD:=C=HHV(C,13);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:=REF(C,GDSJ),COLORFF00FF,POINTDOT;
突破:=CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW;
STICKLINE(GDSJ<=6,高点,高点,3,0),COLORFF00FF;
DRAWTEXT(突破,LOW,'T'),COLOR00FFFF;
M:=(H+L+3*C+O)/6;M3:=MA(M,3);M7:=MA(M,7);M14:=MA(M,14);M21:=MA(M,21);M28:=MA(M,28);
M35:=MA(M,35);M42:=MA(M,42);M49:=MA(M,49);M56:=MA(M,56);MH7:=MA(H,7);MH14:=MA(H,14);
MH21:=MA(H,21);MH28:=MA(H,28);MH35:=MA(H,35);MH42:=MA(H,42);MH49:=MA(H,49);MH56:=MA(H,56);
ML7:=MA(L,7);ML14:=MA(L,14);ML21:=MA(L,21);ML28:=MA(L,28);ML35:=MA(L,35);ML42:=MA(L,42);
ML49:=MA(L,49);ML56:=MA(L,56);
MZ:=(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/252;
沧海行操盘线:EMA(C,3),colorwhite,LINETHICK1;
沧海行操盘线2:MA(C,5),coloryellow,LINETHICK1;
沧海行操盘线3:MA(C,8),colorred,LINETHICK1;
沧海行安全线:MA(C,25),colorgray,LINESTICK,LINETHICK1;
沧海行牛熊线:=MZ,colorwhite,CIRCLEDOT,LINETHICK1;
DRAWICON(CROSS(沧海行操盘线,沧海行牛熊线),L*0.98,1);
STICKLINE(C/REF(C,1)>1.095,C,O,1,0),coloryellow;
IF(沧海行操盘线3<=REF(沧海行操盘线3,1),沧海行操盘线3,DRAWNULL),colorblue,LINETHICK2;
IF(沧海行操盘线3>REF(沧海行操盘线3,1),沧海行操盘线3,DRAWNULL),COLORFF00FF,LINETHICK2;
VAR1Q:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2Q:=REF(VAR1Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARDA:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARDA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR19:=REF(VARDA OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14
OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1Q;
VAR1A:=REF(VAR1Q OR VAR2Q OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR
VAR9 OR VARA OR VARB OR VARC,1) AND VARDA;
DRAWICON(FILTER(VAR1A=1,5),HIGH*1.03,12);
DIVE:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYR:=(DIVE/REF(DIVE,1)-1)*10;
MACYR:=MA(CYR,5)/10;
MA18:=MA(C,18);
魔力线:=(MA18>REF(MA18,1)),CIRCLEDOT,colorwhite,LINETHICK1;
进仓:IF(MACYR<CYR ,沧海行牛熊线,DRAWNULL),coloryellow,CIRCLEDOT,LINETHICK2;
空仓:IF(CYR<MACYR ,沧海行牛熊线,DRAWNULL),colorgreen,CIRCLEDOT,LINETHICK2;
持仓:IF(CYR>MACYR AND 魔力线,沧海行牛熊线,DRAWNULL),CIRCLEDOT,colorred,,LINETHICK2;
IF(MZ<=REF(MZ,1),MZ,DRAWNULL),colorgreen,CIRCLEDOT,LINETHICK2;
PP1:=H>=MA(C,5)*(100+8)/100 AND NOT(C/REF(C,1)>1.095);
PP2:=L*(100+20)/100<=MA(C,25);
DRAWICON(PP1,H*1.02,15);







来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图