C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- DRAWTEXT((BARPOS = SYSPARAM(2)),HIGH,((((((((((((((((('所属板块:' + BLKNAME) + '\n') + '总股本')
- + NUMTOSTR(FINANCE(1),0)) + '万股') + ' 流通A股') + NUMTOSTR(FINANCE(7),0)) + '万股') + ' 净资产') +
- NUMTOSTR(FINANCE(35),2)) + '亿元') + ' 每股收益') + NUMTOSTR(FINANCE(33),2)) + '元') + '市盈率') + NUMTOSTR(DYNAINFO(39),2)) + '%')),ALIGN4,colorFF00;
-
- DRAWTEXTEX(c,1,4,120,''+'涨幅:'+NUMTOSTR((DYNAINFO(14) * 100),2)+'%'+' 振幅:'+NUMTOSTR((DYNAINFO(13) * 100),2)+'%'+' 换手率:'+NUMTOSTR((DYNAINFO(37) * 100),2)+'%'),color00FFFF;
-
- ma3:=ma(c,3);
- ma5:ma(c,5);
- ma10:ma(c,10);
- ma20:ma(c,20);
- ma60:ma(c,60);
- m3:=ma3>ref(ma3,1) and ref(ma3,1)<=ref(ma3,2);
- m5:=ma5>ref(ma5,1) and ref(ma5,1)<=ref(ma5,2);
- m5down:=ma5<ref(ma5,1) and ref(ma5,1)>=ref(ma5,2);
-
- m510:=abs(ma5-ma10);
- m520:=abs(ma5-ma20);
- {买入条件}
- ma5tg:=llv(ma5,7)>llv(ma5,20);
-
- m510sx:=hhv(m510,3)<hhv(m510,13);
- m520sx:=hhv(m520,3)<hhv(m520,13);
- stickline(m510sx and m520sx and m5,o,c,7,0),COLORMAGENTA;
-
-
- t1:=barslast(c/ref(c,1)<=0.97);
- dyfz:=m3 and c>=(ref(c,t1)+ref(o,t1))/2*0.98 and count(c<ref(c,1),7)>=2;
- stickline(dyfz,o,c,7,0),COLORyellow;
-
-
- csx:=c>ma5 and c>ma10 and c>ma20 and l<ma20;
- pl:=abs(ma5-ma10)/ma5*100<2 and abs(ma5-ma20)/ma5*100<5;
- DRAWTEXT(csx and pl,low,'买'),Colorred;
-
- 大底:=m520sx and cross(c,ma60) and ma60>ref(ma60,1)*0.98 and
- ma60<ref(ma60,1)*1.02 and count(ma60<ref(ma60,1),20)>13
- and abs(ma20-ma60)/ma20*100<5;
- DRAWTEXT(大底,low,'大底'),COLORMAGENTA;
- {卖出条件}
- towfl:=c<ref(c,1) and ref(c,1)>ref(c,2);
- stickline(towfl and m5down,o,c,7,0),colorgreen;