向大家请教一个问题,谢谢。

 

仿照ATR指标,怎么作出各个周期的RSI的ATR(波动区间)呢?

比方说,5分钟图表,每根K线都可以显示最高价和最低价。同样道理,想知道每根K线对应的RSI的最大值和最小值。

这样,就能求出RSI的ATR来了。

有个例子不知道怎样做到MT4上。

Indic

Indicator: RSI+Vol Bands

input :Coefdwn(2.1),Coefup(2.3);

Plot1((average((RSI(Close,14)),6))+(Coefup*(Average(TrueRangeCustom((RSI(Close,14)),(RSI(Close,14)),(RSI(Close,14))),15)))"Plot1";

Plot2((average((RSI(Close,14)),6))-(Coefup*(Average(TrueRangeCustom((RSI(Close,14)),(RSI(Close,14)),(RSI(Close,14))),15)))"Plot2";

Plot3((RSI(Close,14)),"Plot3";

IF CheckAlert Then Begin

IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2

or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3

or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3

Then Alert=TRUE;

END;ator: RSI+Vol Bands

input :Coefdwn(2.1),Coefup(2.3);

Plot1((average((RSI(Close,14)),6))+(Coefup*(Average(TrueRangeCustom((RSI(Close,14)),(RSI(Close,14)),(RSI(Close,14))),15)))"Plot1";

Plot2((average((RSI(Close,14)),6))-(Coefup*(Average(TrueRangeCustom((RSI(Close,14)),(RSI(Close,14)),(RSI(Close,14))),15)))"Plot2";

Plot3((RSI(Close,14)),"Plot3";

IF CheckAlert Then Begin

IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2

or Plot1 Crosses Above Plot3 or Plot1 Crosses Below Plot3

or Plot2 Crosses Above Plot3 or Plot2 Crosses Below Plot3

Then Alert=TRUE;

END;