当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:趋势顶底,我的资金,跑赢指数

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

自用看盘 趋势顶底:

⑴:不管什么周期,只要(中线上穿长线)即可买入。
⑵:不管什么周期,只要(中线下穿长线)或(短线下穿80)即刻卖出。
二:研判大盘趋势(月线)
⑴:当月线的长线、中线、短线趋势向下,(则长期看空),而中线上穿长线,(则长期看多)。
⑵:当月线还没有调整到位,后周期的所有行情都将是反弹,而反弹力度
三:研判大盘趋势(周线)
⑴:当周线的长线、中线、短线趋势向下,(则中期看空),而中线上穿长线,(则中期看多)。
⑵:当周线还没有调整到位,后周期的所有行情都将是反弹,而反弹力度的大小就要看日线了。
⑶:当周线的走势出现钝化,说明它在等月线,因为月线的调整还没到位,一旦到位就会形成突破。
四:研判大盘趋势(日线)
⑴:当日线的长线、中线、短线趋势向下,(则短期看空),而中线上穿长线,(则短期看多)。
⑵:当日线还没有调整到位,后周期的所有行情都将是反弹,而反弹力度的大小就要看分钟线了。
⑶:当日线的走势出现钝化,说明它在等周线,因为周线的调整还没到位,一旦到位就会形成突破
 

 VAR2Q:=REF(LOW,1);

VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
VAR5Q:=LLV(LOW,30);
VAR6Q:=HHV(VAR4Q,30);
VAR7Q:=IF(MA(CLOSE,58),1,0);
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;
VAR9Q:=IF(VAR8Q>100,100,VAR8Q);
吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,3,1),coloryellow;
80,COLOR996699;
20,colorgreen;
底:10,COLORCC6633,LINETHICK2;
100,COLOR9966FF,LINETHICK2;
50,colorred;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
长期线:A+100,COLOR9900FF,LINETHICK2;
短期线:B+100,colorcyan,LINETHICK2;
中期线:D+100,coloryellow,LINETHICK2;
见顶:=((REF(中期线,1)>85 AND  REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));
顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5
AND 短期线<中期线 AND 短期线<长期线+4,colorgreen;
顶部:=FILTER(顶部区域,4);
STICKLINE( 见顶 OR 顶部,99,103,20,1 ),colorred,LINETHICK2;
底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))
OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,colorgreen;
STICKLINE( 底部区域,-4,0,22,0 ),colorgreen;
低位金叉:50*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线
AND (REF(短期线,1)<5 OR REF(短期线,2)<5 )  AND (中期线>=长期线 OR REF( 短期线,1)<1 )),colorred;
VARE1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF1:=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);
VAR100:=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);
VAR110:=VARF1<REF(VAR100,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR110 AND COUNT(VAR110,30)=1,短期线,'大资金活动'),LINETHICK1,COLORFF00FF;
DRAWICON(VAR110 AND COUNT(VAR110,30)=1,短期线,1);
生命量能线:=EMA(100*(CLOSE-LLV(LOW,31))/(HHV(HIGH,31)-LLV(LOW,31)),3)/4,colorred,LINETHICK2;
DRAWICON(CROSS(生命量能线,10),短期线,9);
 



我的资金:

r1=BIGBUYCOUNT1[-1]+BIGBUYCOUNT2[-1];

