联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

趋势线顶底判断副图源码

2015-4-16 15:19:45点击:

加微信:zb-mart免费验证!

 Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);

趋势线: EMA(Var1,8);
趋势均线:MA(趋势线,7);
Var3:=(C+H+L+O)/4;
Var4:=LLV(L,34);
Var5:=HHV(H,34);
Var6:=EMA((Var3-Var4)/(Var5-Var4)*100,8);
Var7:=EMA(Var6,5);
STICKLINE((Var6-Var7)>0,Var6,Var7,8,1),colorBB11AA;
STICKLINE((Var6-Var7)<0,Var6,Var7,8,1),colorgreen;
卖:IF(CROSS(趋势均线,趋势线) AND 趋势线>80,50,100),colorgreen;
顶部区域:STICKLINE(Var7>80,100,105,10,1),colorFFFFDD;
底部区域:STICKLINE(Var7<20,-5,0,8,1),coloryellow;
趋势线:=SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1)-(13);
判断:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8);
买参考:IF(FILTER(CROSS(判断,趋势线)=1 OR 判断>REF(判断,1),10) AND 判断
<25 ,35,1),colorwhite,POINTDOT;
STICKLINE(FILTER(CROSS(判断,趋势线)=1 OR 判断>REF(判断,1),10) AND 判断
<25 ,35,0,2,1),colorwhite;
卖参考:IF(FILTER(判断<REF(判断,1)AND 判断
>65,5),80,70),colorred;
STICKLINE(FILTER(判断<REF(判断,1)AND 判断
>65,5),80,70,4,0),COLOR00FF00;
DVAR4:=LLV(LOW,10);
DVAR3:=HHV(HIGH,25);
阶段卖出: 3.2*30,COLORC6C600;
3.5*30,COLOR0088FF;
清仓卖出: 3.5*30,COLORFF75FF;
动力线:= EMA((CLOSE-DVAR4)/(DVAR3-DVAR4)*4,4)*30;
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),3 ,1),colorred;
STICKLINE(动力线<=REF(动力线,1) ,动力线 ,REF(动力线,1),3 ,1),COLORFF7700;
底部:0.2*30,COLOR70DB93;
关注:0.5*30,coloryellow;
DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,7),LAYER0;
DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,8),LAYER0;
DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,7),LAYER0;
DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,8),LAYER0;
强弱分界线:1.75*30,POINTDOT,LINETHICK2,COLOR70DB93;
数值:动力线,COLORA8A8A8;