![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
Hi:
I am concerned about the following scenario & would like to understand NT's thoughts on this. 1/ I am running a strategy via NinjaScript with an active trade in play with a trailing stop / profit targets orders in place at the exchange. 2/ Computer locks up & have to reboot. 3/ Re-open NT & have to re-activate the strategy - do I assume here that I have to include historical data in the strategy to resynchronise with the exchange). 4/ Strategy has to be active due to exit criteria (indicators) & trailing stop orders. 5/ Process steps for getting synchonised ???? ---- 1/ open NT, 2/ connect to e-signal (for historical data), 3/ activate strategy, 4/ connect to the broker. Also in an alternative scenario where there is a temporary loss in connection (either directly to the internet or datafeed from the broker) & the systems automatically resynchronises ---- could this create any issues with order flow??? thx in advance David |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
a) strategy is canceled as you disconnect
b) you are left with an active order/position in your account which is no different than just a regular strategy start with an active order/position in your account c) temporary loss of connection will not make a difference for your live order/position. However strategy might have missed live bars and you might have to take action by custom code (supported by monitoring the connection status event in NT6.5) or manual action
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
thx.
But regarding point 'b'. yes i am left with an active order......however, with a trailing stop strategy or with an exit based on specific indicator criteria surely there would be need to be some way of resynchronising otherwise the only exit condition could be the 'old' trailing stop level or the profit target. thx for your help David |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
You would need to manually cancel the order and start again. There is no syncing to orders already in place.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
thx for the clarification !
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Sep 2006
Location: , ,
Posts: 22
Thanks: 1
Thanked 0 times in 0 posts
|
Hi
I trade emini s&p on globex with datafeed zenfire. If I am in a trade with a stop loss and profit target (oco) in place and I loose connection will my orders be actioned if the relevant price is hit while I am offline Also if in a trade can I log off happy in the knowledge my stop profit target if hit will be actioned Thanks Sam |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
|
Hi,
Just to quickly revive this thread here... I thought OnConnectionStatus gave us two parameters, one for "price" (Barchart?) and one for orders. Doesn't that mean we can monitor both connections? Or is this a feature introduced in a later release than what was discussed previously? |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
>> Doesn't that mean we can monitor both connections?
Correct. The account connection has an internal order connection and an internal price connection (which might be different dependent on broker).
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lost connection lost orders | Bogan7 | Connecting | 1 | 09-12-2007 11:21 PM |
| Lost Super Dom connection | Lincoln | Miscellaneous Support | 4 | 10-23-2006 05:12 AM |
| connection lost (IB) | mr_ben | Connecting | 4 | 03-20-2006 05:42 AM |
| Locating connection lost | blsmith95 | Miscellaneous Support | 1 | 05-12-2005 02:03 PM |
| Lost connection and NT froze up | cody | Connecting | 1 | 04-08-2005 07:16 AM |