PDA

View Full Version : Live strategy opens position but doesn't close it


kayra
10-16-2010, 06:30 AM
Hello,

My strategy works fine in simulation mode but in live mode it is not acting the same. I'm using this to open position:

EnterLong(100000, "Short1")

and

ExitShort("Short1")

to close, but it doesn't fire, i don't get any message also. I'm using it with Interactive Brokers.




The second thing I noticed is that the entries are not showing on the chart when in live mode. In simulation I can see the buying and selling actions on the chart. Is this how it should work?

Thanks a lot,

Kayra

NinjaTrader_Bertrand
10-16-2010, 09:35 AM
Kayra, welcome to our forums - are you sure you started the strategy on your live IB account? You need to select the account explicitly when starting the strategy up for trading.

http://www.ninjatrader-support.com/HelpGuideV6/RunningANinjaScriptStrategyFromAChart.html

You also want to ensure the sync between your strategy and account position is intact -

http://www.ninjatrader-support.com/HelpGuideV6/StrategyPositionVsAccountPosition.html

For the visualization of orders on the chart, please also ensure the correct and submitted to account is selected in the ChartTrader panel, otherwise you would not 'see' them.