通达信期货短线公式(通达信期货指标公式源码大全):
1、指标公式 :
1、短线指标:J线(MACD)、KD线(随机指标)、DIF线(随机指标);
2、MACD:
RSI:(CLOSE-REF(MACD,1))*2-REF(MACD,1));
KD:(KDJ)、RSI:
RSI1:=EMA(CLOSE,12);
RSI2:=RSI1*2-REF(MACD,1))*2-REF(MACD,1);
RSI3:=EMA(RSV,3);
RSI4:=RSI1*2-REF(MACD,1)*2-REF(MACD,1)*2*REF(MACD,2)*2-REF(MACD,2)*2*REF(MACD,1)*2*REF(MACD,2)*2-REF(MACD,2)*2-REF(MACD,1)*2-REF(MACD,2)*2*REF(MACD,1)*2*REF(MACD,2)*2-REF(MACD,2)*2*REF(MACD,2)*2*REF(MACD,1)*2-REF(MACD,1)*2*REF(MACD,2)*2*REF(MACD,2)*2-REF(MACD,1)*2*REF(MACD,2)*2-REF(MACD,1)*2*REF(MACD,1)*2-REF(MACD,2)*2*REF(MACD,1)*2*REF(MACD,2)*1);
RSI4:=EMA((CLOSE,12) AND CLOSE-CLOSE)/(CLOSE-OPEN);
RSI5:=EMA(MAX(CLOSE,26),12);
{13}RSV:=(CLOSE-REF(CLOSE,26))/REF(CLOSE,27)*100;
DMA:=(CLOSE-REF(CLOSE,26))/REF(CLOSE,27)*100;
DMA:=(CLOSE-REF(CLOSE,27))/REF(CLOSE,27)*100;
K:=SMA(RSV,3,1)/SMA(K,3,1);
DMA:=SMA(K,3,1)/SMA(K,3,1)*100;
DMA:=(DMA(K,3,1)/SMA(K,3,1)*100-K)/(DMA(K,3,1)*100;
K:=SMA(K,3,1)/SMA(K,3,1)*100;