实盘盈亏监控
1.红绿箭头为指标买卖信号;2.手指为指标止赢止损信号;
★3.渐进止盈:当超出止盈目标价后,只要趋势好就一路持有,并可用“回调止盈”信号决定卖出,如果一旦显”9“就现价卖出,双保险。这也是我多年买来的教训总结。
4.设定有两个自买股,在参数中“指定买价a和指定买价b”处填入买价后,在指标中对应的个股“a买价和b买价"即可。
参数:指定买价a:最小1.00,最大300.00,缺省(指定买价a买价)
指定买价b:最小1.00,最大300.00,缺省(指定买价b买价)。
{ 实盘盈亏监控(源码)---泊砂实战系列3}
ma3:ma(close,3),colorwhite;
{不新高破此线短逃/}
操作:=ma(c,5);
不高破线:hhv(操作,13),linethick1,colorbrown,dotline;
{短线趋势线}
m5:ma(c,5),coloryellow,linethick2;
if(m5>ref(m5,1),m5,drawnull),colorred,linethick2;
⒑日涨跌%:(c-ref(close,10))/ref(close,10)*100,colorgreen,nodraw;
短期压力:hhv(h,20),colorred,nodraw;
短期支撑:llv(l,20),coloryellow,nodraw;
{周均线显示 }
wc:=c#week,linethick0;
周3:=ema(wc,3),colorligray;
周10:=ema(wc,10),colorcyan;
bt1:=ma(wc,1);
bt2:=sma(sma(sma(bt1,2,1),2,1),2,1),colorgreen,linethick1;
sma2:=ma(bt2,3);
周持股:=if(bt2>sma2,bt2,drawnull),colorred,linethick1;
周持币:=if(bt2<sma2,bt2,drawnull),colorgreen,linethick1;
周em3:=if(周3>ref(周3,1),bt2,drawnull),colorred,linethick1;
drawicon(cross(bt2,周3),h*1.01,2);
{买卖全息精选}
{rsi周日同显/rsi周叉 n1 6 n2 12 n3 24}
n3:=12;
lc:= ref(close,1);
周r1:=ma("rsi.rsi1#week"(6,12,n3),3),coloryellow;
周r2:=ma("rsi.rsi1#week"(6,12,n3),5)colorff00ff;
周r3:=ma("rsi.rsi2#week"(6,12,n3),7),colorligreen;
{rsi参数:n1:=6;}
rsi:=sma(max(c-ref(c,1),0),6,1)/sma(abs(c-ref(c,1)),6,1)*100,linethick2,colorwhite;
r角度:=sma(max(c-ref(c,1),0),21,1)/sma(abs(c-ref(c,1)),21,1)*100,coloryellow;
转强区:=if((周r2>ref(周r2,1) ),30,0),color0000ff,nodraw;
{辅助限定信号}
n1:=9;
n2:=5;
mtm:=c-ref(c,1);
多:=100*ema(ema(mtm,n1),n1)/ema(ema(abs(mtm),n1),n1),colorwhite;
空:=ma(多,n2),coloryellow;
xd主力进:=多>ref(多,1) ;
限定卖:=多<ref(多,1); {辅助限定信号}
{逃顶指标 }
var9t:=ema(close,2)-ema(close,55);
var10t:=ema(var9t,13);
var11t:=2*(var9t-var10t);
主力资金:=(pow(var11t,3)*0.1+pow(var11t,1))/4,colorwhite,linethick1,dotline;
主升区:=多>空 or 主力资金>ref(主力资金,1) ;
xd主升:=主升区=1 ;
x:=转强区=30 and cross(周3,bt2);{买入信号综合}
drawicon(filter(x=1,2),l*0.99,1);
{自动计算止赢损 }
买天:=barslast(x);
买价:=ref(c,买天),nodraw;
手续费:=0.003;
盈亏%:=100*((c-买价)/买价-手续费),nodraw,colore66878;
止赢5%:=买价*(1+0.03+手续费),nodraw,color000999;
止损2%:=买价*(1-0.02+手续费),colorgreen,nodraw;
回调止赢:=hhv(h,x+1)*(1-0.03+手续费),colorlimagenta,,nodraw;{比近两日最高价下跌3%,进行回调止赢};
{实战冠军}
止赢条件:=h>止赢5%;
止赢天数:=barslast(止赢条件);
止损条件:=c<止损2%;
止损天数:=barslast(止损条件);
止赢:=买天> 止赢天数 and 止赢天数<止损天数;
止赢天数2:=barslast(止赢条件 and 止赢 and count(ref(止赢,1),1)=0);
止损:=买天>止损天数 and 止赢天数>止损天数;
止损天数2:=barslast(止损 and count(ref(止损,1),1)=0);
{drawtext(止赢 and count(ref(止赢,1),1)=0 and 买入天数<止损天数2,h*1.02,'.止赢'); }
drawicon(止赢 and count(ref(止赢,1),1)=0 and 买天<止损天数2,h,11);
{drawtext(止损 and count(ref(止损,1),1)=0 and 买入天数<止赢天数2,l*0.98,'.止损'); }
drawicon(止损 and count(ref(止损,1),1)=0 and 买天<止赢天数2,l,12);
手续费1:=0.003;
{实盘指定买价a.止盈损}
a买价:=指定买价a,nodraw;
a盈亏%:=100*((c-a买价)/a买价-手续费),colore66878,nodraw;
a止赢5%:=a买价*(1+0.05+手续费),color000999,nodraw; {从买进到当天股价上涨5%止赢,可以自定设置}
a止损2%:=a买价*(1-0.02+手续费),colorgreen,nodraw;{从买进到当天股价下跌2%止损,可以自定设置};
{实盘指定买价b.止盈损}
b买价:=指定买价b,nodraw;
b盈亏%:=100*((c-b买价)/b买价-手续费),colore66878,nodraw;
b止赢5%:=b买价*(1+0.05+手续费),color000999,nodraw; {从买进到当天股价上涨5%止赢,可以自定设置}
b止损2%:=b买价*(1-0.02+手续费),colorgreen,nodraw; {从买进到当天股价下跌2%止损,可以自定设置};
{渐进止赢点}
zl止赢价差:=(c-ref(h,1))/c*100,nodraw;{近两日最高价与现价差。}
zl渐进点:=abs(zl止赢价差<=-3);{止赢价差-3%的绝对值为提示点。}
显9现价卖:=if(zl渐进点=1,9,0),nodraw;{渐进止赢显9现价卖。}
hh:=const(hhv(h,160));
ll:=const(llv(l,160));{160可改成你习惯锁定的日k线数}
hl1:=const(if(const(ref(ma(c,10),10))>const((hh+ll)/2),0.76,0.04));
hl2:=const(if(const(ref(ma(c,10),10))>const((hh+ll)/2),0.80,0.08));
hl3:=const(if(const(ref(ma(c,10),10))>const((hh+ll)/2),0.84,0.12));
hl4:=const(if(const(ref(ma(c,10),10))>const((hh+ll)/2),0.88,0.16));
hl5:=const(if(const(ref(ma(c,10),10))>const((hh+ll)/2),0.92,0.20));
hl6:=const(if(const(ref(ma(c,10),10))>const((hh+ll)/2),0.96,0.24));
drawtext_fix(1,0.00,0,0,'所属行业:')color0080ff;
drawtext_fix(1,0.07,0,0,hyblock)color0080ff;
drawtext_fix(1,0.14,0,0,'所属地区:')color00ffff;
drawtext_fix(1,0.21,0,0,dyblock)color00ffff;
drawtext_fix(1,0.01,0.9,0,externstr(0,1))color0000ff;
drawtext_fix(1,0.01,0.98,0,'信号买股:')colormagenta;
{drawtext_fix(1,0.08,0.98,0,externstr(0,1))color0000ff; }
drawtext_fix(1,0.01,0.93,0,'实盘监控:')color0000ff;
{信号买股}
drawtext_fix (1,0.062,0.98,0,'买价:'),color008fff;
drawnumber_fix(1,0.09,0.98,0,const(买价)),colorffffbf;
drawtext_fix (1,0.14,0.98,0,'买天:'),,color008fff;
drawnumber_fix(1,0.17,0.98,0,const(买天)),colorffffbf;
drawtext_fix (1,0.21,0.98,0,'盈亏%:'),color008fff;
drawnumber_fix(1,0.25,0.98,0,const(盈亏%)),colorffffbf;
drawtext_fix (1,0.29,0.98,0,'止赢5%:'),color008fff;
drawnumber_fix(1,0.34,0.98,0,const(止赢5%)),colorffffbf;
drawtext_fix (1,0.38,0.98,0,'止损2%:'),color008fff;
drawnumber_fix(1,0.43,0.98,0,const(止损2%)),colorffffbf;
drawtext_fix (1,0.47,0.98,0,'回调止赢:'),color008fff;
drawnumber_fix(1,0.53,0.98,0,const(回调止赢)),colorffffbf;
drawtext_fix (1,0.59,0.98,0,'显9现价卖:'),colorlimagenta;
drawnumber_fix(1,0.66,0.98,0,const(显9现价卖)),colorlimagenta;{渐进止赢显9现价卖。}
{实盘持股}
drawtext_fix (1,0.062,0.93,0,'a买价:'),color00cccc;
drawnumber_fix(1,0.1,0.93,0,const(a买价)),colorlicyan;
drawtext_fix (1,0.14,0.93,0,'a盈亏%:'),color00cccc;
drawnumber_fix(1,0.19,0.93,0,const(a盈亏%)),colorlicyan;
drawtext_fix (1,0.24,0.93,0,'a止赢5%:'),color00cccc;
drawnumber_fix(1,0.3,0.93,0,const(a止赢5%)),colorlicyan;
drawtext_fix (1,0.342,0.93,0,'a止损2%:'),color00cccc;
drawnumber_fix(1,0.4,0.93,0,const(a止损2%)),colorlicyan;
drawtext_fix (1,0.44,0.93,0,'b买价:'),color00cccc;
drawnumber_fix(1,0.48,0.93,0,const(b买价)),colorlicyan;
drawtext_fix (1,0.52,0.93,0,'b盈亏%:'),color00cccc;
drawnumber_fix(1,0.57,0.93,0,const(b盈亏%)),colorlicyan;
drawtext_fix (1,0.61,0.93,0,'b止赢5%:'),color00cccc;
drawnumber_fix(1,0.67,0.93,0,const(b止赢5%)),colorlicyan;
drawtext_fix (1,0.71,0.93,0,'b止损2%:'),color00cccc;
drawnumber_fix(1,0.77,0.93,0,const(b止损2%)),colorlicyan;
{股本概况}
总股本:=strcat(strcat('总股本: ',con2str(totalcapital/1000000,2)),'亿');
流通盘:=strcat(strcat(' 流通盘: ',con2str(capital/1000000,2)),'亿');
全流通:=strcat(' 全流通: ',con2str((capital/1000000)/(totalcapital/1000000),2));
市值:=strcat(strcat(' 流通市值: ',con2str((capital/1000000)*c,2)),'亿');
上市日期:=strcat(' 上市日期: ',con2str(hhv((barscount(c)=0)*(date+19000000),0),0));
大盘:=strcat('大盘: ',con2str(finance(7)>1000000000,0));
中盘:=strcat('中盘: ',con2str(finance(7)<1000000000 and finance(7)>100000000,0));
小盘:=strcat('小盘: ',con2str(finance(7)<100000000,0));
盘小绩优:=strcat('盘小绩优: ',con2str(finance(7)<1000000000 and dynainfo(39)>0 and dynainfo(39)<=28,0));
股本概况:=strcat('股本概况: ',strcat(strcat(strcat(strcat(strcat(strcat(strcat(流通盘,市值),全流通),大盘),中盘),小盘),盘小绩优),上市日期));
{财务系数}
每股收益:=strcat(' 每股收益: ',con2str(finance(33),2));
市盈率:=strcat('市盈率: ',con2str(c/finance(33),2));
市净率:=strcat(' 市净率: ',con2str(c/finance(34),2));
现金流:=strcat(' 现金流: ',con2str(finance(25)/1000000000,2));
流动比率:=strcat(' 流动比率: ',con2str(finance(11)/finance(15),2));{流动比率值>1.5<2.5较为合理,低于1说明偿债能力欠佳。}
上一指标公式:黄大仙占股主图(主图源码)下载 通达信源码
下一指标公式:周级别股市选股指标选股版下载 通达信源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文实盘盈亏监控——设定好盈亏百分比率指标帮你自动监控(主图+源码+说明)下载 通达信实盘监控仅供学习研究。