NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 06-04-2007, 01:39 PM   #1
MGDavid
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default A rare problem with a specific order.

Hello,

I was developing a simple trading strategy with NinjaScrith for trading in the future CAC 40.
The code of Ninja is the following:
( You can see the screen shot of my strategy in the next file)
The strategy works very well in Back Test, but i have a rare problem when i running it in real time.

The strategy sends the entry order well and when the order is executed then... ( my stop loss ) is placed ok.
But if the strategy has a position = 1 at 18:45:00 then the order be cancel.

I am running the strategy in a chart of 10 minutes.
This is rare rare rare true ?
I am writing from Europe ( Spain), and i am running this strategy in another markets ( usa) and i have no this problem.

Why this happend to me ?
Sorry for my bad english , I am learning slowly

Thanks for your time.
Attached Images
File Type: jpg Problem with an order.jpg (13.7 KB, 19 views)
MGDavid is offline  
Reply With Quote
Old 06-04-2007, 01:44 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

There could be several issues -

- Could the order be cancelled due to "Exit on close" parameter being true when running a strategy?
- Since its a very specific time, could the exchange be closing at that time and your broker is automatically cancelling the order due to a DAY time in force?
NinjaTrader_Ray is offline  
Reply With Quote
Old 06-04-2007, 01:55 PM   #3
MGDavid
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default

Ray say :

- Could the order be cancelled due to "Exit on close" parameter being true when running a strategy?

No, because the trading day for future cac40 ends at 20:00 o clock and i think that this set up is correct in my configuration.

Ray say:
- Since its a very specific time, could the exchange be closing at that time and your broker is automatically cancelling the order due to a DAY time in force?


May be... i am trading with Interactive Brokers.
Should i to change the time force in my strategy for Gtc?

Thanks for your time
MGDavid is offline  
Reply With Quote
Old 06-04-2007, 02:15 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Yes, try to change to GTC.
NinjaTrader_Ray is offline  
Reply With Quote
Old 06-05-2007, 11:35 AM   #5
MGDavid
Junior Member
 
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default

Ray say:

- Since its a very specific time, could the exchange be closing at that time and your broker is automatically cancelling the order due to a DAY time in force?

It was for this !.
I changed the state of the order and all works ok.
I did not know that the end of day for this order was at 18:45 in Europe .
Thanks very much !

Regards
MGDavid is offline  
Reply With Quote
Old 06-05-2007, 11:47 AM   #6
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Excellent! Thanks for reporting back.
NinjaTrader_Ray 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
Price data on specific time frame. The Shadow Indicator Development 4 03-17-2007 01:04 PM
Problem Changing a Named Strategy's Stop Order dsidlo Automated Trading 2 08-23-2006 08:47 AM
Order Confirmation Problem between IB and NT chipper338 Miscellaneous Support 15 12-13-2005 03:29 PM
Order Qty scroll problem efremiv Miscellaneous Support 1 11-15-2005 06:43 AM
Make the voice notifications more specific zentrader Suggestions And Feedback 2 04-05-2005 07:19 AM


All times are GMT -6. The time now is 01:21 PM.