PDA

View Full Version : returning the market position of a symbol


HelloHello
08-29-2007, 02:05 AM
sorry for all the darn questions, I'm sure you're thinking by now, geez... why did we sell this guy a license, but I'dl ike to say I find the service and product very helpful.

int NTMarketPosition(string account)
Gets the market position for the selected instrument/account combination. Returns 0 for flat, negative for short and positive for long. This function will only return values for positions initiated via the ATI.

if I am trading say MSFT, and I want to know the marketposition of MSFT the following will tell me right???

NTMarketPosition("MSFT") right?

NinjaTrader_Dierk
08-29-2007, 02:37 AM
No, as the parameter name suggests you need to pass an account name (or default empty string "") and not an instrument name. The instrument is determined by the TS chart you add your strategy to