同花顺王氏分割箱体公式 看图操作,黄金分割理论
价:EMA(CLOSE,3),colorwhite;
撑压线:=EMA(CLOSE, 13);
生命线:EMA(CLOSE,33);
成本线:=EMA(CLOSE, 88);
分界线:=EMA(CLOSE, 233),colorcyan;
平均值:(价+撑压线+生命线+成本线+分界线)/5,colorwhite;
左侧交易:IF(平均值>成本线,平均值,DRAWNULL),colorred;
右侧交易:IF(平均值<成本线,平均值,DRAWNULL),colorgreen;
VAR1:=LLV(LOW,191);
VAR2:=HHV(HIGH,191);
VAR3:=VAR2-VAR1;
底:VAR1,colorligreen;
顶:VAR2,colorlired;
支撑:VAR3*0.191+VAR1,colormagenta;
回调:VAR3*0.382+VAR1,colorgray;
强弱:VAR3*0.500+VAR1,colorliblue;
突破:VAR3*0.618+VAR1,colorligray;
撑压:VAR3*0.786+VAR1,coloryellow;
买:=CROSS(价,突破);
卖:=CROSS(撑压,价)AND 价<生命线;
满仓:IF(买>=1 AND 买>0,价,DRAWNULL),colorlired;
清仓:IF(卖>=1 AND 卖>0,价,DRAWNULL),colorligreen;
底部:IF(CROSS(生命线,强弱) AND 左侧交易>生命线,生命线,DRAWNULL),colorred;
DRAWTEXT(底部,LOW,'A'),colorred;
DRAWTEXT(买,LOW,'B'),colorlired;
DRAWTEXT(清仓,HIGH,'S'),colorgreen;
DRAWTEXT(ISLASTBAR,底,'¨底'),colorligreen;
DRAWTEXT(ISLASTBAR,支撑,'¨0.191'),colormagenta;
DRAWTEXT(ISLASTBAR,回调,'¨0.382'),colorwhite;
DRAWTEXT(ISLASTBAR,强弱,'¨0.500'),colorliblue;
DRAWTEXT(ISLASTBAR,突破,'¨0.618'),colorligray;
DRAWTEXT(ISLASTBAR,撑压,'¨0.768'),coloryellow;
DRAWTEXT(ISLASTBAR,顶,'¨顶'),colorlired;