在论坛上看了下,关于同花顺趋势画线主图基本没有,不过通信达的一些主图公式同花顺也能用,自己整理二个: 一: 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 CDRAWLINE(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; ------------------------------------------------------------------------------------------------ 效果如下图:
|