把底背离指标改个通达信的_同花顺

把(多方炮)公式改成预警和选股公式

把(多方炮)公式改成预警和选股公式

【股票资源馆】炒股教程、黑马股票、股票资讯、期货外汇,大智慧沪深10档破解,高成功率股票指标,策略投资破解,财经股票论坛,东方财富破解版,东方财富专业破解版。

编写条件:

源码如下: {底背离} INPUT:N(20,0,80); {1.MACD} DIFF :=EMA(CLOSE,7) - EMA(CLOSE,13); DEA := EMA(DIFF,3); MACD := 2*(DIFF-DEA); A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)

C AND REF(K,A2+1)

C AND REF(RSI1,A3+1)

REF(CCI4,1) AND CROSS(CCI4,-100); { CCI底背离'} XG:((B1 AND B2) OR (B2 AND B3) OR (B1 AND B3) OR ( B4 AND CCI4<-90) ) AND D




编写方法:

 N:=20;

 {1.MACD}
 DIFF :=EMA(CLOSE,7) - EMA(CLOSE,13);
 DEA  := EMA(DIFF,3);
 MACD := 2*(DIFF-DEA);
 A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
 B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);{MACD底背离}
 {2.KDJ}
 RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
 A2:=BARSLAST(REF(CROSS(K,D),1));
 B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);{KDJ底背离}
 {3.RSI}
 LC := REF(CLOSE,1);
 RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
 RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
 A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
 B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);{RSI底背离}
 
 TYB:= (HIGH + LOW + 2*CLOSE)/4;
 CCI4:=(TYB-MA(TYB,28))/(0.015*AVEDEV(TYB,28));
 B4:=LAST(MA(C,5)<MA(C,10),5,1)  AND CCI4>REF(CCI4,1) AND CROSS(CCI4,-100);  { CCI底背离'}
 
 XG:((B1 AND B2) OR (B2 AND B3) OR (B1 AND B3) OR ( B4 AND CCI4<-90) ) AND D<N ; 
 
 

{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}

【股票资源馆】炒股教程、黑马股票、股票资讯、期货外汇,大智慧沪深10档破解,高成功率股票指标,策略投资破解,财经股票论坛,东方财富破解版,东方财富专业破解版。

价升量缩的预警公式

价升量缩的预警公式

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu