名称: lq3ain 类别:技术指标
说明: 自动交易系统(视图指标)
ksx:=date<1090631;
kn:=barstatus=2;
x:=1;
rsv1:=(close-llv(low,x*9))/(hhv(high,x*9)-llv(low,x*9))*100;
kx1:=sma(rsv1,x*3,1);
dx1:=sma(kx1,x*3,1);
jx1:=3*kx1-2*dx1;
lc1:=ref(close,2);
rx1:=(sma(max(close-lc1,0),x*6,1))/(sma(abs(close-lc1),x*6,1))*170-30;
jrx1:=(jx1+rx1)/2;
kr1:=sma(jrx1,x*3,1);
dr1:=sma(kr1,x*3,1);
jr1:=3*kr1-2*dr1*ksx;
jre1:=ema(jr1,3)*ksx;
jr1m:=(jr1+40)*ksx;
m0:=close;
m1:=ema(m0,n)*ksx;
m3:=ema(m0,p)*ksx;
m4:=ema(m0,45)*ksx;
m5:=ema(m0,225)*ksx;
qdm1:(m1-ref(m1,1))/ref(m1,1)*100,linethick0,colorffffff;
qdm3:(m3-ref(m3,1))/ref(m3,1)*100,linethick0,colorffff;
qdm4:(m4-ref(m4,1))/ref(m4,1)*100,linethick0,colorffff00;
qdjr:(jr1m-ref(jr1m,1))/ref(jr1m,1)*100,linethick0,colorffffff;
mo1:="mx.mx1#day";
mo2:="mx.mx1#week";
mo:=(if(成本选择=0,mo1,mo2))*ksx;
j:=(1+本周盈利/100)*mo*ksx;
r:=(1+本周亏损/100)*mo*ksx;
gd:=(1+高点下跌)*hhv(high,极限天数);
ds:=(1+低点上涨)*llv(low,极限天数);
bmc:=llv(low,极限天数)<r and close>=ds and qdm1>=买短强度 and qdm3>=买中强度 and qdm4>=买长强度 and qdjr>=买势强度;
smc:=hhv(high,极限天数)>j and close<=gd and qdm1<=卖短强度 and qdm3<=卖中强度;
bts:=barslast(bmc);
sts:=barslast(smc);
kbs:=if(bts<sts,2,0);
bko:=cross(kbs,1);
sko:=cross(1,kbs);
mrts:=barslast(bko)+1;
mdjg:=if(mrts=1,low,ref(low,mrts-1));
mhzg:=hhv(high,mrts+1);
mhzf:=(hhv(high,mrts)-mdjg)/mdjg;
zsw:(1+mhzf+止损比率)*mdjg,linethick0,colorff;
zy:=high>(1+止盈比率)*ref(low,barslast(bko));
zs:=close<zsw;
bkts:=barslast(bko);
skts:=barslast(sko);
knbs:=if(bkts<skts,2,0);
bk:cross(knbs,1)*ksx,linethick0;
sk:cross(1,knbs)*ksx,linethick0;
zys:(zy+zs and sk)*ksx,linethick0,colorff;
jyk:bk+sk,linethick0;
drawicon(bk=1,low,1),align1;
drawicon(sk=1 or zys=1,1.012*high,2),align1;
drawicon(zys=1,1.03*high,5),align1;
drawtext(bk=1,1.021*low,'-----'),colorffff;
drawtext(sk=1,0.991*high,'-----'),colorffff;
partline(m5>=ref(m5,1),m5),linethick4,color99ff;
partline(m5<ref(m5,1),m5),linethick4,colorff3300;
partline(m4>=ref(m4,1),m4),linethick4,color99ff;
partline(m4<ref(m4,1),m4),linethick4,colorff3300;
partline(m3>=ref(m3,1),m3),linethick3,color99ff;
partline(m3<ref(m3,1),m3),linethick3,colorff3300;
partline(m1>=ref(m1,1),m1),linethick2,color99ff;
partline(m1<ref(m1,1),m1),linethick2,colorff3300;
m1,linethick0,colorffffff;
m3,linethick0,colorffffff;
m4,linethick0,colorffffff;
mo,linethick1,colordddddd;
j,coloraa00aa;
r,coloraa00;
名称: mx 类别:技术指标
说明: 均价(自动交易指标引用)
mx1:(high+low)/2;
mxh:high;
mxl:low;
mx2:ref(mx1,1);
mx3:ref(mx1,2);
mx4:mx2-mx3+mx3;
mxh2:mx2*1.0618;
mxl2:mx2*0.9382;
名称: 买入ls3b 类别:条件选股
说明: 自动交易系统买入(选股)
ksx:=date<1090631;
x:=1;
rsv1:=(close-llv(low,x*9))/(hhv(high,x*9)-llv(low,x*9))*100;
kx1:=sma(rsv1,x*3,1);
dx1:=sma(kx1,x*3,1);
jx1:=3*kx1-2*dx1;
lc1:=ref(close,2);
rx1:=(sma(max(close-lc1,0),x*6,1))/(sma(abs(close-lc1),x*6,1))*170-30;
jrx1:=(jx1+rx1)/2;
kr1:=sma(jrx1,x*3,1);
dr1:=sma(kr1,x*3,1);
jr1:=3*kr1-2*dr1;
jre1:=ema(jr1,3);
jr1m:=jr1+40;
m0:=close;
m1:=ema(m0,n);
m3:=ema(m0,p);
m4:=ema(m0,45);
m5:=ema(m0,225);
qdm1:=(m1-ref(m1,1))/ref(m1,1)*100;
qdm3:=(m3-ref(m3,1))/ref(m3,1)*100;
qdm4:=(m4-ref(m4,1))/ref(m4,1)*100;
qdjr:=(jr1m-ref(jr1m,1))/ref(jr1m,1)*100;
mo1:="mx.mx1#day";
mo2:="mx.mx1#week";
mo:=(if(成本选择=0,mo1,mo2))*ksx;
j:=(1+本周盈利/100)*mo;
r:=(1+本周亏损/100)*mo;
gd:=(1+高点下跌)*hhv(high,极限天数);
ds:=(1+低点上涨)*llv(low,极限天数);
bmc:=llv(low,极限天数)<r and close>=ds and qdm1>=买短强度 and qdm3>=买中强度 and qdm4>=买长强度 and qdjr>=买势强度;
smc:=hhv(high,极限天数)>j and close<=gd and qdm1<=卖短强度 and qdm3<=卖中强度;
bts:=barslast(bmc);
sts:=barslast(smc);
kbs:=if(bts<sts,2,0);
bko:=cross(kbs,1);
sko:=cross(1,kbs);
mrts:=barslast(bko)+1;
mdjg:=if(mrts=1,low,ref(low,mrts-1));
mhzg:=hhv(high,mrts+1);
mhzf:=(hhv(high,mrts)-mdjg)/mdjg;
zsw:=(1+mhzf+止损比率)*mdjg;
zy:=high>(1+止盈比率)*ref(low,barslast(bko));
zs:=close<zsw;
bkts:=barslast(bko);
skts:=barslast(sko);
knbs:=if(bkts<skts,2,0);
bk:=cross(knbs,1);
sk:=cross(1,knbs);
zys:=zy+zs and sk;
jyk:bk*ksx;
名称: 卖出ls3s 类别:条件选股
说明: 自动交易系统卖出(选股)
ksx:=date<1090631;
x:=1;
rsv1:=(close-llv(low,x*9))/(hhv(high,x*9)-llv(low,x*9))*100;
kx1:=sma(rsv1,x*3,1);
dx1:=sma(kx1,x*3,1);
jx1:=3*kx1-2*dx1;
lc1:=ref(close,2);
rx1:=(sma(max(close-lc1,0),x*6,1))/(sma(abs(close-lc1),x*6,1))*170-30;
jrx1:=(jx1+rx1)/2;
kr1:=sma(jrx1,x*3,1);
dr1:=sma(kr1,x*3,1);
jr1:=3*kr1-2*dr1;
jre1:=ema(jr1,3);
jr1m:=jr1+40;
m0:=close;
m1:=ema(m0,n);
m3:=ema(m0,p);
m4:=ema(m0,45);
m5:=ema(m0,225);
qdm1:=(m1-ref(m1,1))/ref(m1,1)*100;
qdm3:=(m3-ref(m3,1))/ref(m3,1)*100;
qdm4:=(m4-ref(m4,1))/ref(m4,1)*100;
qdjr:=(jr1m-ref(jr1m,1))/ref(jr1m,1)*100;
mo1:="mx.mx1#day";
mo2:="mx.mx1#week";
mo:=(if(成本选择=0,mo1,mo2))*ksx;
j:=(1+本周盈利/100)*mo;
r:=(1+本周亏损/100)*mo;
gd:=(1+高点下跌)*hhv(high,极限天数);
ds:=(1+低点上涨)*llv(low,极限天数);
bmc:=llv(low,极限天数)<r and close>=ds and qdm1>=买短强度 and qdm3>=买中强度 and qdm4>=买长强度 and qdjr>=买势强度;
smc:=hhv(high,极限天数)>j and close<=gd and qdm1<=卖短强度 and qdm3<=卖中强度;
bts:=barslast(bmc);
sts:=barslast(smc);
kbs:=if(bts<sts,2,0);
bko:=cross(kbs,1);
sko:=cross(1,kbs);
mrts:=barslast(bko)+1;
mdjg:=if(mrts=1,low,ref(low,mrts-1));
mhzg:=hhv(high,mrts+1);
mhzf:=(hhv(high,mrts)-mdjg)/mdjg;
zsw:=(1+mhzf+止损比率)*mdjg;
zy:=high>(1+止盈比率)*ref(low,barslast(bko));
zs:=close<zsw;
bkts:=barslast(bko);
skts:=barslast(sko);
knbs:=if(bkts<skts,2,0);
bk:=cross(knbs,1);
sk:=cross(1,knbs);
zys:=zy+zs and sk;
jyk:sk*ksx;
名称: 止损ls3r 类别:条件选股
说明: 自动交易系统止损止盈(选股)
ksx:=date<1090631;
x:=1;
rsv1:=(close-llv(low,x*9))/(hhv(high,x*9)-llv(low,x*9))*100;
kx1:=sma(rsv1,x*3,1);
dx1:=sma(kx1,x*3,1);
jx1:=3*kx1-2*dx1;
lc1:=ref(close,2);
rx1:=(sma(max(close-lc1,0),x*6,1))/(sma(abs(close-lc1),x*6,1))*170-30;
jrx1:=(jx1+rx1)/2;
kr1:=sma(jrx1,x*3,1);
dr1:=sma(kr1,x*3,1);
jr1:=3*kr1-2*dr1;
jre1:=ema(jr1,3);
jr1m:=jr1+40;
m0:=close;
m1:=ema(m0,n);
m3:=ema(m0,p);
m4:=ema(m0,45);
m5:=ema(m0,225);
qdm1:=(m1-ref(m1,1))/ref(m1,1)*100;
qdm3:=(m3-ref(m3,1))/ref(m3,1)*100;
qdm4:=(m4-ref(m4,1))/ref(m4,1)*100;
qdjr:=(jr1m-ref(jr1m,1))/ref(jr1m,1)*100;
mo1:="mx.mx1#day";
mo2:="mx.mx1#week";
mo:=(if(成本选择=0,mo1,mo2))*ksx;
j:=(1+本周盈利/100)*mo;
r:=(1+本周亏损/100)*mo;
gd:=(1+高点下跌)*hhv(high,极限天数);
ds:=(1+低点上涨)*llv(low,极限天数);
bmc:=llv(low,极限天数)<r and close>=ds and qdm1>=买短强度 and qdm3>=买中强度 and qdm4>=买长强度 and qdjr>=买势强度;
smc:=hhv(high,极限天数)>j and close<=gd and qdm1<=卖短强度 and qdm3<=卖中强度;
bts:=barslast(bmc);
sts:=barslast(smc);
kbs:=if(bts<sts,2,0);
bko:=cross(kbs,1);
sko:=cross(1,kbs);
mrts:=barslast(bko)+1;
mdjg:=if(mrts=1,low,ref(low,mrts-1));
mhzg:=hhv(high,mrts+1);
mhzf:=(hhv(high,mrts)-mdjg)/mdjg;
zsw:=(1+mhzf+止损比率)*mdjg;
zy:=high>(1+止盈比率)*ref(low,barslast(bko));
zs:=close<zsw;
bkts:=barslast(bko);
skts:=barslast(sko);
knbs:=if(bkts<skts,2,0);
bk:=cross(knbs,1);
sk:=cross(1,knbs);
zys:=zy+zs and sk;
jyk:zys*ksx;
注意未来函数
上一指标公式:突破3公式 飞狐突破指标 源码
下一指标公式:经典操盘副图公式 飞狐操盘指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文号称年收益超300%公式 飞狐号称指标 源码仅供学习研究。