当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:牛皇主图(同花顺公式 主图 源码 测试图)
软件名称:[B]牛皇主图(同花顺公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:10.0 KB
官方主页:Home Page
更新时间:2022-04-24 00:13:17
软件简介:
牛皇主图
/*基本均线*/
进攻线:MA(C,5),colorwhite,LINETHICK1;
持股线:MA(C,10),coloryellow,LINETHICK1;
主力线:FORCAST(EMA(C,19),7),colormagenta,DOTLINE,LINETHICK1;
多空线:MA(C,36),colorgreen,LINETHICK1;
牛熊线:=FORCAST(EMA(C,55),7),colorblue,LINETHICK1;
MA89:=MA(C,89);
MA144:=MA(C,144);
MA233:=MA(C,233);
MA377:=MA(C,377);
/*BOLL线*/
上围:主力线+2*STD(C,20),colorwhite,DOTLINE;
下围:主力线-2*STD(C,20),colorwhite,DOTLINE;
/*涨跌停标识*/
涨停:=(C-REF(C,1))*100/REF(C,1)>=9.85 AND C=H;
STICKLINE(涨停,OPEN,CLOSE,9,0),colorred;
跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(跌停,OPEN,CLOSE,9,0),colorgreen;
/*RSI应用*/
LC:=REF(C,1);
RSI:=((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100);
FF:=EMA(C,3);
EMA21:=EMA(C,21);
DRAWICON(CROSS(FF,EMA21),L*0.99,1);
DRAWICON(CROSS(85,RSI),H*1.01,2);
/*支撑压力线*/
A1:=EMA(C,14);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),colorred,LINETHICK2;
阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),colorblue,LINETHICK2;
STICKLINE(CROSS(A1X,0),C,O,2,0),coloryellow;
STICKLINE(CROSS(0,A1X),C,O,2,0),color215E21;
/*建仓点标识*/
临界建仓:=CROSS(C,多空线) AND 持股线<多空线 AND C>(REF(L,1)+REF(H,1))/2 OR (L<多空线 AND C>多空线
AND CROSS(持股线,多空线) AND C>(REF(L,1)+REF(H,1))/2);
DRAWTEXT(临界建仓=1,L*0.985,'↖建仓'),coloryellow;
临界拐点:=REF(COUNT(临界建仓,20)>=1,1) AND C>=持股线 AND REF(C,1)<REF(持股线,1) AND V>REF(V,1)
AND V>MA(V,3) AND 持股线<多空线;
DRAWTEXT(临界拐点=1,L*0.995,'↖小拐点'),coloryellow;
/*抓板标识*/
MAX55:=MAX(MAX(MAX(牛熊线,MA89),MA144),MA233);
B0:=C>MAX55;
B1:=ABS(L-主力线)/MIN(L,主力线)<0.05;
B2:=ABS(L-牛熊线)/MIN(L,牛熊线)<0.10;
B3:=C/REF(C,1)-1>0.05;
B4:=MA144>MA233 AND MA233>MA377 AND 主力线>牛熊线;
抓板:=(B1 AND B2 AND B3 AND B4);
B5:=FILTER(抓板,2);
DRAWTEXT(抓板 AND B5,L,'↖抓板'),coloryellow;
DRAWTEXT(CROSS(主力线,牛熊线),L,'↖大拐点'),coloryellow;
/*波浪标识*/
PL5:ZIG(3,5),COLORAAAAAA;
EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3);
EX1:=PL5<REF(PL5,1) AND REF(PL5,1)>=REF(PL5,2) AND REF(PL5,2)>=REF(PL5,3);
PL10:=ZIG(3,13);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,26);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,55);
走强一:=BARSLAST(PL5<REF(PL5,1));
走弱一:=BARSLAST(PL5>REF(PL5,1));
走强二 :=BARSLAST(PL10<REF(PL10,1));
走弱二:=BARSLAST(PL10>REF(PL10,1));
走强三:=BARSLAST(PL20<REF(PL20,1));
走弱三:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二 ),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二 ),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);
DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.96,'[小A完]'),colorlired;
DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.04,'[小B完]'),COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.96,'[小C完]'),colorlired;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.03,'<小1完>'),colorligreen;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.97,'<小2完>'),colorlired;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.03,'<小3完>'),colorligreen;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.97,'<小4完>'),colorlired;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1 AND NOT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1),HIGH*1.03,'<小5完>'),colorligreen;
DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.89,'[大A完]'),colorred;
DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.11,'[大B完]'),COLOR00FF00;
DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.89,'[大C完]'),colorred;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.08,'<大1完>'),colorgreen;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.92,'<大2完>'),colorred;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.08,'<大3完>'),colorgreen;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.92,'<大4完>'),colorred;
/*板块&地区&概念*/
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'板块:'+BLOCK(0,0)+'/'+BLOCK(1,0)+';地区:'+BLOCK(2,0)+';概念:'+BLOCK(3,0)),colorwhite;
[url=http://www.70822.com/soft/sort013/sort036/down-161994.html]牛皇主图(同花顺公式 主图 源码 测试图)[/url]