最强选股战法推荐:
通达信湖北卫视猛吹的战略家的操盘优化组合未加密选股指标公式源码
源码正文:
这段时间湖北卫视猛吹的战略家,
其操盘原理和曹氏八线的持股线或凯恩斯的黄金线其实是一样的,不同的是,曹氏八线的持股线是15天均线,凯恩斯的黄金线是18天均线,而战略家的短线操盘线是10天均线,中线操盘线是45天均线而已。
而将其短线操盘和中线操盘组合在一起,再加上几条常用的均线,则要比战略家原版操盘公式实用得多。
下面是组合后的主图公式源码:
N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C)){XG51};
stICKLINE(C>=ma(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLORBLUE{XG51};
STICKLINE(C<MA(C,N),MA(C,N),REF(MA(C,N),1),5,0),COLORYELLOW{XG51};
DRAWTEXT(C>=MA(C,N) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,N),' 黄色持股 (短线)'),COLORBLUE{XG51};
DRAWTEXT(C<MA(C,N) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,N),' 蓝色持币 (短线)'),COLORFF9933{XG51};
M:=IF(BARSCOUNT(C)>=45,45,BARSCOUNT(C)){XG51};
STICKLINE(C>=MA(C,M),MA(C,M),REF(MA(C,M),1),5,0),COLORBLUE{XG51};
STICKLINE(C<MA(C,M),MA(C,M),REF(MA(C,M),1),5,0),COLORYELLOW{XG51};
DRAWTEXT(C>=MA(C,M) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,M),' 黄色持股 (中线)'),COLORBLUE{XG51};
DRAWTEXT(C<MA(C,M) AND CURRBARSCOUNT=1 AND PERIOD=5,MA(C,M),' 蓝色持币 (中线)'),COLORFF9933{XG51};
DRAWKLINE(H,O,L,C){XG51};
MA5:MA(C,5),COLORLIMAGENTA{XG51};
MA10:MA(C,N),COLORLICYAN{XG51};
MA25:MA(C,25),LINETHICK2,COLORWHITE{XG51};
MA45:MA(C,M),COLORCYAN{XG51};
MA120:MA(C,120),COLORGRAY;
另外,它的副图公式只偏重于短线操盘,我把慢速kd也组合进去后,也就兼顾了中线操盘。(慢速KD和macd其实差不多,都是中线指标),
下面是组合后的副图公式,个人觉得比原版好用:
Z:=MA(C,120){XG51};
VAR3:=(MA(C,5)-Z)/Z{XG51};
VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3){XG51};
波段进场:IF(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2),80,50){XG51};
反弹进场:IF(REF(VAR4,1)<5 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.3,80,50){XG51};
超跌进场:IF(crOSS(VAR4,5) AND VAR3<-0.4,80,50); STICKLINE(C>=MA(C,10),VAR4,REF(VAR4,1),4,0),COLORWHITE; STICKLINE(C<MA(C,10),VAR4,REF(VAR4,1),4,0),COLORCYAN{XG51};
RSV:= (CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))*100{XG51};
FASTK:=SMA(RSV,3,1){XG51};
SK:SMA(FASTK,3,1),LINETHICK2,COLORBLUE{XG51};
SD:SMA(SK,5,1),LINETHICK2,COLORLIMAGENTA{XG51};
MAKD:=(SK-SD)*2{XG51};
STICKLINE(MAKD>0 AND REF(MAKD,1)<MAKD,50,MAKD+50,0,0),COLORWHITE{XG51};
STICKLINE(MAKD>0 AND REF(MAKD,1)>MAKD,50,MAKD+50,0,0),COLORLICYAN{XG51};
STICKLINE(MAKD<0 AND REF(MAKD,1)>MAKD,50,MAKD+50,0,0),COLORLIRED{XG51};
STICKLINE(MAKD<0 AND REF(MAKD,1)<MAKD,50,MAKD+50,0,0),COLORLIBLUE{X=G*5^1=C=N={};
通达信做空建仓未加密选股指标公式源码
源码正文:
dif:ema(CLOSE,12)-Ema(CLOSE,26),COLORWHITE,LINETHICK2{XG51};
DEA:EMA(DIF,9),COLORRED,LINETHICK2{XG51};
持仓段:0,COLOR00CFFF{XG51};
空仓段:0,COLORFFCCFF{XG51};
stICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF{XG51};
STICKLINE(DIF<DEA,-0.5,-0.6,10,1),COLORFFCCFF{XG51};
DRAWTEXT(crOSS(DIF,DEA),DIF-0,'建仓'),COLORWHITE{XG51};
DRAWTEXT(CROSS(DEA,DIF),DIF+0,'空仓'),COLORCYAN{XG51};
macd彩柱:(DIF-DEA)*2,COLORSTICK{XG51};
STICKLINE(((MacD彩柱<REF(MACD彩柱,1)) AND (MACD彩柱>0)),0,MACD彩柱,1,0),COLORLIGREEN,LINETHICK2{XG51};
STICKLINE(((MACD彩柱>REF(MACD彩柱,1)) AND (MACD彩柱<0)),0,MACD彩柱,1,0),COLORFF00FF,LINETHICK2{XG51};
建仓:IF(DIF<0,DIF,0),COLORBLUE,LINETHICK2{XG51};
加仓:IF(DIF<0,0,DIF),COLORWHITE,LINETHICK2{XG51};
白线破仓:IF(DIF<DEA,DIF,DEA),COLORRED,LINETHICK2{XG51};
趋势强弱:IF(DIF>DEA,DEA,DEA),COLORFF937F,LINETHICK2{X_G?5*1_C_N_{};
栏 目:通达信公式
本文标题:通达信湖北卫视猛吹的战略家的操盘优化组合未加密选股指标公式源码
本文地址:https://www.xg51.cn/a/tdxgs/43091.html
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
选股无忧网是股票软件指标公式分享平台,不开展相关证券业务,平台展示的所有股票资料由网络收集,不保障实时性和真实性,请勿以此为依据进行股票交易。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 选股无忧网桂ICP备18001383号-7