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 AaronKoRn, Today, 09:49 PM
|
0 responses
11 views
0 likes
|
Last Post
by AaronKoRn
Today, 09:49 PM
|
||
Started by carnitron, Today, 08:42 PM
|
0 responses
10 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
11 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,980 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
Comment