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

同花顺源码精选:趋势神主图,CCI强弱指标,众赢未来主图

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

1、趋势神主图,神一样准的趋势线

MA05:=MA(C,05);LINETHICK3,COLOR00CCFF;

MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
五日乖离率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,colorred;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,colorgreen;
三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);
BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)
AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10);
DRAWTEXT(加仓 ,LOW*0.98,'←加仓'),colorred;
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;
减仓:=FILTER(JC,10);
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;
买入:=FILTER(MR,10);
DRAWTEXT(减仓,HIGH*1.02,'←减仓'),colorcyan;
DRAWTEXT(买入,LOW*0.98,'←试仓'),coloryellow;
DRAWTEXT(清仓 ,HIGH*1.02,'←清仓'),colorgreen;
DRAWTEXT(强势狙击,LOW*0.98,'←快速启动'),coloryellow;
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
区间压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;
区间支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;



2、CCI强弱指标,强弱势抄底风险预警卖出

清楚地标出了强弱势  小仓位抄底   风险预警 卖出

N:=14;

TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;
DRAWTEXT(CROSS(200,CCI),250,'风险预警'),colorgreen;
DRAWTEXT(CROSS(100,CCI),100,'风险信号'),colorgreen;
DRAWTEXT( CROSS(CCI,-200),-150,'准备抄底'),coloryellow;
DRAWTEXT( CROSS(CCI,-100),-100,'抄底机会'),COLORFF00FF;
DRAWTEXT_FIX(C>O,0.01,0.9,0,'CCI指标'),colorred;
STICKLINE(CCI>0,0,CCI,1,0),colorred;
STICKLINE(CCI<0,0,CCI,1,0),colorligreen;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,1,0),coloryellow;
STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,1,0),colorgreen;
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),coloryellow,LINETHICK4;
差值:=CCI70-REF(CCI70,1);
IF(差值>0,CCI70,DRAWNULL),coloryellow,LINETHICK4;
IF(差值<0,CCI70,DRAWNULL),colorblue,LINETHICK4;
逃顶线:200,colorgreen;
强势线:100,colorred,LINETHICK2;
中轴线:0,coloryellow,LINETHICK1;
抄底线:-100,colorlired;
弱势线:-200,colorgreen;
DRAWICON(CROSS(CCI,-100) OR (REF(CCI,1)>-100 AND REF(CCI,1)<-95 AND CCI>REF(CCI,1)),CCI-0.03,1);
DRAWICON(CROSS(100,CCI) OR (REF(CCI,1)<100 AND REF(CCI,1)>95 AND CCI<REF(CCI,1)),CCI+0.03,2);



3、众赢未来主图

公式用法:
红色表示买,换色表示卖,短期频繁操作指标。( 股 民 学 院 : http://www.58188.net )

N:=150;
高1:=REF(HHV(H,N),3);
低1:=REF(LLV(L,N),3);
H1:=高1-(高1-低1)*0.809;
H2:=高1-(高1-低1)*0.618;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.382;
H5:=高1-(高1-低1)*0.191;
DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),LOW*0.98,1);
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.92,3);
DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.86,5);
DRAWICON(CROSS(REF(ZIG(3,12),1),ZIG(3,12)),HIGH*1.16,8);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.11,6);
DRAWICON(CROSS(REF(ZIG(3,8),1),ZIG(3,8)),HIGH*1.06,4);
DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),HIGH*1.02,2);
天:REFDATE(高1,DATE),colorgreen,LINETHICK1;
地:REFDATE(低1,DATE),colorred,LINETHICK1;
下191:REFDATE(H1,DATE),colorcyan,LINETHICK1;
下382:REFDATE(H2,DATE),coloryellow,LINETHICK1;
中5:REFDATE(H3,DATE),colormagenta,LINETHICK2;
上618:REFDATE(H4,DATE),coloryellow,LINETHICK1;
上809:REFDATE(H5,DATE),colorcyan,LINETHICK1;
红轨道:=MA(MA(CLOSE,3),1);
轨道:MA(MA(CLOSE,3),3),colorblue,LINETHICK2;
升:IF(红轨道>=轨道,轨道,红轨道),coloryellow,LINETHICK2;

上一篇:同花顺源码精选:LS金牌黑马,中短线买卖参考,同花顺组合副图

下一篇:同花顺源码精选:RSI底背离资金涨停,牛马BS,太极量能