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

同花顺源码:金马抄底+短线胜手+资金线

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

金马抄底:

V1:=ZIG(3,12);

V2:IF(REF(V1,2)>REF(V1,1) AND V1>REF(V1,1),50,0),colorred,LINETHICK2;
V3:IF(REF(V1,2)<REF(V1,1) AND V1<REF(V1,1),50,0),colorgreen,LINETHICK2;
VAR1:=ZIG(3,12)<REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)>REF(ZIG(3,12),2);
VAR2:=ZIG(3,12)>REF(ZIG(3,12),1) AND REF(ZIG(3,12),1)<REF(ZIG(3,12),2);
DRAWTEXT(VAR1,50,'顶'),coloryellow;
DRAWTEXT(VAR2,50,'底'),coloryellow;
资金趋势:EMA(30*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)*3, colorred,LINETHICK1;
VAR3:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
买点:= VAR3,colorred;
DRAWTEXT(买点>0,45,'低吸点'),colormagenta;
STICKLINE(买点,0,50,2,0),colormagenta,LINETHICK1;



短线胜手:

来势线: EMA(CLOSE,7)-EMA(CLOSE,21),coloryellow;

福星: EMA(来势线,7), COLORSTICK,colorred;
VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1;
决策: IF(VAR1,0.5,0), STICK,coloryellow;
必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),coloryellow ,LINETHICK1 ;
必卖: IF(PEAKBARS(3,15,1)=1,1,2),colorwhite,LINETHICK1;
趋势线: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,colorred;
逃顶线: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR00FF00 ,LINETHICK1 ;




资金线(顶尖财经 股票学院: www.58188.com):

VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;

VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
个股资金:=EMA(C,1)/MA(REF(C,18),18)*100;
做空资金: (SMA(VAR1,3,1)+EMA(FORCAST(个股资金,20),6)+EMA(100*(INDEXC-LLV(INDEXL,21))/(HHV(INDEXH,21)-LLV(INDEXL,21)),3))/3,COLORFFFF00;
做多资金: (SMA(VAR2,5,1)-8+个股资金+EMA(100*(C-LLV(LOW,21))/(HHV(H,21)-LLV(LOW,21)),3))/3, colorred;
DRAWTEXT(CROSS(做多资金,做空资金),做多资金,'始');
DRAWTEXT(CROSS(做空资金,做多资金),做空资金,'终');

上一篇:同花顺源码:加仓+MACD多空更新版副图+能量资金

下一篇:同花顺源码:换手率趋势战法+趋势顶底王