Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Problems running the same strategy on multiple charts
Collapse
X
-
Problems running the same strategy on multiple charts
I'm trying to run the same strategy across a couple different instruments (US equities) on my live account. Both strategies were green when I enabled them before the market open. When the conditions were met, I got an entry for one chart around the open of the market, but for some reason I did not get an entry on the other chart when the conditions were met. I disabled the strategy on this chart and re-enabled it, but when I did so, the strategy was now yellow and I see a historical fill and profit added to my chart. I definitely enabled the strategy before the entry occurred.Tags: None
-
Hello IFT20,
Then it appears that your strategy is being processed differently on Historical Data than it is in real-time data.
I would suggest adding some Print statements to check your values and conditions to see if they are what you expect running in real-time. Here is a good thread with an example of this.
You may also add a drawing object yourself when you conditions are hit so that can easily see visibly when your conditions are true.
Lastly, using a Strategy it can be helpful to use "TraceOrders = true;" to input value order information. This will show if an order is cancelled or ignored and tell you what reason it was done.
Let us know what you find out after the changes and try your strategy again.JCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, 04-17-2024, 06:40 PM
|
6 responses
49 views
0 likes
|
Last Post
by algospoke
Today, 06:18 PM
|
||
Started by arvidvanstaey, Today, 02:19 PM
|
4 responses
11 views
0 likes
|
Last Post Today, 04:08 PM | ||
Started by samish18, 04-17-2024, 08:57 AM
|
16 responses
61 views
0 likes
|
Last Post
by samish18
Today, 03:30 PM
|
||
Started by jordanq2, Today, 03:10 PM
|
2 responses
11 views
0 likes
|
Last Post
by jordanq2
Today, 03:23 PM
|
||
Started by traderqz, Today, 12:06 AM
|
10 responses
21 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
Comment