通达信主图 一个线公式

[复制链接]
查看198 | 回复0 | 2022-7-24 08:19:19 | 显示全部楼层 |阅读模式

通达信主图 一个线公式

{简化炒股一个线N  1  999  80 M  1   15  3}
{DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'9C7',0);}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR11:=MA(C,9),COLORRED;
上升通道:IF(VAR11>REF(VAR11,1),VAR11,DRAWNULL),LINETHICK5,COLORRED;
下降通道:IF(VAR11<REF(VAR11,1),VAR11,DRAWNULL),LINETHICK4,COLORGREEN;
A0:=(L+H+C*2)/4;
AA:=EMA(A0,14)COLORYELLOW,LINETHICK1;
BB:=EMA(A0,25)COLORYELLOW,LINETHICK2;
A1X:=(AA-REF(AA,1))/REF(AA,1)*100;
A2X:=(BB-REF(BB,1))/REF(BB,1)*100;
G:=BARSLAST(CROSS(A1X,0));
必卖止损价位:REF(A0,G),COLORFFFFFF,LINETHICK6;
CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLORBLUE;
止损价位:1.05*CC,COLORYELLOW;
DRAWTEXT(ISLASTBAR,HHV(C,5)*1.05,'止损价位'),COLORRED;
STICKLINE(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95,50,0),COLORWHITE,LINETHICK4;
DRAWTEXT(ISLASTBAR,HHV(C,5)*0.95,'止损价位'),COLORRED,LINETHICK4;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);
A7:=(A5<-0.1 AND A5>A6);
见底:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;
见顶:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORGREEN,CIRCLEDOT;
MA5:=MA(C,5);{牛牛指标网提供 www.tdx001.com}
MA13:=MA(C,13);
高:=REF(HHV(H,N),M);
低:=REF(LLV(L,N),M);
H19:=高-(高-低)*0.191;
H38:=高-(高-低)*0.382,LINETHICK2;
H中:=高-(高-低)*0.5;
H61:=高-(高-低)*0.618;
H80:=高-(高-低)*0.809;
顶点:REFDATE(高,DATE),POINTDOT,COLORRED,LINETHICK4;
疯牛%19.8:REFDATE(H19,DATE),POINTDOT,COLORFF00FF,LINETHICK4;
突破%50:REFDATE(H38,DATE),POINTDOT,COLORCC9900,LINETHICK4;
平衡%38.2:REFDATE(H中,DATE),POINTDOT,COLORRED,LINETHICK5;
回落%61.8:REFDATE(H61,DATE),POINTDOT,COLORFF3798,LINETHICK4;
次低%80.9:REFDATE(H80,DATE),POINTDOT,COLOR00FFFF,LINETHICK4;
低点:REFDATE(低,DATE),POINTDOT,COLORWHITE,LINETHICK4;
DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLOR00FFFF,LINETHICK4;
DRAWTEXT(ISLASTBAR,疯牛%19.8,'疯牛%19.8'),COLOR00FFFF,LINETHICK4;
DRAWTEXT(ISLASTBAR,突破%50,'突破%50'),COLOR00FFFF,LINETHICK2;
DRAWTEXT(ISLASTBAR,平衡%38.2,'平衡%38.2'),COLOR00FFFF;
DRAWTEXT(ISLASTBAR,回落%61.8,'回落%61.8'),COLOR00FFFF;
DRAWTEXT(ISLASTBAR,次低%80.9,'次低%80.9'),COLOR00FFFF;
DRAWTEXT(ISLASTBAR,低点,'低点'),COLOR00FFFF;
 

1742399477.png

1742399477.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则