Thank you for your response.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi instrument
Collapse
X
-
well, I use this indicator in strategy script, where main series is Daily. Print() is in both indicator and strategy. Thats why there are rows from both in Output. Rows with "INDICATOR" word is from indicator script.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
-
Patrick, CloseWeekPer is indicator. I add it in strategy, where main instrument series is Daily.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
-
I didn't sent you strategy, I only sent indicator =)))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
-
Patrick, please, advise me what to do.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
-
Patrick, but I don't use Daily as input. As you see in indicator scriptOriginally 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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment