通达信黄金分割止损价位主图公式
-
相关简介:通达信黄金分割止损价位主图 炒股一个公式就够了, 黑色线是第一止损价位。 黄金分割止损价位主图 参数 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); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); VAR11:=MA(C,9),COLORRED; 上升通道:IF(VAR11REF(VAR11,1),VAR11,DRAWNULL),LINE
-
文章来源:股海网作者:股海网发布时间:2012-11-15浏览次数:
通达信黄金分割止损价位主图
炒股一个公式就够了, 黑色线是第一止损价位。
黄金分割止损价位主图
参数 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);
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,LINETHICK3;
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);
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;{股海网提供 www.guhai.com.cn}
顶点: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;