龙听期货论坛's Archiver

龙听 发表于 2018-12-24 15:41

大智慧个股大盘强弱指标指标源码 个股大盘线[大智慧公式]

[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]个股强于大盘的指标,至今未有答案,刚自己想办法解决,顺便送给各位做个参考。[/size][/font][/color]

[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]{指标1:个股大盘强弱比 N 1 1000 1}[/size][/font][/color]


[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px][code]
VAR1:=(C-ref(C,1))/ref(C,1);
VAR2:=(INDEXC-ref(INDEXC,1))/ref(INDEXC,1);
个股:100*EMA(EMA(VAR1,N),N);
大盘:100*EMA(EMA(VAR2,N),N);
强弱比:个股/大盘,COLORRED;
[/code]
[/size][/font][/color]


[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px]参数N设置为1适合做超短,最大设置为30较合理,强弱比大于0则表明个股强于大盘,具体用法可自己揣摩。[/size][/font][/color]


[color=#212121][font=宋体, Arial, Helvetica, sans-serif][size=14px][attach]6039[/attach]
[/size][/font][/color]

页: [1]