![]() |
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
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?
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
|
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
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
Yes, try to change to GTC.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2007
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
Excellent! Thanks for reporting back.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |