Thank you for your response.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Multi instrument
Collapse
X
-
Originally posted by NinjaTrader_PatrickH View PostHello alexstox,
Thank you for your response.
Correct, but how did you get the daily prints? The code you provided me only provides the weekly bars.
Comment
-
Originally posted by NinjaTrader_PatrickH View PostHello alexstox,
Thank you for your response.
Are you applying the CloseWeekPer to a Daily chart as well? The strategy you provided does not print nor does it add the CloseWeekPer with a Daily interval.
Comment
-
Originally posted by NinjaTrader_PatrickH View PostHello alexstox,
Thank you for your response.
The strategy named 'ATR' that you provided does not add the ClosePerWeek to it's code nor does it add anything that would print the Daily close information as you have designed.
Comment
-
Hello alexstox,
Thank you for your patience.
You have two input series, a Week and a Day series. The Day bars are not going to have the same value from the ClosePerWeek() indicator as the Week bars on the close of the of the week bar, as the Day bar is only looking at that day where the Week bar encompasses the entire week of data.
For example, compare the Open, High, Low, and Close of the Day bar on the closing day of the Week bar and you will see the Open, High, Low, Close is not the same as the Week bar.
Comment
-
Originally posted by NinjaTrader_PatrickH View PostHello alexstox,
Thank you for your patience.
You have two input series, a Week and a Day series. The Day bars are not going to have the same value from the ClosePerWeek() indicator as the Week bars on the close of the of the week bar, as the Day bar is only looking at that day where the Week bar encompasses the entire week of data.
For example, compare the Open, High, Low, and Close of the Day bar on the closing day of the Week bar and you will see the Open, High, Low, Close is not the same as the Week bar.
Maybe I should add
if (BarsInProgress==2) //start BarsInProgress for weekly instrument only
{and here is everything with CloseWeekIndictor...
}Last edited by alexstox; 07-22-2014, 11:53 PM.
Comment
-
Originally posted by NinjaTrader_PatrickH View PostHello alexstox,
Thank you for your response.
Well, your indicator works great on it's own using the week bar as it's input. So if this is the only value you need, then don't use the Daily bar as an input for the indicator.
Add(MyInstrum1, PeriodType.Week, 1);
Than in strategy I only use string symbol as input for indicator. Main instrument data (not for indicator) still in Daily bars. Please comment.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Graci117, Today, 09:02 PM
|
1 response
4 views
0 likes
|
Last Post Today, 09:09 PM | ||
Started by ETFVoyageur, Today, 07:55 PM
|
0 responses
7 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:55 PM
|
||
Started by janio973, Today, 07:24 PM
|
1 response
7 views
0 likes
|
Last Post Today, 07:35 PM | ||
Started by aligator, 01-06-2022, 12:14 PM
|
4 responses
246 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
14 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
Comment