PDA

View Full Version : Starting strategies with an open position?


mazachan
09-21-2007, 08:46 AM
I'm trying to figure out why when I start a strategy it says there is a position entered and the unrealized PNL is fluctuating. When I shut everything down, I made sure that there were no open positions and had flattened everything. I also don't hear that orders have been filled. It seems like there is a "ghost" order. Is there any reason for this?

Thanks.

NinjaTrader_Ray
09-21-2007, 09:08 AM
Your strategy always manages a virtual position that may or may not reflect your accounts actual position. When you start a strategy, it calculates historical what your strategy has done and its current state. This state may include an open position. If you want to sync your account and strategy position you can place an order into your account via the Control Center.

Alternatively, you can include:

if (Historical)
return;

So your strategy will not process on the historical data of your chart.