当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:同花顺能用的一些趋势主图(源码)
软件名称:[B]同花顺能用的一些趋势主图(源码)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2010-03-18 18:45:24
软件简介:
在论坛上看了下,关于同花顺趋势画线主图基本没有,不过通信达的一些主图公式同花顺也能用,自己整理二个:
一:
N:=27;
DRAWLINE(H=PEAK(1 ,N ,1 ) ,H ,L=TROUGH(2 ,N ,1 ) ,L , 1),COLOR66BB00;
DRAWLINE(H=PEAK(1 ,N ,1 ) ,H ,L=TROUGH(2 ,N ,1 ) ,L+(PEAK(1 ,N ,1 )-TROUGH(2 ,N ,1 ))/3 , 1),COLOR66BB00;
DRAWLINE(H=PEAK(1 ,N ,1 ) ,H ,L=TROUGH(2 ,N ,1 ) ,L+(PEAK(1 ,N ,1 )-TROUGH(2 ,N ,1 ))/3*2 , 1),COLOR66BB00;
DRAWLINE(L=TROUGH(2 , 30,1 ) ,L ,H=PEAK(1 ,30 ,1 ) ,H ,1 ),COLOR0099FF;
DRAWLINE(L=TROUGH(2 , 30,1 ) ,L ,H=PEAK(1 ,30 ,1 ) ,H-(PEAK(1 ,30 ,1 )-TROUGH(2 , 30,1 ))/3*2 ,1 ),COLOR0099FF;
DRAWLINE(L=TROUGH(2 , 30,1 ) ,L ,H=PEAK(1 ,30 ,1 ) ,H-(PEAK(1 ,30 ,1 )-TROUGH(2 , 30,1 ))/3 ,1 ),COLOR0099FF;
-----------------------------------------------------------------------------------------------------------
二:
DRAWLINE(C=HHV(C,60),HHV(H,3),C=HHV(C,30) AND C<HHV(C,45),HHV(HIGH,3),1),coloryellow;
DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=LLV(LOW,10),HHV(HIGH,6),1),COLORFFCCCC;
AB:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),coloryellow;
DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),colorblue;
VA11:=HIGH>=HHV(HIGH,60);
V1:=(REF(VA11,1)>0 AND VA11<1);
VA12:=LOW<=LLV(LOW,60);
V2:=REF(VA12,1)>0 AND VA12<1;
DRAWLINE(V2,LOW,V1,LLV(LOW,6),1),COLOR0099FF;
DRAWTEXT(CROSS(C,AB),L*0.98,'B'),colorgray;
------------------------------------------------------------------------------------------------
效果如下图:
一:
N:=27;
DRAWLINE(H=PEAK(1 ,N ,1 ) ,H ,L=TROUGH(2 ,N ,1 ) ,L , 1),COLOR66BB00;
DRAWLINE(H=PEAK(1 ,N ,1 ) ,H ,L=TROUGH(2 ,N ,1 ) ,L+(PEAK(1 ,N ,1 )-TROUGH(2 ,N ,1 ))/3 , 1),COLOR66BB00;
DRAWLINE(H=PEAK(1 ,N ,1 ) ,H ,L=TROUGH(2 ,N ,1 ) ,L+(PEAK(1 ,N ,1 )-TROUGH(2 ,N ,1 ))/3*2 , 1),COLOR66BB00;
DRAWLINE(L=TROUGH(2 , 30,1 ) ,L ,H=PEAK(1 ,30 ,1 ) ,H ,1 ),COLOR0099FF;
DRAWLINE(L=TROUGH(2 , 30,1 ) ,L ,H=PEAK(1 ,30 ,1 ) ,H-(PEAK(1 ,30 ,1 )-TROUGH(2 , 30,1 ))/3*2 ,1 ),COLOR0099FF;
DRAWLINE(L=TROUGH(2 , 30,1 ) ,L ,H=PEAK(1 ,30 ,1 ) ,H-(PEAK(1 ,30 ,1 )-TROUGH(2 , 30,1 ))/3 ,1 ),COLOR0099FF;
-----------------------------------------------------------------------------------------------------------
二:
DRAWLINE(C=HHV(C,60),HHV(H,3),C=HHV(C,30) AND C<HHV(C,45),HHV(HIGH,3),1),coloryellow;
DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=LLV(LOW,10),HHV(HIGH,6),1),COLORFFCCCC;
AB:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),coloryellow;
DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),colorblue;
VA11:=HIGH>=HHV(HIGH,60);
V1:=(REF(VA11,1)>0 AND VA11<1);
VA12:=LOW<=LLV(LOW,60);
V2:=REF(VA12,1)>0 AND VA12<1;
DRAWLINE(V2,LOW,V1,LLV(LOW,6),1),COLOR0099FF;
DRAWTEXT(CROSS(C,AB),L*0.98,'B'),colorgray;
------------------------------------------------------------------------------------------------
效果如下图:
[url=http://www.70822.com/soft/sort013/sort036/down-17447.html]同花顺能用的一些趋势主图(源码)[/url]