vara:=(((close - ema(close,13)) / ema(close,13)) * (0 - 100));
趋势线:ema(((vara/10)+ema(close,10)),3),colorffff00,linethick2;
varb:=(open+high+low)/3;
varc:=ema(varb,4);
行情线:varc,coloryellow;
stickline(行情线<趋势线,h,l,1,1),colorgreen;
{stickline(行情线<趋势线,c,o,6,1),colorgreen;}
{stickline(行情线>=趋势线,c,o,6,1),colorred;}
buy:=if(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),1,0);
stickline(行情线>=趋势线,h,l,1,1),colorred;
stickline(行情线>=趋势线,open,close,4.5,0),color000099;
stickline(行情线>=趋势线,open,close,3,0),color0000bb;
stickline(行情线>=趋势线,open,close,2,0),color0000ff;
stickline(行情线<趋势线,h,l,1,1),color00ff00;
stickline(行情线<趋势线,open,close,4.5,0),color009900;
stickline(行情线<趋势线,open,close,3,0),color00bb00;
stickline(行情线<趋势线,open,close,2,0),color00ff00;
{买入显示}
drawtext(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),low*0.98,'▲'),color0000ff;
drawtext(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),low*0.975,'∣'),color0000ff;
drawtext(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),low*0.975,'‖'),color0000ff;
drawtext(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),low*0.97,'∣'),color0000ff;
drawtext(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),low*0.97,'‖'),color0000ff;
drawtext(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),low*0.965,'∣'),color0000ff;
drawtext(cross(行情线,趋势线) or (ref(行情线,1)=ref(趋势线,1) and 行情线>趋势线),low*0.965,'‖'),color0000ff;
{买出显示}
drawtext(cross(趋势线,行情线) or (ref(行情线,1)=ref(趋势线,1) and 行情线<趋势线),high*1.02,'▼'),color00ff00;
drawtext(cross(趋势线,行情线) or (ref(行情线,1)=ref(趋势线,1) and 行情线<趋势线),high*1.025,'∣'),color00ff00;
drawtext(cross(趋势线,行情线) or (ref(行情线,1)=ref(趋势线,1) and 行情线<趋势线),high*1.025,'‖'),color00ff00;
drawtext(cross(趋势线,行情线) or (ref(行情线,1)=ref(趋势线,1) and 行情线<趋势线),high*1.03,'∣'),color00ff00;
drawtext(cross(趋势线,行情线) or (ref(行情线,1)=ref(趋势线,1) and 行情线<趋势线),high*1.03,'‖'),color00ff00;
drawtext(cross(趋势线,行情线) or (ref(行情线,1)=ref(趋势线,1) and 行情线<趋势线),high*1.035,'∣'),color00ff00;
drawtext(cross(趋势线,行情线) or (ref(行情线,1)=ref(趋势线,1) and 行情线<趋势线),high*1.035,'‖'),color00ff00;
ff:=ema(close,3);
ma15:=ema(close,21);
fa:=if(cross(ff,ma15),1,0);
{加码跟进}
tr:=max(max((high - low),abs(ref(close,1) - high)),abs(ref(close,1) - low));
atr:=ma(tr,14);
aa:=(hhv(high,20) - (2 * atr));
bb:=cross(close,ref(hhv(high,55),1));
sss:=cross(min(ma(close,13),aa),close);
bbb:=barslast(bb);
sssb:=barslast(sss);
b1:=((bbb = 0) and (ref(sssb,1) < ref(bbb,1)));
b1b:=barslast(b1);
b2:=((((bb = 1) and (b1b < sssb)) and (b1b > 0)) and (count(bb,sssb) < 3));
b2b:=barslast(b2);
b3:=((((bb = 1) and (b2b < b1b)) and (count(bb,sssb) < 4)) and (count(bb,sssb) > 2));
drawtext((b1=1 and 行情线>=趋势线 and buy=0) or (b2=1 and 行情线>=趋势线 and buy=0),low*0.98,'▲'),colorff00ff;
a:=(3*close+low+open+high)/6;
x:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+
14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)
+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+
ref(a,20))/210;
y:=ema(x,13);
加仓a:=sma(ema((c-ref(c,1))/ref(c,1),5)*100,3,1)*10;
drawtext(filter((cross(加仓a,0) or cross(close,y)) and 行情线>=趋势线 and buy=0 and fa=0,3),low*0.98,'▲'),colorff00ff;
加仓:=(b1=1 and 行情线>=趋势线 and buy=0) or (b2=1 and 行情线>=趋势线 and buy=0) or filter((cross(加仓a,0) or cross(close,y)) and 行情线>=趋势线 and buy=0 and fa=0,3),colorff00ff;
stickline(加仓,h,l,1,1),colorff00ff;
stickline(加仓,open,close,4.5,0),colorff0099;
stickline(加仓,open,close,3,0),colorff00cc;
stickline(加仓,open,close,2,0),colorff00ff;
{减仓}
varj1:=ref(close,1);
varj2:=((sma(max(close-varj1,0),6,1))/(sma(abs(close-varj1),6,1)))*(100);
减仓a:=cross(85,varj2);
drawtext(减仓a and 行情线>=趋势线,high*1.03,'▼'),coloryellow;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
dy:=hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx);
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
减仓b:=filter(cross(84,rsi) or dy,5);{下穿84}
drawtext(减仓b and 行情线>=趋势线,h*1.03,'▼'),coloryellow;
减仓:=减仓a or 减仓b;
stickline(减仓,h,l,1,1),coloryellow;
stickline(减仓,open,close,4.5,0),color00cccc;
stickline(减仓,open,close,3,0),color33ffcc;
stickline(减仓,open,close,2,0),color00ffff;
{一阳穿三线}
bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
上:=bbi+3*std(bbi,10);
中:=bbi;
下:=bbi-3*std(bbi,10);
优选:=between(上,open,close) and between(中,open,close) and between(下,open,close) and close>open and 上>=ref(上,1) and 中>=ref(中,1) and 下>ref(下,1),color00ff00;
drawtext(filter(优选,2),low*0.95,'¤'),color00ff00;
{底背离}
drawtext(fa and buy=0,(low * 0.98),'□'),color0099ff;
{波浪顶底}
ty:=c;
hd:=filter(backset(filter(ref(ty,10)=hhv(ty,2*10+1),10),10+1),10);
ld:=filter(backset(filter(ref(ty,10)=llv(ty,2*10+1),10),10+1),10);
a2:=ref(c,barslast(hd));
b2a:=ref(c,barslast(ld));
t1:=barslast(hd)<barslast(ld) and not(hd) ;
t2:=barslast(hd)>barslast(ld) and not(ld);
顶:if(t1,a2,a2),color00ff00,pointdot,linethick2;
stickline(t1,a2,a2,9,0),color00ff00;
底:if(t2,b2a,b2a),colorff00ff,pointdot,linethick2;
stickline(t2,b2a,b2a,9,0),colorff00ff;
{多空线}
var2:=(c+l+o+h)/4;
多头线:= (20*var2+19*ref(var2,1)+18*ref(var2,2)+17*ref(var2,3)+16*ref(var2,4)+15*ref(var2,5)+14*ref(var2,6)+13*ref(var2,7)+12*ref(var2,8)+11*ref(var2,9)+10*ref(var2,10)+9*ref(var2,11)+8*ref(var2,12)+7*ref(var2,13)+6*ref(var2,14)+5*ref(var2,15)+4*ref(var2,16)+3*ref(var2,17)+2*ref(var2,18)+ref(var2,20))/210, circledot;
空头线:=ema(多头线,4);
stickline(多头线>空头线,多头线,空头线,4,10),coloryellow;
stickline(多头线<空头线,多头线,空头线,4,10),colorcccccc;
上一指标公式:680A1{副图}公式 A1指标源码
下一指标公式:小兔快跑2公式 快跑指标源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文大智慧主图公式 大智慧指标源码仅供学习研究。