通达信帐户信息主图指标公式
2020/10/7 18:56:24
{帐户}
股一成本:=10.88; 股一数量:=300; 股一收盘价:="000601$C";
股二成本:=66.053; 股二数量:=100; 股二收盘价:="002281$C";
股三成本:=16.293; 股三数量:=400; 股三收盘价:="002566$C";
股四成本:=6.51; 股四数量:=0; 股四收盘价:="600175$C";
股五成本:=9.5; 股五数量:=0; 股五收盘价:="300301$C";
{以上数据应根据自己所购股票的实际情况,交易成功后修改}
DRAWTEXT_FIX(C>0,0,0.15,0,'韶能股份'),COLORCYAN;
DRAWTEXT_FIX(C>0,0,0.27,0,'光迅科技'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0,0.39,0,'益盛药业'),COLORCYAN;
DRAWTEXT_FIX(C>0,0,0.51,0,'美都能源'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0,0.63,0,'长方照明'),COLORCYAN;
{股票名称应与自己实际做修改}
股一盈亏:=INTPART((股一收盘价-股一成本)*股一数量);
股二盈亏:=INTPART((股二收盘价-股二成本)*股二数量);
股三盈亏:=INTPART((股三收盘价-股三成本)*股三数量);
股四盈亏:=INTPART((股四收盘价-股四成本)*股四数量);
股五盈亏:=INTPART((股五收盘价-股五成本)*股五数量);
股一盈亏比例:=(股一收盘价-股一成本)/股一成本*100;
股二盈亏比例:=(股二收盘价-股二成本)/股二成本*100;
股三盈亏比例:=(股三收盘价-股三成本)/股三成本*100;
股四盈亏比例:=(股四收盘价-股四成本)/股四成本*100;
股五盈亏比例:=(股五收盘价-股五成本)/股五成本*100;
股一涨跌:=CONST(股一收盘价-股一成本);
股二涨跌:=CONST(股二收盘价-股二成本);
股三涨跌:=CONST(股三收盘价-股三成本);
股四涨跌:=CONST(股四收盘价-股四成本);
股五涨跌:=CONST(股五收盘价-股五成本);
DRAWTEXT_FIX(C>0,0.01,0.05,0,'名称'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.08,0.05,0,'库存'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.15,0.05,0,'成本'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.22,0.05,0,'盈额'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.29,0.05,0,'盈比'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.36,0.05,0,'涨跌'),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.08,0.15,0,股一数量),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.08,0.27,0,股二数量),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.08,0.39,0,股三数量),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.08,0.51,0,股四数量),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.08,0.63,0,股五数量),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.15,0.15,0,股一成本),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.15,0.27,0,股二成本),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.15,0.39,0,股三成本),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.15,0.51,0,股四成本),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.15,0.63,0,股五成本),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.22,0.15,0,CONST(股一盈亏)),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.22,0.27,0,CONST(股二盈亏)),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.22,0.39,0,CONST(股三盈亏)),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.22,0.51,0,CONST(股四盈亏)),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.22,0.63,0,CONST(股五盈亏)),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.29,0.15,0,CONST(股一盈亏比例)),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.29,0.27,0,CONST(股二盈亏比例)),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.29,0.39,0,CONST(股三盈亏比例)),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.29,0.51,0,CONST(股四盈亏比例)),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.29,0.63,0,CONST(股五盈亏比例)),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.36,0.15,0,股一涨跌),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.36,0.27,0,股二涨跌),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.36,0.39,0,股三涨跌),COLORCYAN;
DRAWNUMBER_FIX(C>0,0.36,0.51,0,股四涨跌),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.36,0.63,0,股五涨跌),COLORCYAN;
总盈:=CONST(股一盈亏)+CONST(股二盈亏)+CONST(股三盈亏)+CONST(股四盈亏)+CONST(股五盈亏);
DRAWTEXT_FIX(C>0,0.43,0.05,0,'总盈额'),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.43,0.15,0,INTPART(总盈)),COLORCYAN;
总成本:=CONST((股一成本*股一数量)+(股二成本*股二数量)+(股三成本*股三数量)+(股四成本*股四数量)+(股五成本*股五数量));
总盈比:=总盈/总成本*100;
DRAWTEXT_FIX(C>0,0.43,0.27,0,'总盈比'),COLORYELLOW;
DRAWNUMBER_FIX(C>0,0.43,0.39,0,总盈比),COLORCYAN;
投 股票网 www. tou18.cn
股市公式下载推荐