飞狐加仓止损趋势指标公式
- 指标类别: 飞狐指标公式
- 授权方式: 免费版
- 指标评级: ★★★★★
- 指标分类: 趋势
- 画线方法: 主图
- 日期:2018-09-12 来源:互联网
飞狐加仓止损趋势指标公式:
Hh1:EMA(CLOSE,3),linethick2,colorred;
Hh2:EMA(Hh1,20),linethick2,coloryellow;
DRAWICON(CROSS(Hh1,Hh2)AND CLOSE
STICKLINE(Hh1
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,'★ 快跑 '),COLORYELLOW;
VarA:=REF(CLOSE,1);
VarB:=SMA(MAX(CLOSE-VarA,0),6,1)/SMA(ABS(CLOSE-VarA),6,1)*100;
DRAWTEXT(CROSS(75,VarB),HIGH,'☆短出'),Color00FF00 ;
选股1:cross(hh1,hh2),LINETHICK0,colorgreen;
DRAWTEXT(cross(hh1,hh2),l,'☆加仓'),ALIGN0,coloryellow,linethick3;
选股2:cross(hh2,hh1),LINETHICK0,colorred;
DRAWTEXT(cross(hh2,hh1),l,'☆止损'),ALIGN0,colorred,linethick3;
input:Q(27,1,250);
MA5:MA(CLOSE,5),linethick1;
MA10:MA(CLOSE,10),linethick1;
MA20:MA(CLOSE,20),Color0000FF,linethick1;
MA30:MA(CLOSE,30),ColorFFFF00,linethick1;
MA60:MA(CLOSE,60),ColorFF0000,linethick1;
MA120:MA(CLOSE,120),Color00FF00,linethick1;
MA250:MA(CLOSE,250),Colorgray,linethick1;
Var1:=(开盘价+最低价+最高价+收盘价)/4;
stickline(1,var1,var1,6,0),ColorFF00FF;
拐点:=ma(c,3); 拐点1:=ma(c,3);
gd1:=ref(count(拐点<=ref(拐点,1),5)=5 ,1) and 拐点>ref(拐点,1),linethick2 ,colorred ;
gd2:=ref(count(拐点1<=ref(拐点1,1),5)=5 ,1) and 拐点1>ref(拐点1,1),linethick2 ,colorred ;
DRAWICON(gd1,0.98*c,1);
DRAWICON(gd2,0.98*c,8);
飞狐加仓止损趋势指标公式实例图解:
飞狐加仓止损趋势指标公式