找回密码
 注册
搜索
查看: 1161|回复: 1

[转贴] 如何用同花顺建立自己的交易系统

[复制链接]
发表于 2010-9-5 08:27 AM | 显示全部楼层 |阅读模式


如何用同花顺建立自己的系统
(不适合每个人,但希望多一些人有用)

中国的股票软件发展迅猛,出现了不少优秀的股票软件,比如说大智慧,通达信,同花顺等。这些软件的功能基本类似,而只有同花顺因为有美股导入工具,可以来分析美国股票。
用这些软件,用户可以内嵌的公式编写自己的买卖指标。也可以从网络上下载一下公式和指标,根据自己的实际操作经验来建立自己的系统。公式编写不是很难,有些计算机基础,就比较容易上手。
这样比较容易和同行们交流这些指标和制定买卖计划。要根据每个人不通的操作习惯和目标选用不同的指标。

国内现在有很多公式交流网站,大家可尝试一下这个
bbs.miaogu.com/forumdisplay.php?fid=120&filter=type&typeid=40&page=1
下载同花顺10jqka.com.cn
下载同花顺美股数据导入工具,不过这个要花十几块钱买
stockferry.com

以下是我做的一些分析的图,希望和大家交流一下




有几个公式,可供大家参考:
1.多空对比
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),colorwhite;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),coloryellow;
中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),colormagenta;
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),colorred,LINETHICK2;
强市线:80,POINTDOT;
弱市线:20,POINTDOT;
分水岭:50,POINTDOT;

2.操盘手
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(bu,LOW,'买'),ALIGN1,VALIGN0,colorwhite,linethick3;
DRAWTEXT(bu,LOW,' ̄'),ALIGN1,VALIGN0,Color208FFF,LINETHICK3;
DRAWTEXT(sel,HIGH,' ̄'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK3;
DRAWTEXT(sel,HIGH,'卖'),ALIGN1,VALIGN2,colorgreen,linethick3;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),colorred;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0),color00ff00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,1),color00ff00;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,6,0),colorffff00;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;

3.主力筹码
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorff00ff,linethick2;
指数趋势:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
强弱分界:80,coloryellow;

4.动能轨迹
RSV:=(((CLOSE - LLV(LOW,33)) / (HHV(HIGH,33) - LLV(LOW,33))) * 100);
Y0:SMA(RSV,7,1);
Y1:SMA(SMA(RSV,7,1),3,1);
Y2:(((CLOSE/COST(13))<=0.8)*10),colormagenta;
Y3:SMA(SMA(SMA(RSV,6,1),5,1),3,1),colorgreen;
80,colorgray;
20,colorblue;
B:CROSS(Y0,Y1)*10;

5.波段确定
q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
q3:=SMA(q2, 9, 1);
q4:=SMA(q3, 3, 1);
aa:3*q3-2*q4, ,color1010FF;
q5:=aa>1*REF(aa, 1);
q6:=LLVBARS(LOW, 50);
q7:=SUM(VOL, q6);
q8:=HHVBARS(HIGH, 50);
q9:=SUM(VOL, q8);
q10:=(CLOSE-REF(OPEN, q8))/REF(OPEN, q8)*100;
q11:=HHV(aa,5);
A1:EMA(q3, 3) , COLORFFDDCC;
A2:EMA(a1, 3) , COLORFFBBCC;
A3:EMA(a2, 3) , COLORFF99CC;
A4:EMA(a3, 3) , COLORFF55CC;
A5:EMA(a4, 3) , COLORFF33CC;
A6:EMA(a5, 3) , COLORFF11CC;
a:EMA(a4, 3), , COLORFF00CC;
DRAWTEXT(CROSS(aa, 20) AND q10<-13,10,'*大底'), color00ff00;
DRAWTEXT(CROSS(aa, a5) AND REF(aa,1)<34,REF(aa,1),'小'), color00ff00;
DRAWTEXT(CROSS(A1, aa) AND REF(aa,1)>80, REF(aa,3), '*顶'), COLOR00ff00;
DRAWTEXT(CROSS(aa, A1) AND q5 AND a1<20 AND q1>9 OR a1>1*REF(a1, 1) AND q1>4 AND a1<60, 30, '拉'), COLORFFFFCC;


6.鲨鱼短线 (同花顺)
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
指标:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IF(VAR6<=-20,10,0);
VAR9:=HHV(VAR8,10);
STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;
VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:EMA(VAR7,5)*2, , COLORFF00FF;
D:EMA(K,5), , colorwhite;
J:K*3-D*2, ,coloryellow;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
换手:=VOL/CAPITAL*100, , colorgreen;
成交〖万手〗:=VOL/10000, , coloryellow;
DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),-10,'接近底部'),LINETHICK1,coloryellow;
STICKLINE(VAR8=10 AND FILTER(VAR8=10,5),-1.6,-10,5,0),coloryellow;
DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,colorwhite;
STICKLINE((VARA=20),0,10,5,0),colorwhite;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG
(3,5),2)>=REF(ZIG(3,5),3));
STICKLINE((VARC=1),(-10),0,1,0),COLOR0000FF;
DRAWTEXT((VARC=1),(-12),'买'),COLOR0000FF;
STICKLINE((VARD=1),10,0,1,0),COLOR00FF00;
DRAWTEXT((VARD=1),19,'卖'),COLOR00FF00;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARFREF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;
STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66;
STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;

评分

1

查看全部评分

发表于 2010-9-5 12:46 PM | 显示全部楼层
回复 鲜花 鸡蛋

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|www.hutong9.net

GMT-5, 2024-12-27 09:00 PM , Processed in 0.037837 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表