各位高手帮我这个指标改个选股公式吧
解决时间 2021-02-23 11:49
- 提问者网友:我是女神我骄傲
- 2021-02-22 21:34
做两个选股公式:
1.只出1个布娃娃为选股点
2.连续出2个布娃娃为选股点
{=================================================}
STICKLINE(C>=O,C,O,3,0),COLOR0000AA;
STICKLINE(C>=O,C,O,2.5,0),COLOR0000BB ;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000CC ;
STICKLINE(C>=O,C,O,1,0),COLOR0000EE;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;
STICKLINE(C<=O,C,O,2.5,0),COLOR909000;
STICKLINE(C<=O,C,O,1.5,0),COLORA8A800;
STICKLINE(C<=O,C,O,1,0),COLORCECE00;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
ZA1:=EMA(C,25);
ZA2:=EMA(ZA1,45);
ZB1:=EMA(C,65);
ZB2:=EMA(ZB1,45);
DIFF:=(ZA1+ZB2)/2;
DEA:=(ZA2+ZB1)/2;
KA0:=(HHV(C,45)-LLV(C,45))/45;
KA1:=SMA(C,3,1);
KA2:=SMA(C-KA0*3,3,1);
KA3:=SMA(KA1-KA0*3,3,1);
SC:=100*(CLOSE-MA(CLOSE,80));
SC1:=EMA(SC,5);
SC2:=EMA(SC,21);
长期策略:SC1>=SC2,NODRAW;
次级策略:DIFF>=DEA,NODRAW;
短期策略:KA2>=KA3,NODRAW;
短期拐点:REF(短期策略,1)=0 AND 短期策略=1,NODRAW;
长期趋势:ZB2,COLORYELLOW,LINETHICK3;
次级趋势:DIFF,NODRAW;
短期趋势:KA2,NODRAW;
IF(DIFF>=DEA,DIFF,DRAWNULL),LINETHICK3,COLORRED;
IF(DIFFIF(KA2>=KA3,KA2,DRAWNULL)COLORMAGENTA,LINETHICK3;
IF(KA2
{bbs.datianxia.net 打天下论坛}
CSAR:=SAR(10,2,20);
持股:=IF(CSAR<=L,CSAR,0);
涅磐:=EMA(SLOPE(C,21)*20+C,42);
般若:=EMA(C,5);
VAR1:=(C+H+O+L)/4;
卖出:=XMA(VAR1,20)*(1+8/1000);
买入:=XMA(VAR1,32)*(1-8/1000);
菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};
提菩:=买入+(卖出-买入)*1/2;
开悟:=IF(般若>=REF(般若,1),般若,DRAWNULL);
抛物线转向:=CROSS(L,CSAR) AND 开悟>0 AND H<菩提 AND 持股>0 AND H>涅磐;
DRAWICON(抛物线转向,(L),5);{趋势底};
般:=XMA(CLOSE,7);
若:=MEMA(CLOSE,3);
趋势延伸:=短期拐点 AND 菩提>H AND NOT(抛物线转向);
DRAWICON(趋势延伸,L,5);
DRAWICON(LONGCROSS(若,般,3) AND H>提菩,H,19);
DRAWICON(BARSLAST(LONGCROSS(若,般,3) AND H>提菩)=1,H,2);
最佳答案
- 五星知识达人网友:洒脱疯子
- 2021-02-22 23:12
1.只出1个布娃娃为选股点
-----------------------------------------------------------------------------------------------
KA0:=(HHV(C,45)-LLV(C,45))/45;
KA1:=SMA(C,3,1);
KA2:=SMA(C-KA0*3,3,1);
KA3:=SMA(KA1-KA0*3,3,1);
短期策略:=KA2>=KA3,NODRAW;
短期拐点:=REF(短期策略,1)=0 AND 短期策略=1,NODRAW;
CSAR:=SAR(10,2,20);
持股:=IF(CSAR<=L,CSAR,0);
涅磐:=EMA(SLOPE(C,21)*20+C,42);
般若:=EMA(C,5);
VAR1:=(C+H+O+L)/4;
卖出:=XMA(VAR1,20)*(1+8/1000);
买入:=XMA(VAR1,32)*(1-8/1000);
菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};
提菩:=买入+(卖出-买入)*1/2;
开悟:=IF(般若>=REF(般若,1),般若,DRAWNULL);
抛物线转向:=CROSS(L,CSAR) AND 开悟>0 AND H<菩提 AND 持股>0 AND H>涅磐;
趋势延伸:=短期拐点 AND 菩提>H AND NOT(抛物线转向);
抛物线转向=1 OR 趋势延伸=1;
2.连续出2个布娃娃为选股点
-----------------------------------------------------------------------------------------------
KA0:=(HHV(C,45)-LLV(C,45))/45;
KA1:=SMA(C,3,1);
KA2:=SMA(C-KA0*3,3,1);
KA3:=SMA(KA1-KA0*3,3,1);
短期策略:=KA2>=KA3,NODRAW;
短期拐点:=REF(短期策略,1)=0 AND 短期策略=1,NODRAW;
CSAR:=SAR(10,2,20);
持股:=IF(CSAR<=L,CSAR,0);
涅磐:=EMA(SLOPE(C,21)*20+C,42);
般若:=EMA(C,5);
VAR1:=(C+H+O+L)/4;
卖出:=XMA(VAR1,20)*(1+8/1000);
买入:=XMA(VAR1,32)*(1-8/1000);
菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};
提菩:=买入+(卖出-买入)*1/2;
开悟:=IF(般若>=REF(般若,1),般若,DRAWNULL);
抛物线转向:=CROSS(L,CSAR) AND 开悟>0 AND H<菩提 AND 持股>0 AND H>涅磐;
趋势延伸:=短期拐点 AND 菩提>H AND NOT(抛物线转向);
VV:=抛物线转向=1 OR 趋势延伸=1;
VV AND REF(VV,1);
{已测试,复制可直接引用,如果回答满意,请记得给采纳}
全部回答
- 1楼网友:夜风逐马
- 2021-02-23 00:10
a01:=dynainfo(7);
a03:=barscount(close);
a04:=(sma((close / hhv(high,120)),3,1) * 100);
a05:=if((a03 > 20),a04,0);
a06:=if((low > a01),0,if((high < a01),1,(((a01 - low) + 0.009) / ((high - low) + 0.009))));
a07:=dma(a06,(vol / capital)) * 60;
a09:=if((((a07 > 0) and (a07 > ref(a07,1))) and (a05 <= 88)),a07,0);
var1:=3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1);
var2:=ema(var1,8);
var3:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma(sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1),3,1);
趋势:=ema(var3,3)-10;
var4:=(趋势-ref(趋势,1))/ref(趋势,1)*100;
var5:=filter((趋势<=13 and var4>13),10);
var5 or filter(趋势<=13,15);
我要举报
大家都在看
推荐资讯