I want to add LineBreak dataseris from diffrent Instrument to the Strategy. For example, I want to strart the Strategy on NQ##-##, and add LineBreak on EURJPY. Please take a look how I'm doing it:
else if (State == State.Configure)
{
AddLineBreak("EURJPY",BarsPeriodType.Tick,75,3,MarketDataType.Last);
}
Then I will place the Strategy on the "NQ##-##" and want to see the candles data from BarsArray[1]. Please take a look:
protected override void OnBarUpdate()
{
if (CurrentBar < 1) return;
if (BarsInProgress == 1)
Print(
Times[1][0].ToString("HH:mm:ss.ffff")+", "+
Opens[1][0].ToString()+", "+
Closes[1][0].ToString()+" :: "+
Times[1][1].ToString("HH:mm:ss.ffff")+", "+
Opens[1][1].ToString()+", "+
Closes[1][1].ToString()+" :: "+
BarsArray[1].ToString()
);
}
If I opened the "EURJPY" LineBreak chart (with the same parameters) aditionally and place the Strategy on "EURJPY" chart, I will see that the Strategy on "EURJPY" sees the SAME value as I see it on the "EURJPY" LineBreak chart.
Why? How I can get the same values?
Please take a look at the video and Strategy.
Comment