![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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... |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Please follow this tip and see if you get any messages when running your strategy: http://www.ninjatrader-support2.com/...ead.php?t=3627
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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... |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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.... |
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |