资源描述:
《【股票指标公式下载】-【大智慧】数据投机(计算股价、》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【大智慧】数据投机(计算股价、庄家实力、精确风险系数)-指标公式源码{计算股价}input:股数(0,0,10000000),买入价(0,0,500),预期涨幅(0,0,100),服务费(0,0,100){根据各证券所收费不同,自行调节};预卖价位:=买入价*(预期涨幅*0.01+1);买入收费:=买入价*股数*0.0018{各证券所收费不同,自行调节}+服务费;卖出收费:=预卖价位*股数*0.0028{各证券所收费不同,自行调节}+服务费;预期盈利:=预卖价位*股数-买入价*股数-买入收费-卖出收费;DRAWTEXTREL(320,850,'¤预卖价位:
2、'+NUMTOSTRN(预卖价位,2)+'元'),LINETHICK5,COLORAFAFAF;DRAWTEXTREL(540,850,'¤预期盈利:'+NUMTOSTRN(预期盈利,2)+'元'),LINETHICK5,COLORAFAFAF;{庄家实力}cyc0:=MAXCYC;庄家实力:c/cyc0,precis2,LINETHICK0,COLORC68CFF;DRAWTEXTREL(100,70,'☆庄家实力:'+NUMTOSTRN(庄家实力,2)+'级'),LINETHICK5,COLORC68CFF;{精确风险系数}rsv:=(c-llv(l,
3、15))/(hhv(h,15)-llv(l,15))*100;kk:=sma(rsv,10,1);dd:=sma(kk,5,1);zlcm:=intpart(sma(rsv,10,1));shcm:=intpart(sma(kk,5,1));风险系数:zlcm+shcm-70,precis0,LINETHICK0,COLOR66FFFF;DRAWTEXTREL(320,70,'※风险系数:'+NUMTOSTRN(风险系数,2)+'级'),LINETHICK5,COLOR66FFFF;{历史价位系数}历史价位:(c-llv(l,0))/(hhv(h,0)-l
4、lv(l,0))*100,precis0,LINETHICK0,COLORFFBB77;DRAWTEXTREL(755,70,'⊙历史价位:'+NUMTOSTRN(历史价位,2)+'%'),LINETHICK5,COLORFFBB77;{量能饱和度}饱和量度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),precis0,LINETHICK0,COLORE07EAA;DRAWTEXTREL(60,270,'§饱和量
5、度:'+NUMTOSTRN(饱和量度,2)+'℃'),LINETHICK5,COLORE07EAA;{股价倾斜系数}hot:=ma(c,13);倾斜系数:atan(hot-ref(hot,1))*3.142*100,precis0,LINETHICK0,COLORFFCC62;DRAWTEXTREL(245,270,'∥倾斜系数:'+NUMTOSTRN(倾斜系数,2)+'度'),LINETHICK5,COLORFFCC62;{获利比例}获利比例:WINNER(CLOSE)*100,precis0,LINETHICK0,COLOR79A5FF;浮筹比例:(w
6、inner(c*1.1)-winner(c*0.9))/winner(hhv(h,0))*100,precis0,LINETHICK0,COLORFFCC62;DRAWTEXTREL(430,270,'◇获利比例:'+NUMTOSTRN(获利比例,2)+'%'),LINETHICK5,COLOR79A5FF;DRAWTEXTREL(615,270,'□浮筹比例:'+NUMTOSTRN(浮筹比例,2)+'%'),LINETHICK5,COLORFFCC62;{人均持股}人均持股:=INTPART(FINANCE2(36)/extradata('散户线')*1
7、0000);DRAWTEXTREL(800,270,'〓人均持股:'+NUMTOSTRN(人均持股,0)+'股'),LINETHICK5,COLOR79A5FF;{止损价位}LC:=REF(CLOSE,1);止损价位:=(LC*1.0035*97+0.2)/99.65;DRAWTEXTREL(100,850,'☆止损价位:'+NUMTOSTRN(止损价位,2)+'元'),LINETHICK5,colorWHITE;{成本预测}建仓成本:MAXCYC,precis2,LINETHICK0,COLORFFBB77;心理价位:DMA(AMOUNT/(100*VO
8、L),VOL/(100*FINANCE2(37)))*1.12,p