TradingView
RicardoSantos
5 feb 2015 14:28

[RS]Moving Average Cross System V0 

U.S. Dollar/Japanese YenFXCM

Beskrivning

moving average crossover with added functions:
if you want crossover with price set ma1 length to 1, or use as dual ma with both lengths, ability to turn ma's on and off leaving the crossover signals behind, ability to chose ma mode (sma, ema, rma, wma, vwma, swma and alma), ability to chose source (open, high, low, close, hl2, hlc3 or ohlc4).
Kommentarer
telepatico
Ricardo, anywhere the RMA function is explained to see what it consists of? I got that is same as used in RSI etc, but not sure what calculations is made of. Thanks.
RicardoSantos
if you mouse over the rma() on the code above, it will popup the description with the formula.
telepatico
Yes; It is described as RSI(curr + prev(length -1))/length; I am wondering what the current and prev are. Thanks.
RicardoSantos
current value, previous value
telepatico
So the current RSi value? Something else? Thanks.
telepatico
It shows: Moving Average used in RSI (curr + prev *(length, -1)) / length it is similar to ema. IS the formula RSI (curr + prev *(length, -1)) / length or just (curr + prev *(length, -1)) / length? Thanks.
Mer