r10=BIGBUYCOUNT1[-1]+BIGBUYCOUNT2[-1]+BIGBUYCOUNT3[-1];
r11=WAITBUYCOUNT1[-1]+WAITBUYCOUNT2[-1];
r2=BIGSELLCOUNT1[-1]+BIGSELLCOUNT2[-1];
r20=BIGSELLCOUNT1[-1]+BIGSELLCOUNT2[-1]+BIGSELLCOUNT3[-1];
r22=WAITSELLCOUNT1[-1]+WAITSELLCOUNT2[-1];
r44=IF(r2>EMA(r2,5) AND r2>r1 AND r1<HHV(r1,5),1,0);
STICKLINE(CLOSE>=OPEN,0,VOL,9,1),colorred;
STICKLINE(CLOSE<OPEN,0,VOL,9,1),colorgreen;
STICKLINE(VOL=HHV(VOL,10) AND CLOSE>=OPEN,REF(VOL,1),VOL,9),colorlimagenta;
STICKLINE(VOL=HHV(VOL,10) AND CLOSE<OPEN,REF(VOL,1),VOL,9),colorligreen;
STICKLINE(r1<EMA(r1,30),0,IF(r1>r22,r22,r1),9),colorlired;
STICKLINE(r1>EMA(r1,30),0,IF(r1>r22,r22,r1),9),colorred;
STICKLINE(r1>EMA(r1,30) AND r1>r2,0,IF(r1>r22,r22,r1),9),colormagenta;
STICKLINE(r2<EMA(r2,10),0,IF(r2>r11,-r11,-r2),9),colorlicyan;
STICKLINE(r2>=EMA(r2,10),0,IF(r2>r11,-r11,-r2),9),colorligreen;
STICKLINE(r2>EMA(r2,10) AND r2>r1,0,IF(r2>r11,-r11,-r2),9),colorblue;
STICKLINE(r1>r22,r22,r1,9),coloryellow;
STICKLINE(r1<r22,r1,r22,9),colorgreen;
STICKLINE(r11>r2,-r2,-r11,9),coloryellow;
STICKLINE(r11<r2,-r11,-r2,9),colorgreen;
V1=6*EMA(EMA(WMA(IF(r1>EMA(r1,10),r10-EMA(r1,10),0)+IF(r1>r22,r1,0),5),3),2);
V2=6*EMA(EMA(WMA(IF(r2>EMA(r2,10) AND r2>r1,r20-EMA(r2,10),0)+IF(CLOSE<OPEN,r2,0),5),3),2);
分白3实:0,LINETHICK1,colorwhite;
实3:V1,LINETHICK1,colorred;
实4:V2,LINETHICK1,colorgreen;
DIFF=WMA(CLOSE,12)-WMA(CLOSE,26),colorred;
DEA=WMA(DIFF,5),colorgreen;
MACD=2*(DIFF-DEA);
h8=IF(DIFF>REF(DIFF,1) AND REF(DIFF,1)<REF(DIFF,2),1,0);
h9=IF(REF(r1,2)>EMA(r1,5) AND REF(r1,1)<EMA(r1,5) AND REF(r2,1)>REF(r11,1) AND r1>r22 AND r1>REF(r1,1) AND r2<REF(r2,1) AND r2<EMA(r2,5),1,0);
r1118=(BIGBUYCOUNT1[-1]+BIGBUYCOUNT2[-1]+WAITBUYCOUNT1[-1])/VOL*100;
p1=IF(r1118>15 AND r1>r2 AND CLOSE>EMA(CLOSE,5),1,0);
p11=IF(REF(p1,1)=1 OR REF(p1,2)=1 OR REF(p1,3)=1 OR REF(p1,4)=1 OR REF(p1,5)=1,1,0);
p2=IF(r2>EMA(r2,5) AND r2>r1 AND CLOSE<REF(CLOSE,1),1,0);
p22=IF(REF(p2,2)=1 OR REF(p2,3)=1 OR REF(p2,4)=1,1,0);
p3=IF(r2<EMA(r2,5) AND r1>REF(r1,1),1,0);
p4=IF(p11=1 AND p22=1 AND p3=1,1,0);
p5=IF(EMA(r1,5)>EMA(r1,10) AND EMA(r1-r2,5)>0 AND CLOSE=HHV(CLOSE,30) AND REF(CLOSE,1)<HHV(CLOSE,30),1,0);
STICKLINE((h8+h9+p4+p5)>0 AND DIFF>REF(DIFF,1),0,-2*IF(r2>r11,r2,r11),4),coloryellow;
STICKLINE((h8+h9+p4+p5)>0 AND DIFF>REF(DIFF,1),0,-2*IF(r2>r11,r2,r11),2),colorred;
DRAWTEXT((h8+h9+p4+p5)>0 AND DIFF>REF(DIFF,1),-2.5*IF(r2>r11,r2,r11),'弹'),colormagenta;
STICKLINE(r1>0.5*MA(VOL,10),r1,1.2*VOL,4),coloryellow;
STICKLINE(r1>0.5*MA(VOL,10),r1,1.2*VOL,2),colorred;
DRAWTEXT(r1>0.5*MA(VOL,10),1.3*VOL,'拉升'),coloryellow;
 



跑赢指数(顶尖财经 股票学院: www.58188.com):

PLOYLINE(C>0,-0.2),DOTLINE,colorgreen;

PLOYLINE(C>0,0),DOTLINE,coloryellow;
PLOYLINE(C>0,0.2),DOTLINE,colorred;
DP:=INDEXC;
DP5:=SUM(LN(DP/REF(DP,1))*100,5);
GG5:=SUM(LN(C/REF(C,1))*100,5);
PY30:COUNT(GG5>DP5,30)/30-0.5;
PY60:COUNT(GG5>DP5,60)/60-0.5;
PY120:COUNT(GG5>DP5,120)/120-0.5;
 

上一篇:同花顺源码:成交力度云巅之上,股市短线终结者,胜利王者

下一篇:同花顺源码:波段上行,李林成主图优化,基金EXPMA