#region Variables
private int length = 14;
private WMA RSIWAvg;
private SMA RSIAvg;
private RSI _RSI;
#endregion
protected override void OnBarUpdate()
{
price = (Open[0] + Close[0] + High[0] + Low[0]) / 4;
_RSI = RSI((int)Price, Length);
RSIAvg = SMA(_RSI, 100);
RSIWAvg = WMA(RSI((int)Price, Length), 3);
...
Does this make sense? For some reason I am not able to adjust the "length" setting in the indicator once it plots.
Thanks much in advance!
Comment