PDA

View Full Version : NTMarketPosition could not have been = 0


trickofthetrade
03-27-2006, 12:01 PM
Could you tell me why the following did not work in preventing a new strategy initiated trade when there was still an active strategy initiated trade (I have only one account (the default account) at Pats... RCG):

inputs: Quantity(8),ExpireDate("ESM06");

if LastBarOnChart and NTConnected(1) then begin

if NTMarketPosition(ExpireDate,"") = 0 then begin

(do trade)

End; End;

NTMarketPosition could not have been = 0. I was still in a real dollar live trade (Emini S&P). What did I miss?

Thanks, Bill

NinjaTrader_Ray
03-27-2006, 01:17 PM
NTMarketPosition() only accepts one parameter which is account which you can leave as empty string.


Try

if NTMarketPosition("") = 0 then begin