通达信成本计算主图指标公式
2020/6/12 18:24:35
{参数:进价和股数自己设置}
进价:=15;股数:=500;
买入价格:进价,NODRAW,COLORYELLOW;
买入股数:股数,NODRAW,COLORYELLOW;
买入费用:(进价*股数*1.001+股数*0.006),NODRAW,COLORYELLOW;
保本价:(进价*股数*1.001+股数*0.012)/0.998/股数,NODRAW,COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=8,保本价*1.005,'保本价'),COLORWHITE;
STICKLINE(保本价,保本价,保本价,10,1),COLORWHITE;
DRAWNUMBER(CURRBARSCOUNT=6,保本价*1.01,保本价),COLORWHITE;
获利:IF(DYNAINFO(7)>保本价,(DYNAINFO(7)-保本价)*股数,DRAWNULL),COLORWHITE,NODRAW;
获利比:IF(DYNAINFO(7)>保本价,(DYNAINFO(7)-保本价)/保本价*100,DRAWNULL),COLORWHITE,NODRAW;
看股 吧公式 www.kang uba.com
其它股票公式列表