![]() |
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
|
|||||||
| Miscellaneous Support Miscellaneous support issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
|
Hi there,
Apologies in advance for not having actually *tried* this yet... but I just wanted to ask the question before I got myself in too much trouble. I'm planning to go live autotrading my (interday) strategy later this week. For redundancy purposes, I want to make sure I can export/save my strategy's parameters (as well as any other "state" about the current run... existing stop orders?), and restore the same strategy on a different computer. How would I go about that? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
If you are referring to a NinjaScript strategy, this is not possible between machines or on the same machine. Once a strategy is terminated, it will restart fresh, as if it never ran before.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
|
Quote:
Other platforms I've worked with (like Wealth Lab) are designed to run this way on every bar. Every new bar of data is essentially executed on a strategy as if there was no previous state; it builds up hypothetical positions based on the "start" date, and then goes from there. Is that also how NinjaScript strategies function? Or are you saying that an intra-day strategy, once initiated, shouldn't be allowed to stop? And if it stops (overnight, while there are no bars)... the results will be different than if it hadn't been stopped? |
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Maybe we are on not on the same page.
- You can export your strategy code and import it from one PC to another via File > Utilities If you want to start a real-time strategy that is executing orders in a real-time brokerage account, then mid stream, stop this strategy on PC A, then go to PC B, start the strategy --> Then you can do this but on PC B, it will re-calculate the strategy state from a historical sense which may or may not match what the strategy was doing on PC A.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 | ||
|
Senior Member
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
|
Quote:
Quote:
I'm not doing anything tick based; I'm at worst on 5 minute bars, at best on 30 minute bars. I'm also using a single provider for all data (historical and live). |
||
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
1) I don't think there would be a downside
2) There are many reasons, here are a few - - The real-time bars built while the strategy was running does not match historical bars - The orders execute in real-time are just different than what occurs in backtest, when you restart your strategy on PC B, even assuming the real-time and historical data is identical, orders re-calculated on historical data will fill differently than what actually happened in real-time and thus there is a mismatch
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Nov 2008
Posts: 576
Thanks: 0
Thanked 1 time in 1 post
|
Quote:
Understand the issue with bars being different. On the order execution side... on PC A, you're saying NinjaTrader tracks positions (fill, avgPrice, etc) as they're executed through the broker. But if it's terminated, this information is subsequently lost? If so, that's definitely a form of "state" that I was referring to, and it'd be very useful if that information could be saved/exported/restored. But for practical purposes, I think I'll be okay in any case, since my code shouldn't be so highly dependent on the details of how orders execute... I'm okay with being off a percentage point or two. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add to ATM Strategy "Trailing "Limit"" | shawnj | Suggestions And Feedback | 2 | 10-10-2008 08:01 PM |
| Please add "Calmar" and "Sterling" ratios to Performance._Trades.TradesPerformance | Elliott Wave | Suggestions And Feedback | 2 | 06-10-2008 09:57 PM |
| "'OrderRejected'. Strategy has sent cancel requests" & "There is no market data..." | Elliott Wave | Strategy Development | 6 | 04-12-2008 12:03 AM |
| 2 instances of strategy when clicking "apply" and "okay" | dtf139 | Historical NinjaTrader 6.5 Beta Threads | 2 | 01-07-2008 11:25 PM |
| Workspace not saving "right side margin" | MJT | Historical NinjaTrader 6.5 Beta Threads | 3 | 11-23-2007 01:43 PM |