PDA

View Full Version : using AvePrice in a multi-symbol strategy


Folls
11-20-2007, 09:51 AM
Hi again,

I have a multi-symbol strategy and want to get the average entry price for each symbol. I tried the following:

Positions[0].AvePrice

I get the compile error:

NinjaTrader.Cbi.Position does not contain a definition for AvePrice

How should I get the average entry prices for each symbol for open positions?

Thanks,

Folls

NinjaTrader_Dierk
11-20-2007, 09:54 AM
Not sure why you think it should be AvePrice. Please check out the intellisense in the editor or the docs which would show AvgPrice. http://www.ninjatrader-support.com/HelpGuideV6/AvgPrice.html

Folls
11-20-2007, 10:10 AM
I apologize for that. I'm not sure what I was thinking. I looked at that page at least 5 times before posting. Maybe it was because I was abbreviating average as Ave in some of my properties in my code. In any case, sorry for wasting your time on that one. The support here is excellent as always.

Folls

NinjaTrader_Dierk
11-20-2007, 10:12 AM
Glad issue is resolved for you.