当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是趋势买卖PK天机均线(无源码的请下载附件导入)
趋势买卖与天机均线,对历史准确率极高!但对未来嘛,慎用啊!!
1、趋势买卖
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- VAR1:=(C+H+O+L)/4;
- 卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
- 买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
- 幅度:100*(卖出-买入)/买入,NODRAW;
- MA1:=MA(VAR1,3);
- STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
- STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
- STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
- STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
- STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
- STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
- STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
- STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
- STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
- STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
- DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
- DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;
2、天机均线
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- EMA250:MA(C,250),COLORRED;
- EMA6:MA(C,6),COLORRED LINETHICK2;
- EMA18:MA(C,18),COLORYELLOW;
- EMA55:MA(C,55),COLORFF00FF;
- EMA144:MA(C,144),COLORGREEN;
- EMA288:MA(C,288),COLORBLUE;
- 中线【买入】:=COUNT(CLOSE<EMA18,5)=4 AND
- CLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>=
- REF(EMA18,1),LINETHICK,COLORRED;
- DRAWTEXT(中线【买入】,LOW*0.95,' 中线【买入】'),COLORRED;
- VL:=REF(LOW,1);
- VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
- VAR14:=MA(VAR12,13);
- VAR15:=LLV(LOW,34);
- VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
- VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
- VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
- T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);
- DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;
- DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF;
- VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
- VAR22:=SMA(VAR21,3,1);
- VAR23:=SMA(VAR22,3,1);
- VAR24:=SMA(VAR23,3,1);
- VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;
- DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED;
- DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORRED;
- VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;
- DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃顶'),COLORBLUE;
- DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORBLUE;
上一篇:通达信高速行情主图公式-青松红牛 下一篇:最好的指标--主力雷达