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 rbeckmann05, Today, 06:48 PM
|
0 responses
4 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
||
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
52 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
8 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
Comment