操盘线主图通达信公式 主图 源码附图

MA1:=EMA(C,5);
FOR13:FORCAST(EMA(C,13),7),DOTLINE;
FOR55:FORCAST(EMA(C,55),7),DOTLINE;
FOR144:FORCAST(EMA(C,144),7),DOTLINE;
NOTEXT5:IF(MA1>=FOR13 OR C>=FOR13,FOR13,DRAWNULL);
NOTEXT6:IF(FOR13>=FOR55,FOR55,DRAWNULL);
STICKLINE(C>FOR13,O,C,-1,0),COLOR004DEC;
STICKLINE(C>FOR13,H,L,0,0),COLOR004DEC;
STICKLINE(C=FOR13,H,L,-1,1),COLORDFD98E;
STICKLINE(C<FOR13,H,L,0,1),COLORDFD98E;
STICKLINE(C<FOR13,O,C,-1,1),COLORDFD98E;
{涨跌停}
涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORLIRED;
跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;
{回马枪}
支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
数值:=支撑线;{股票指标网 整理}
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;
PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
HH:=COUNT(涨停,13)>=1;
STICKLINE(PP2 AND HH,OPEN,CLOSE,0.5,0),COLORWHITE;
STICKLINE(PP AND HH,OPEN,CLOSE,0.5,0),COLORWHITE;
STICKLINE(PP3 AND HH,OPEN,CLOSE,0.5,0),COLORWHITE;
A:=SMA(L,4,3);
STICKLINE(A AND REF(PP,1) AND HH ,A*0.9989,A,4,0),COLORGREEN;
{DRAWICON(A AND REF(PP,1) AND HH,L*0.98,1);}
STICKLINE(A AND REF(PP3,1) AND HH ,A*0.9989,A,4,0),COLORLIMAGENTA;
{DRAWICON(A AND REF(PP3,1) AND HH,L*0.98,1);};
 


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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