大智慧转折趋势主图指标
-
相关简介:大智慧转折趋势主图指标 源码 流通盘大小:=FINANCE2(37)/10000; DRAWTEXTABS(20,25,'流通盘大小:'+流通盘大小+'亿 '),LINETHICK1,Colorffffff; 净资产收益率:=FINANCE2(5); DRAWTEXTABS(220,25,'净资产收益率:'+净资产收益率+'% '),LINETHICK1,Colorffffff; 上证指数:=indexc; DRAWTEXTABS(360,25,'上证指数:'+上证指数),LINETHICK1,
-
文章来源:股海网作者:股海网发布时间:2016-06-06浏览次数:
大智慧转折趋势主图指标
源码
流通盘大小:=FINANCE2(37)/10000;
DRAWTEXTABS(20,25,'流通盘大小:'+流通盘大小+'亿 '),LINETHICK1,Colorffffff;
净资产收益率:=FINANCE2(5);
DRAWTEXTABS(220,25,'净资产收益率:'+净资产收益率+'% '),LINETHICK1,Colorffffff;
上证指数:=indexc;
DRAWTEXTABS(360,25,'上证指数:'+上证指数),LINETHICK1,Colorffffff;
DRAWGBKLAST(L,STRIP(RGB(0,0,205),RGB(47,79,79),0));
{转折趋势}
{----------------
IF DATATYPE=8
partline(c*2-ref(c,3),c>0),MOVE3,color005555,LAYER7,linethick2;
partline(ref(c,1)*2-ref(c,4),c>0),MOVE2,color005500,LAYER7,linethick2;
partline(ref(c,2)*2-ref(c,5),c>0),MOVE1,color553355,LAYER7,linethick2;
END;
{----------------
{DRAWGBKlast(C, STRIP(RGB(40,40,173),RGB(1,1,14),0));}
H均线:=WMA(H,5);
L均线:=WMA(L,5);
转折线:IF(C>REF(H均线,1),L均线-(MA(H,5)-WMA(H,5)),IF(C<REF(L均线,1),H均线+(MA(H,5)-WMA(H,5)),L)),LINETHICK2,colorFFFFFF,LAYER0;
看多:C>转折线,linethick0,color0000ff;
看空:C<=转折线,linethick0,color00ff00;
看空期:=BARSLAST(看多);
看多期:=BARSLAST(看空);
预买:看多期=1,color00ffff,linethick0;
清仓:看空期=1,colorblue,linethick0;
STICKLINE(C>转折线,H,L,1,0),colorred;
STICKLINE(C>转折线,O,C,6,0),colorred;
STICKLINE(C>转折线 AND C<O,O,C,6,1),colorred;
STICKLINE(C<=转折线,H,L,1,0),color00ff00;
STICKLINE(C<=转折线,O,C,6,0),color00ff00;
STICKLINE(C<=转折线 AND C>O,O,C,6,1),color00ff00;
STICKLINE(预买,O,(C+O)/2,6,0),color00ffff;
STICKLINE(清仓,O,(C+O)/2,6,0),colorblue;
{回归预测}{HG}
A1:=(H+L+2*C)/4;
B1:=EMA(A1,2);
预测本周期价:FORCAST(B1,9),linethick0;