I'm new to the forum... in fact I'm new to NinjaTrader having defected from MT4

I like to code my own indicators, but NinjaScript is completely unknown to me.
As a start point, I tried to achieve what I mistakenly thought would be a simple task: display the current RSI of another instrument in a text box in the corner of the screen (thinking that something existed along the lines of iRSI for those who use mql4).
I started off by adding 2 variables:
#region Variables
private int Period = 14;
private int Smooth = 3;
#endregion
protected override void OnBarUpdate()
{
int otherRSI = (int) RSI(Close, Period,Smooth)[0];
DrawTextFixed("RSI", otherRSI.ToString(), TextPosition.TopRight);
}

Then I tried to figure out how to get the RSI of another instrument... and that is where I have been going around in circles.
I think it has something to do with Add() and DataSeries but so far the solution has eluded me.
If anybody could give me some pointers it would be very much appreciated!
Thanks in advance
honestknave

Comment