您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

买卖(同花顺公式 公式、同花顺源码 K线图)[同花顺公式]

相关标签:

 

买卖

HH:= (2*HIGH+LOW+OPEN+2*CLOSE)/6;
HLC: MA(HH,3),colormagenta;
HLC2: MA(HLC,N2),COLORGREEN;//http://www.cxh99.com
HLC5:= MA(HLC2,N2);
AA:= MA((2*C+H)/3,N1),colorred;
BB:= MA((2*O+L)/3,N1),COLORGREEN;//http://www.cxh99.com
OC:= (C+O)/2;
M5:= MA(O,5);
M13:MA(HH,13),coloryellow;
MID := MA(C,N),coloryellow;
UPP:= MID + 2.6*STD(C,N),colorlicyan;
LPP:= MID - 2.6*STD(C,N),colorlicyan;
LP:= HLC-2.5*STD(H-L,21),colorlired;
HP:= HLC+2.5*STD(H-L,21),colorlired;
MID:= MA(C,6),COLORGREEN;//http://www.cxh99.com
MID3:= (REF(MID,3)/REF(MID,2)+REF(MID,2)/REF(MID,1)+REF(MID,1)/MID)/3;
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J=3*K-2*D;
买:= REF(AA<=BB,1) AND AA>=BB;
买1:= CROSS(AA,M5) AND REF(AA,1)/AA<1.01;
买2:= (BB/L-REF(BB,1)/BB)>0.04 AND BB/AA<1.002 AND M13>REF(M13,1) AND C<BB AND REF(AA,1)/AA<1.01 AND COUNT(H/L>1.03,3)>=1;
买3:= (BB/L-REF(BB,1)/BB)>0.03 AND COUNT(AA>BB,4)=4 AND COUNT(AA<REF(AA,1) OR BB<REF(BB,1),1)>=1 AND C<BB AND REF(AA,1)/AA<1.01 AND COUNT(H/L>1.03,3)>=1;
买4:= COUNT(AA<REF(AA,1),3)=3 AND VOL/REF(VOL,1)>1.2 AND MIN(C,O)<REF(MAX(C,O),1) AND REF(H>REF(H,1) OR C>O,1);"超跌必涨";
涨:= COUNT(HLC<HLC2,3)=3 AND ((C<O AND VOL>REF(VOL,1) AND REF(VOL<REF(VOL,1),1)) OR (C>=O AND REF(C<=O,1) AND VOL<REF(VOL,1))) AND (H-L)>2*ABS(C-O) AND (REF(HLC,2)/REF(HLC,1)+HLC/REF(HLC,1))>2.003 AND L<=REF(L,1);"下跌中,收阳量减或收阴量增,到底信号";
买6:= L<LP*1.002 AND LP<REF(LP,1) AND HHV(C,3)/LLV(C,3)>1.05 AND C>O AND COUNT(HLC5>REF(MA(HLC5,2),1),3)=3;"HLC5上升中大幅回调洗盘";
买买:= (买 OR 买1 OR 买2 OR 买3 OR 买4 OR 买6 OR 买6 OR 涨) AND MID3<1.0055;
高:=H>UPP AND UPP/LPP>1.08;
卖1:= ((REF(HLC>HLC2,1) AND REF(HLC-HLC2,1)/(HLC-HLC2)>2.05) OR (REF(HLC>HLC2,1) AND HLC<=HLC2 AND REF(REF(HLC-HLC2,1)/(HLC-HLC2)<=2.05,1))) AND COUNT(高,2)<1 AND IF(HLC2>M13,COUNT(HLC>REF(HLC,1),5)>=4,HLC2<M13) AND HLC2/REF(HLC2,1)>1 ;
DD:=买买 AND IF(L<REF(L,1),买买,COUNT(买买,2)=1) AND IF(COUNT(卖1,1)=1,H/L>1.04,买买) AND C>L*1.002 AND IF(REF(HLC2,1)/HLC2>1.005,COUNT(H/L>1.045,3)>=1,REF(HLC2,1)/HLC2<=1.005)
AND COUNT(REF(HLC-HLC2,1)>HLC-HLC2,1)<1 AND IF(REF(C>O,1) AND C>O,REF(HLC2,1)/HLC2<1.008,REF(C>O,1));
买5:= IF(REF(HLC2-HLC,1)/(HLC2-HLC)>2 AND COUNT(DD,3)<1,1,REF(HLC<HLC2,1) AND HLC>=HLC2) AND REF(HLC,1)/HLC<1.005;
卖2:= COUNT(DD OR 买5,4)>=1 AND HLC2/REF(HLC2,1)<1 AND IF(COUNT(H>HLC2,BARSLAST(DD))>1,H>HLC2,卖1) AND HLC2/REF(HLC2,1)>1 ;
卖4:= H>M13 AND REF(M13,1)/M13>1.005 AND COUNT(HLC<M13,4)=4 AND H/L>1.035;
卖3:= COUNT(高,3)=1 AND O>REF(C,1) AND C<O;
DRAWTEXT(DD AND IF(L<REF(L,1) AND C<REF(C,1),DD,COUNT(买5 OR DD,2)=1) AND (J>20 OR J>D) AND J<80,L*0.99,'买'),coloryellow;
DRAWTEXT(买5 AND IF(L<REF(L,1) AND C<REF(C,1),买5,COUNT(买5,3)=1),L*0.99,'买'),coloryellow;
DRAWTEXT(卖1 AND IF(C>REF(C,1),卖1,COUNT(高,2)<1) AND COUNT(卖3 OR 卖1 OR 卖2,2)=1,H*1.03,'卖'),coloryellow;
DRAWTEXT(卖2 AND (J<80 OR J<D) AND J>20 AND IF(C>REF(C,1),卖1,COUNT(高,2)<1) AND COUNT(卖3 OR 卖1 OR 卖2,2)=1,H*1.03,'卖'),coloryellow;
DRAWTEXT(卖3 AND COUNT(高,2)<1 AND COUNT(卖3 OR 卖1 OR 卖2,2)=1,H*1.03,'卖'),coloryellow;
DRAWTEXT(高 AND COUNT(高,2)=1,H*1.03,'高'),coloryellow;
DRAWTEXT(卖4,H*1.03,''),coloryellow;

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容