![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
Hi everyone,
I'm currently testing a variety of strategies against live data during the day and am having a problem with running multiple strategies on the same symbol. The way I have tried to do it is to open two charts on the same symbol and put a different strategy on each chart. The problem is that the orders seem to conflict with each other. How can I run multiple strategies such that they keep track of their own orders independently? Thanks. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Are you trading futures, forex or equities? Which broker?
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
Equities. The data is coming from TD Ameritrade but it is running against the Sim101 account (not placing real trades).
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Thanks.
Can you clarify what you mean about conflicting orders in the Sim101 account?
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
I had two charts open, with a different strategy in each (A in one, B in the other), both trading the same equity.
When strategy A placed a long order, the order showed up in both charts and both strategies showed a position in the control center:strategies panel (1000L for example). Then strategy A placed a short order but stayed at 1000L while strategy B went flat. (I'm remembering the events from watching this in real time this morning so I might have the details slightly wrong.) |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
This should not be the case. Are you sure you didn't run the same strategy on both charts or that each strategy actually generated an order
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
I'm sure that strategy B did not produce any orders while I was watching it.
Only strategy A produced orders which showed up as positions in both strategies. I'm am sure they were not the same strategy though even if they were the fact that the positions eventually became different (but wrong) would say something is wrong. Just so I understand though, you are saying that each strategy should be independent even when trading the same equity and using EnterLong/Short and ExitLong/Short in the strategies? |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Yes, they are independant. If your experience is otherwise, we would need a 100% reproducible scenario. Thanks.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Member
Join Date: Feb 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
Is there any way for me to test this using the simulated data feed? Or do I have to wait until the market opens again to test it again?
(I tried using the simulated data feed but nothing happened in the chart on the equity (AAPL for example) I was trading) |
|
|
|
|
|
#10 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Yes, you can use simulated feed. What you have to do is set a sim feed starting price for each instrument you wish to trade in the Instrument Manager.
Best approach is to connect to a real provider, load the most recent data, get the last close (lets say its $25), then set the sim feed starting price to $25 for this particular instrument.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Questions related to switching from simulation to live strategies... | Elliott Wave | Strategy Development | 7 | 02-11-2013 03:27 PM |
| Running strategies | adrian | Suggestions And Feedback | 3 | 05-13-2008 12:33 PM |
| Double positions switching sides running live w/ profit targets | Pete S | Strategy Development | 13 | 04-02-2008 10:59 PM |
| chart not running live data | chuck | Miscellaneous Support | 1 | 01-21-2008 09:29 AM |
| Multi strategies same symbol question? | surfeur | Automated Trading | 3 | 06-15-2007 07:14 AM |