This is using Market Replay not actual Real Time data. Historic data is perfect.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator vs. strategy added indicator
Collapse
X
-
Indicator vs. strategy added indicator
I have an indicator running in a shorter time frame than my chart. I have also added the same indicator in a strategy passing the indicator identical params. When plotting both on a chart, they don't always agree. I have tried CalculateOnBarClose at true and false. Any suggestions?
This is using Market Replay not actual Real Time data. Historic data is perfect.
Last edited by snaphook; 01-08-2011, 11:40 AM.Tags: None
-
Hello,
No real idea's of the top of my head would need to take a look at your code. Theres some difference in the code/ settings that would account for the difference. We just need to find what it is.
If this is a multi series indicator or strategy please make sure that it is the correct BarsInProgress.
If your still cant find it please sent both code strategies to support at ninjatrader dot com and reference this forum post and put ATTN: Brett in the subject line and reference this forum post.
I look forward to assisting you further.
-
I've been running the strategy this morning and with CalculateOnBarClose = true; and BarsInProgress == 0 in OnBarUpdate, I am getting odd intrabar executions.
EDIT: Oops, I meant to type BarsInProgress != 0; I corrected it so that should take care of the intrabar executions.Last edited by snaphook; 01-10-2011, 08:05 AM.
Comment
-
No, I just got another intrabar execution with CalculateOnBarClose = true; and the strategy added indicator is not the same as the indicator added indicator. In the last email with the .cs file simply change the BarsInProgress == 0 to BarsInProgress != 0 in the OnBarUpdate() return; statement.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,602 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
12 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment