直观的个股成功率
在论坛潜水很久,很少给人回贴,很对不起大家,现有一想法,就是把买点标出来,
把买价定下来,把止损定下来,把嬴利要求定下耒,便知成功率。现略有小成,献
丑出来,高手毋笑。各位把自己喜欢的,别人的,买入点,可以一一填在买点:=
内,再确定止损尺度.嬴利要求。便知分晓?
C/C++ Code复制内容到剪贴板
- 买点:= ;
- DRAWICON(买点,2,23);
- 买距:=BARSLAST(买点) ,NODRAW;
- 尺:=买距>=1,NODRAW;
- 买价:买点*价,COLORGREEN,NODRAW;
-
- {止损}
- 止损:REF(买价,买距)*(1-0.055)*尺,COLORGREEN,NODRAW;
- 损:=C<=止损 ;
- 止:=COUNT(损,买距),NODRAW;
- 止损1:=IF(止>1,止=1,损),COLORWHITE,NODRAW;
- 距:=BARSLAST(止损1),COLORYELLOW ,NODRAW;
- 损距:=买距-距>0,COLORGREEN,NODRAW;
-
- {赢5%}
- 赢4.5%:REF(买价,买距)*(1+0.045)*尺,COLORYELLOW,NODRAW;
- 卖4.5%:=H>赢4.5% AND 买距>0,NODRAW;
- 出4.5%:=COUNT(卖4.5%,买距),NODRAW;
- 卖出4.5%:=IF(出4.5%>1,出4.5%=1,卖4.5%)AND 损距=0 ,COLORWHITE,NODRAW;
- STICKLINE(卖出4.5%,0,3,2,0)COLORRED;
- 赢距:=BARSLAST(卖出4.5%),COLORYELLOW ,NODRAW;
-
- 赢距1:=买距-赢距>0,COLORGREEN,NODRAW;
- 止损2:=止损1 AND 赢距1=0;
- DRAWICON(止损2,12,15);
-
- 赢7.5%:REF(买价,买距)*(1+0.075)*尺,COLORYELLOW,NODRAW;
- 卖7.5%:=H>赢7.5% AND 买距>0,NODRAW;
- 出7.5%:=COUNT(卖7.5%,买距),NODRAW;
- 卖出7.5%:=IF(出7.5%>1,出7.5%=1,卖7.5%)AND 损距=0,COLORWHITE,NODRAW;
- STICKLINE(卖出7.5%,0,3,2,0)COLORRED;
- STICKLINE(卖出7.5%,6,3,2,0)COLORGREEN;
-
- 赢10%:REF(买价,买距)*(1+0.1)*尺,COLORYELLOW,NODRAW;
- 卖10%:=H>赢10% AND 买距>0,NODRAW;
- 出10%:=COUNT(卖10%,买距),NODRAW;
- 卖出10%:=IF(出10%>1,出10%=1,卖10%)AND 损距=0,COLORWHITE,NODRAW;
- STICKLINE(卖出10%,0,3,2,0)COLORRED;
- STICKLINE(卖出10%,6,3,2,0)COLORGREEN;
- STICKLINE(卖出10%,9,6,2,0)COLORYELLOW;
- 总买: SUM(买点,0) ,NODRAW,COLORGREEN;
- 赢卖:SUM(卖出4.5%,0) ,NODRAW,COLORGREEN;
- 亏:SUM(止损2,0) ,NODRAW,COLORGREEN;
- 胜率:(赢卖)/(赢卖+亏),NODRAW,COLORGREEN;
- STICKLINE(CURRBARSCOUNT=95,10,14,(总买-亏)/总买*100,0),COLORMAGENTA;
- STICKLINE(CURRBARSCOUNT=84,10,14,亏/总买*100,0),COLORCYAN ;
- DRAWTEXT(CURRBARSCOUNT=110,12,'赚');
- DRAWTEXT(CURRBARSCOUNT=75,12,'亏');
-
-
-
- STICKLINE(强,20,25,2,1),COLORYELLOW;
- STICKLINE(止赢 AND REF(止赢,1)=0,20,25,2,0),COLORLIRED;
-
- {止赢}
- 强:=H>REF(H,4)*1.035 ,NODRAW;
- A:=REF(L,1)*0.995,COLORRED,NODRAW;
- B:=MAX(REF(C,1)*0.99,H*0.97),COLORYELLOW ,NODRAW;
- 低价小于止赢:=IF(强 OR REF(强,1) OR REF(强,2),A,DRAWNULL),COLORYELLOW ,NODRAW;
- 收盘小于止赢:=IF(强 OR REF(强,1) OR REF(强,2),B,DRAWNULL),COLORWHITE,NODRAW;
- 止赢:=L<低价小于止赢 OR C<收盘小于止赢 AND ( 强 OR REF(强,1) ) ,NODRAW;
-
- STICKLINE(强,20,25,2,1),COLORYELLOW;
- STICKLINE(止赢 AND REF(止赢,1)=0,20,25,2,0),COLORLIRED;