![]() |
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
|
|||||||
| Suggestions And Feedback New feature suggestions and feedback. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Dec 2007
Posts: 190
Thanks: 0
Thanked 0 times in 0 posts
|
ok trading strategy is written and runs on charts etc. when first invoked it is usually in the middle of a trade. how can i catch up? should i use the system.io to check for a file named instrument.fullname and trigger the trade by the strategy that way? it works.
thanks for any help |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2007
Posts: 190
Thanks: 0
Thanked 0 times in 0 posts
|
if the strategy opens long 1 and then uses the exitlong function and not a sell order would the account and strategy both be flat at that point? or would the account be short 1? Thanks Ray
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
We cannot say for certain if your account position will be flat, but your strategy position will.
If you had a long position in your account before you started your strategy your account will still be long after your strategy has done ExitLong() because of the prior long position.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Dec 2007
Posts: 190
Thanks: 0
Thanked 0 times in 0 posts
|
assuming the account is flat. the strategy opens long 1 then exits long. account still flat right? then next trade triggered by the strategy i.e. long 1 will be in sync with account. yes?
|
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Correct. Assuming you start a strategy when it is in sync with your account position they will remain synced.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Once NT6 data becomes delayed it doesn't catch up to be real-time | dfogg | Connecting | 11 | 08-17-2007 07:41 AM |
| Catch the end of a minute bar on a tick by tick OnBarUpdate event | Fabrice | Automated Trading | 5 | 07-06-2007 12:28 PM |
| Catch the end of a minute bar on a tick by tick OnBarUpdate event | Fabrice | Automated Trading | 1 | 07-06-2007 06:53 AM |