十日交易系统【主图 选股 思路 说明 源码 贴图】
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-09-21 08:30:00
公式简介:
【公式名称】:交易系统
合并了两个选股公式编写成主图,感觉还行,源码源于本论坛,感谢原作。
【思路】:以合并后的选股为依据,以当日收盘价为基准,10个交易日内涨幅超10%止盈,下跌5%止损,10个交易日内未出现止盈或止损信号,第十日平仓;
【说明】:
1、出现红色箭头买入信号,可在次日或以后几日在信号收盘价(绿色横向虚线)以下,止损线(下面的黄色横向虚线)以上价位买入;
2、当10个交易日内涨幅超10%或下跌5%或10个交易日内未出现止盈或止损信号,出现绿色卖出箭头;
3、上下两条黄色虚线分别为止盈线和止损线,中间绿色虚线为买入信号当日收盘价;
4、公式里WINNER(获利盘比例)函数,不应划为未来函数;
【使用范围】:
适用震荡市或小熊市,不适用类似07年的大牛行情和08年的大熊市;
【主图源码】:
AA:=WINNER(C+C*15/100)*100;
BB:=WINNER(C+C*0/100)*100;
CC:=AA-BB;
DD:=(WINNER(C-C*0.1/100)-WINNER(C-C*15/100))*100;
EE:=CC<3 AND DD<0.5 AND O<L;
A1X:=DYNAINFO(6);
A2X:=IF(L>A1X,0,IF(H<A1X,1,(A1X-L+0.01)/(H-L+0.01)));
A3X:=V/WINNER(L);
A4X:=REF(HHV(C,120),1);
A5X:=REF(LLV(C,120),1);
A6X:=100*(C-A5X)/(A4X-A5X);
A7X:=A2X>0 OR A2X=1;
A8X:=A7X AND A3X/REF(A3X,3)>=3 AND A6X<80 ;
A9X:=REF(A8X,1) OR REF(A8X,2) OR REF(A8X,3) OR REF(A8X,4);
A10X:=A8X AND A9X;
A12X:=IF(FILTER(A10X,3) OR EE,10,0);
CCC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD20:=DMA(CLOSE,CCC);
AA20:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道22:=AA20*(200-7)/100;
通道44:=(1-7/100)*DD20;
A20:=C<通道22 AND C<通道44 AND C>O;
TYP2:=(HIGH+LOW+CLOSE)/3;
CCI2:=(TYP2-MA(TYP2,14))/(0.015*AVEDEV(TYP2,14));
MIDD:=MA(CLOSE,20);
LOWERR:=MIDD-2*STD(CLOSE,20);
XGG:=A20 AND CCI2<-100 AND O<LOWERR;
XIN:=A12X AND XGG;
XX:=BARSLAST(XIN);
〖止盈价〗:IF(XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,DRAWNULL),NODRAW,COLORYELLOW;
〖止损价〗:IF(XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*0.95,DRAWNULL),NODRAW,COLORWHITE;
〖平仓价〗:IF(XX=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),C,DRAWNULL),NODRAW;
DRAWICON(XIN,C*0.95,1);
DRAWICON(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*1.1,2);
DRAWICON(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,2);
DRAWICON(COUNT(H<REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*1.1,2);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*1.1,REF(C,XX)*1.1,1,0),COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX),REF(C,XX),1,0);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*0.95,REF(C,XX)*0.95,1,0),COLORYELLOW;
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX),REF(C,XX),1,0);
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,REF(C,XX)*1.1,1,0),COLORYELLOW;
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*0.95,REF(C,XX)*0.95,1,0),,COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*1.1,REF(C,XX)*1.1,1,0),,COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX),REF(C,XX),1,0);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*0.95,REF(C,XX)*0.95,1,0),,COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*1.1,REF(C,XX)*0.95,0.00001,-1);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*1.1,REF(C,XX)*0.95,0.00001,-1);
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,REF(C,XX)*0.95,0.00001,-1);
JJ:=IF(HHV(H,8)<=C*1.1,HHV(H,8),IF(HHV(H,7)<=C*1.1,HHV(H,7),
IF(HHV(H,6)<=C*1.1,HHV(H,6),
IF(HHV(H,5)<=C*1.1,HHV(H,5),
IF(HHV(H,4)<=C*1.1,HHV(H,4),
IF(HHV(H,3)<=C*1.1,HHV(H,3),IF(HHV(H,2)<=C*1.1,HHV(H,2),H)))))));
STICKLINE(XIN,JJ,C*0.95,0.00001,-1);
【选股】
AA:=WINNER(C+C*15/100)*100;
BB:=WINNER(C+C*0/100)*100;
CC:=AA-BB;
DD:=(WINNER(C-C*0.1/100)-WINNER(C-C*15/100))*100;
EE:=CC<3 AND DD<0.5 AND O<L;
A1X:=DYNAINFO(6);
A2X:=IF(L>A1X,0,IF(H<A1X,1,(A1X-L+0.01)/(H-L+0.01)));
A3X:=V/WINNER(L);
A4X:=REF(HHV(C,120),1);
A5X:=REF(LLV(C,120),1);
A6X:=100*(C-A5X)/(A4X-A5X);
A7X:=A2X>0 OR A2X=1;
A8X:=A7X AND A3X/REF(A3X,3)>=3 AND A6X<80 ;
A9X:=REF(A8X,1) OR REF(A8X,2) OR REF(A8X,3) OR REF(A8X,4);
A10X:=A8X AND A9X;
A12X:=IF(FILTER(A10X,3) OR EE,10,0);
CCC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD20:=DMA(CLOSE,CCC);
AA20:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道22:=AA20*(200-7)/100;
通道44:=(1-7/100)*DD20;
A20:=C<通道22 AND C<通道44 AND C>O;
TYP2:=(HIGH+LOW+CLOSE)/3;
CCI2:=(TYP2-MA(TYP2,14))/(0.015*AVEDEV(TYP2,14));
MIDD:=MA(CLOSE,20);
LOWERR:=MIDD-2*STD(CLOSE,20);
XGG:=A20 AND CCI2<-100 AND O<LOWERR;
A12X AND XGG;
[url=http://www.goodgupiao.com/gupiaogongshi/15593.html][B]十日交易系统【主图 选股 思路 说明 源码 贴图】[/B][/url]