曲线趋势顶底止盈止损 均线趋势

A:=ZIG(3,5);
零轴:5;
STICKLINE(A>=REF(A,1),2.1,2.9,9/3,0),COLORRED,LINETHICK1;
STICKLINE(A<REF(A,1),2.1,2.9,99/3,0),COLORGREEN,LINETHICK1;
{//02均线趋势}
均线1:=MA(CLOSE, 5);
STICKLINE(均线1>=REF(均线1,1),1,1.8,99/3,0),COLORMAGENTA,LINETHICK1;
 
CV:=CLOSE;
布林线:=MA(CLOSE,1)-(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
STICKLINE(布林线>=0,0,0.8,99/3,0),COLORYELLOW,LINETHICK1;
 
DIFF :=EMA(CLOSE,10) - EMA(CLOSE,23);
DEA  :=EMA(DIFF,8);
VAF:=TROUGHBARS(3,15,1)<4;
VAF2:=PEAKBARS(3,15,1)<4;
STICKLINE(FILTER(VAF=1,5),4,4.8,99/3,0),COLORRED,LINETHICK1;
DRAWTEXT(FILTER(VAF=1,3),4.6,'底'),COLORRED ,LINETHICK2;
STICKLINE(FILTER(VAF2=1,5),4,4.8,99/3,0),COLORGREEN,LINETHICK1;
DRAWTEXT(FILTER(VAF2=1,3),4.6,'顶'),COLORRED ,LINETHICK2;
STICKLINE(TROUGHBARS(3,3,1)=0 AND DIFF<0 AND DIFF<DEA,3,3.8,99/3,0),COLORRED,LINETHICK1;
STICKLINE(PEAKBARS(3,3,1)=0 AND DIFF>0 AND DIFF>DEA,3,3.8,99/3,0),COLORGREEN,LINETHICK1;
 


未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图