For example, how can I draw RSI(EURUSD,14,3) and RSI(AUDUSD,14,3) in the same backtesting chart. They can be in different panels.
I could only add the indicator of the primary instrument in the chart, but couldn't add the indicator for the secondary instrument.
Below is my code:
protected override void Initialize()
{
Add("$AUDUSD", PeriodType.Minute, 10);
Add(RSI(Close,14,3)); // add RSI of the primary instrument EURUSD
Add(RSI(BarsArray[1],14,3)); // try to add RSI of 2nd instrument but is wrong
}
Could someone point out the error in the 3rd line of the above code in blue color?
Also thanks a lot if anyone can provide sample code....
Comment