当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:趋势红牛主图(通达信公式 主图 源码 测试图)
软件名称:[B]趋势红牛主图(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2023-02-02 00:15:28
软件简介:
趋势红牛主图
MA233:=MA(CLOSE,233);
STICKLINE(C>0,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR404050;
STICKLINE(C>MA233,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,C,O,3,0),COLORWHITE;
A10:=CROSS(控盘,0);
空仓:=IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
做多:=IF(A10,5,0),LINETHICK1,COLORBROWN;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,C,O,3,0),COLORRED;
红色持有:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,C,O,3,0),COLORFF00FF;
加速拉升:=IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,C,O,3,0),COLOR00FF00;
高位减仓:=IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;
DRAWICON( CROSS(CCI,-200),L,9);
抄底:=CROSS(CCI,-200);
DRAWTEXT(抄底 ,L*0.93,'★抄底'),COLORRED;
STICKLINE(抄底,L*0.99,L*0.94,1.5,1),COLORGREEN;
STICKLINE(抄底,L*0.99,L*0.97,1.5,0),COLORYELLOW;
STICKLINE(抄底,L*0.96,L*0.94,1.5,0),COLORRED;
AAAZ:=(3*C+H+L+O)/6;
VAR101:=(8*AAAZ+7*REF(AAAZ,1)+6*REF(AAAZ,2)+5*REF(AAAZ,3)+4*REF(AAAZ,4)+3*REF(AAAZ,5)+2*REF(AAAZ,6)+REF(AAAZ,8))/36;
VAR201:=(HHV(VAR101,5)+HHV(VAR101,10)+HHV(VAR101,20))/3;
VAR301:=(LLV(VAR101,5)+LLV(VAR101,10)+LLV(VAR101,20))/3;
VAR401:=(HHV(VAR201,5)+HHV(VAR201,10)+HHV(VAR201,20))/3;
VAR501:=(LLV(VAR301,5)+LLV(VAR301,10)+LLV(VAR301,20))/3;
VAR601:=(LLV(VAR101,2)+LLV(VAR101,4)+LLV(VAR101,6))/3;
红线持股:VAR101,COLORRED,LINETHICK3;
IF(红线持股>REF(红线持股,1),红线持股,DRAWNULL),COLORRED,LINETHICK3;
IF(红线持股<REF(红线持股,1),红线持股,DRAWNULL),COLORGREEN,LINETHICK4;
大趋势线:MA(CLOSE,233),COLORGREEN,LINETHICK3;
IF(大趋势线>REF(大趋势线,1),大趋势线,DRAWNULL),COLORRED,LINETHICK3;
QUI:=H=C;{分析家公式网www.70822.com}
A:=(C-REF(C,1))/REF(C,1)*100>=9.91 AND QUI,NODRAW;
B:=BARSLAST(A),NODRAW;
B1:=REF(BARSLAST(A),1),NODRAW;
AC:=REF(C,B),NODRAW;
AO:=REF(O,B),NODRAW;
AZ:=(AC+AO)/2,NODRAW;
XX2:=CROSS(AZ,L) AND C<O AND C<REF(C,1) AND B1>=3 AND B1<=10 AND (C-REF(C,1))/REF(C,1)*100>-6 NODRAW;
XX2A:=FILTER(XX2,30);
DRAWTEXT(XX2A ,L*0.93,'★尾盘低吸'),COLORGREEN;
STICKLINE(XX2A,L*0.99,L*0.94,1.5,1),COLORYELLOW;
STICKLINE(XX2A,L*0.99,L*0.97,1.5,0),COLORYELLOW;
STICKLINE(XX2A,L*0.96,L*0.94,1.5,0),COLORGREEN;
T:=150;
TT:=3;
AMOV:=VOL*(OPEN+CLOSE)/2;
成本价:=SUM(AMOV,5)/SUM(VOL,5),LINETHICK1,COLOR209FFF;
高1:=REF(HHV(H,T),TT);
低1:=REF(LLV(L,T),TT);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),COLORFFFF00;
一:REFDATE(H1,DATE),DOTLINE,COLORYELLOW;
二:REFDATE(H2,DATE),DOTLINE,COLORMAGENTA;
三:REFDATE(H3,DATE),DOTLINE,COLOR00FFFF;
四:REFDATE(H4,DATE),DOTLINE,COLORMAGENTA;
五:REFDATE(H5,DATE),DOTLINE,COLORYELLOW;
低:REFDATE(低1,DATE),COLOR00FF00;
{TT3:=(CURRBARSCOUNT=5);}
TT4:=(CURRBARSCOUNT=1);
{DRAWNUMBER(TT3 AND 顶,顶,顶),COLOR999900;}
DRAWTEXT(TT4 AND 顶,顶,'顶'),COLOR208FFF;
{DRAWNUMBER(TT3 AND 一,一,一),COLOR999999;}
DRAWTEXT(TT4 AND 一,一,'0.809'),COLOR208FFF;
{DRAWNUMBER(TT3 AND 二,二,二),COLOR999999;}
DRAWTEXT(TT4 AND 二,二,'0.618'),COLOR208FFF;
{DRAWNUMBER(TT3 AND 三,三,三),COLOR999999;}
DRAWTEXT(TT4 AND 三,三,'0.5'),COLOR208FFF;
{DRAWNUMBER(TT3 AND 四,四,四),COLOR999999;}
DRAWTEXT(TT4 AND 四,四,'0.382'),COLOR208FFF;
{DRAWNUMBER(TT3 AND 五,五,五),COLOR999999;}
DRAWTEXT(TT4 AND 五,五,'0.191'),COLOR208FFF;
{DRAWNUMBER(TT3 AND 低,低*1.01,低),COLOR999900;}
DRAWTEXT(TT4 AND 低,低*1.009,'底'),COLOR208FFF;
AZ1:=C>REF(C,4);
NT:=BARSLASTCOUNT(AZ1);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,H*1.002,VAR2STR(AY,0)),COLORFF00FF;
DRAWTEXT(NT=9,H*1.002,'9'),COLORGREEN;
BZ1:=C<REF(C,4);
NT0:=BARSLASTCOUNT(BZ1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,L*0.998,VAR2STR(AY1,0)),COLORFF00FF;
DRAWTEXT(NT0=9,L*0.998,'9'),COLORGREEN;
VAR0:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100;
DRAWTEXT(CROSS(82,VAR0),H*1.01,'|||快卖'),COLORWHITE;
S:=C-REF(C,1);
DX:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
[url=http://www.70822.com/soft/sort013/sort05/down-166131.html]趋势红牛主图(通达信公式 主图 源码 测试图)[/url]