公式网-网站导航


网站搜索:  

公式指标网 发表于2016/5/22 6:53:02

同花顺趋势防线副图指标

同花顺趋势防线副图指标

源码

VarA:=LLV(LOW,35);
VarB:=HHV(HIGH,30);
VarC:=EMA((CLOSE-VarA)/(VarB-VarA)*4,4)*25;
趋势: VarC,ColorFF00FF,linethick2;

底背: STICKLINE(VarC<10 AND 100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))

>97,0,25,5,0),coloryellow;
顶背: STICKLINE(VarC>90,100,85,10,0),colorred;
VarD:=87.5;
VarE:=(VarC-LLV(VarC,4))/(HHV(VarC,4)-LLV(VarC,4))*4*25;
目标位: DRAWTEXT(IF(CROSS(趋势,VarD) AND VarE=100,50,0),56,'目标'),ColorFF00FF;
跑: DRAWTEXT(IF(CROSS(VarD,趋势),87,0),85,'跑'),Color00FF00;
Var6:=(2*C+H+L)/4;
Var8:=LLV(LOW,30);
VarA:=HHV(HIGH,30);
B:=EMA((Var6-Var8)/(VarA-Var8)*100,8);
B1:=EMA(B,5);
STICKLINE(B>0 AND B-B1>=0,79,80,6,0),COLOR00FF00;
STICKLINE(B>0 AND B-B1<0,79,80,6,0),colorcyan;
STICKLINE(B>0 AND B-B1>=0,49,50,6,0),colorred;
STICKLINE(B>0 AND B-B1<0,49,50,6,0),colorcyan;
STICKLINE(B>0 AND B-B1>=0,19,20,6,0),COLOR00FF00;
STICKLINE(B>0 AND B-B1<0,19,20,6,0),colorcyan;
STICKLINE(B-B1>0,B,B1,8,1),colorred;
STICKLINE(B-B1<0,B,B1,8,1),Color00FF00;
V1:=(2*CLOSE+HIGH+LOW)/4;
V2:=LLV(LOW,21);
VA:=HHV(HIGH,34);
防线B:EMA((V1-V2)/(VA-V2)*100,13);
防线BB:EMA((0.667*REF(防线B,1)+0.333*防线B),2);
战略线:=EMA(0.382*REF(防线B,2)+0.618*防线B,12),coloryellow;

同花顺趋势防线副图指标



网站搜索:  



Copyright © 2009-2010 gszb.com ™,All Rights Reserved. 
公式网-www.gszx.com.cn-股票指标公式网