1) For example, I trade EURUSD - master instrument
2) MyIndex("MSFT") is an indicator that can show me chart of instrument "MSFT" in Strategy Analyzer in addition to master instrument chart.
3) UPDW(MyIndex("MSFT")) is an indicator that uses MyIndex("MSFT") and plot additional line on MyIndex("MSFT") chart.
3) Data history for EURUSD begins from 1990 year
4) Data history for MSFT begins from 2000 year
4) If I set 1990-2014 in Strategy Analyzer - there is one thing: UPDW(MyIndex("MSFT")) plots line even before first value of MyIndex("MSFT") and automatically uses master instrument data (EURUSD).
I need UPDW(MyIndex("MSFT")) should use only MyIndex("MSFT") data and shouldn't plot line before first data of MyIndex("MSFT") and don't use EURUSD data.
As for master instrument I usually use
if (CurrentBars[0] <= 100) return;
So, what should I use in indicator UPDW(MyIndex("MSFT")) to plot line only after first indicator MyIndex("MSFT") value appeared.
Comment