股票公式平台 股票公式 股票软件 手机炒股软件 登录 注册
公式平台网
未来函数检测
首 页 精品公式 通达信公式 大智慧公式 同花顺公式 通达信股票池 大智慧股票池 益盟公式 文华公式 博易大师公式 通达信软件 更多
当前位置:公式平台网同花顺公式 → 正文

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

发布时间:2024/9/19 9:37:18  浏览次数:
牛熊线之老牛
原牛熊线优化改进为八线合一,操盘线改为3、5、8号线为操盘线,安全线改为25号线,增加了明日心理价,强弱红绿园点,短线不涨停出小人等指示,仅作参考。

指标源码
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);


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

增值电信业务经营ICP许可证:合字B2-20230351  粤ICP备2023083431号-1
免责声明:公式平台网是股票软件指标公式分享平台,不开展相关证券业务,平台展示的所有股票资料由网络收集,不保障实时性和真实性,由此引起的投资亏损与本站无关.
Copyright © 2023 gspt.com , All Rights Reserved.