NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-26-2009, 08:17 AM   #1
serman
Junior Member
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default Strategy entry market orders don't get filled

Can somebody help me pls?

I've began running live automated system after a couple mounths of backtesting. I am running my strategy from the chart. I have a problem: strategy orders/positions appears on chart only after I close strategy and reload. System doesn't send orders automatically into TWS platfrom. This can be the problem?

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()


Please help...
serman is offline  
Reply With Quote
Old 08-26-2009, 08:23 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Please follow this tip and see if you get any messages when running your strategy: http://www.ninjatrader-support2.com/...ead.php?t=3627
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-26-2009, 08:54 AM   #3
serman
Junior Member
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default not updating the bars on live strategy running

Running live strategy from the chart. Does not execute trading conditions. Entries and exits appear only when I reload strategy on the chart. What should I do?
serman is offline  
Reply With Quote
Old 08-26-2009, 09:01 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

serman, to which account do you execute? On the Sim101 they would stay inside of NinjaTrader.

Also: please remove any CalculateOnBar references in called indicators and control this only from the strategy Initialize() directly.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 08-26-2009, 09:22 AM   #5
serman
Junior Member
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default

Bertrand,

I am runninng live trading strategy with TWS. I am running this strategy from the ninja trader chart. On the Sim101 account everything is fine, the problem is with the live trading account. I am not using any "calculate onbarclose" references. But I have set up chart to run from specific period of time...
serman is offline  
Reply With Quote
Old 08-26-2009, 09:27 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

serman, do you see any errors in the log tab? Did you check into TraceOrders yet to debug? - http://www.ninjatrader-support2.com/...ead.php?t=3627

So the strategy is running as expected in realtime trading on the Sim101 account?

Which TWS and NT versions do you employ? We recommend using TWS 895.3 with NT 6.5.1000.12 currently - http://www.ninjatrader.com/webnew/su...ivebrokers.htm
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 08-26-2009, 09:35 AM   #7
serman
Junior Member
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default

Bertrand,

I am using trace orders, have checked log files but nothing there. Output window does not print anything. I will try to update ninja trader but seems to me that the problem is with the bar update. Now I reloaded strategy and it exited from the position a few bars ago while the position in the TWS is sill the same....
serman is offline  
Reply With Quote
Old 08-26-2009, 09:37 AM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

serman, ok please upgrade to the latest NinjaTrader release via Help > Download Site.

Then contact me with the Help > Mail to Support feature ( Attn Bertrand ) and check to include Trace and Logs.

Thanks
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cancelling Order/Entry Order filled cancels all other entry orders ScottB ATM Strategies (Discretionary Trading) 2 06-03-2009 12:19 PM
my limit orders immediately filled at market .? mini_me SuperDOM and other Order Entry Windows 6 05-31-2009 11:24 AM
orders filled outside of market malcolm Strategy Development 4 11-13-2008 10:53 AM
Delay exit orders until entry order filled dtf139 Automated Trading 3 02-15-2008 03:00 PM
partially filled entry orders werosen Miscellaneous Support 3 01-11-2006 07:53 AM


All times are GMT -6. The time now is 11:48 AM.