同花顺分时KDJ布林极限副图指标
-
相关简介:同花顺分时KDJ布林极限副图指标 源码 mid:=EMA(NEW,20); upper:=mid+2*STD(NEW,20); lower:=mid-2*STD(NEW,20); 布林极限:=(NEW-lower)/(upper-lower)*100; b1:20; b2:50; b3:80; b4:0; b5:100; STICKLINE(REF(布林极限,1)=布林极限 ,布林极限 ,REF(布林极限,1),0,0 ),COLOR00FF00; STICKLINE(REF(布林极限,1)=布
-
文章来源:股海网作者:股海网发布时间:2016-02-26浏览次数:
同花顺分时KDJ布林极限副图指标
源码
mid:=EMA(NEW,20);
upper:=mid+2*STD(NEW,20);
lower:=mid-2*STD(NEW,20);
布林极限:=(NEW-lower)/(upper-lower)*100;
b1:20;
b2:50;
b3:80;
b4:0;
b5:100;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),0,0 ),COLOR00FF00;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),8,0 ),COLOR008800;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),7,0 ),COLOR009900;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),6,0 ),COLOR00AA00;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),5,0 ),COLOR00BB00;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),4,0 ),COLOR00CC00;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),3,0 ),COLOR00DD00;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),2,0 ),COLOR00EE00;
STICKLINE(REF(布林极限,1)>=布林极限 ,布林极限 ,REF(布林极限,1),1,0 ),COLOR00FF00;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),0,0) ,COLORFFBBFF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),8,0) ,COLORFF00FF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),7,0) ,COLORFF22FF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),6,0) ,COLORFF44FF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),5,0) ,COLORFF66FF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),4,0) ,COLORFF88FF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),3,0) ,COLORFF99FF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),2,0) ,COLORFFAAFF;
STICKLINE(布林极限>=REF(布林极限,1),布林极限,REF(布林极限,1),1,0) ,COLORFFBBFF;
LOWV:=LLV(NEW,15);
HIGHV:=HHV(NEW,15);
RSV:=EMA((NEW-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
PARTLINE(d,d>=REF(d,1),RGB(255,0,0),d<=REF(d,1),RGB(0,255,255));
a1:=BARSLAST(REF(CROSS(K,D),1));
b1:=REF(NEW,a1+1)>NEW AND REF(D,a1+1)<30;
DRAWTEXT(IF(b1>0,1,0),d,'K底背'),colorcyan;
c1:=BARSLAST(REF(CROSS(D,K),1));
d1:=REF(NEW,c1+1)D AND CROSS(D,K) AND k>70;
DRAWTEXT(IF(d1>0,1,0),d,'K顶背'),coloryellow;
中趋势线:=3*SMA((NEW-LLV(NEW,27))/(HHV(NEW,27)-LLV(NEW,27))*100,5,1)-2*SMA(SMA((NEW-LLV(NEW,27))/(HHV(NEW,27)-LLV(NEW,27))*100,5,1),3,1);
中准备买入: IF(中趋势线<=10,-10,0),colormagenta;
中准备卖出: IF(中趋势线>=90,110,100),colorcyan;
长趋势线:=3*SMA((NEW-LLV(NEW,55))/(HHV(NEW,55)-LLV(NEW,55))*100,5,1)-2*SMA(SMA((NEW-LLV(NEW,55))/(HHV(NEW,55)-LLV(NEW,55))*100,5,1),3,1);
长准备买入: STICKLINE(长趋势线<=10 ,-5,-10,1,0);
长准备卖出: STICKLINE(长趋势线>=90,105,110,1,0);
上一篇:同花顺雪山飞狐主图指标
下一篇:同花顺减磅是老师副图指标