PDA

View Full Version : Multi Instrument "Close" price syntax


ct
06-09-2007, 03:06 AM
Can I access the "Close" price of a secondary instrument? I tried 2 formats and it doesn't seem to like either.

I tried:

Close(BarsArray[InstrumentPosition["^DJIA"]]) [0]

and

Close[InstrumentPosition["^DJIA"]] [0]

I can access indicator values but can't seem to get the price data.

I want to access the current open and close price of the current bar of the secondary instrument.

NinjaTrader_Dierk
06-09-2007, 05:10 AM
Closes[<SeriesNumber>][<barsAgo>]

ct
06-09-2007, 10:54 AM
Dierk

Danke.