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 Time Frame Strat
Collapse
X
-
Multi Time Frame Strat
Working with volume chart as my primary and 4hr(240min) as secondary, I can not seem to access the 4hr(240min) CURRENT open using Opens[1][0] Am I missing something? Its always accessing the bar thats completed ie prior to CURRENT bar thats being built/processed. I have CalculateOnBarClose to false as well.
Tags: None
-
Hello midoriek4,
Thanks for your note.
Which instrument (including expiry if a future) are you using?
I have tested this using the CL 06-13 instrument using the following print statement.
Print(BarsInProgress + " - " + Opens[0][0] + " | " + Opens[1][0]);
I am finding that it is showing the open of the current 240 minute bar as 90.97 and the open of the volume based bars (100 volume) as 90.61.
I look forward to your reply.Chelsea B.NinjaTrader Customer Service
-
Hello midoriek4,
Thank you for that information.
I have retested this using the ES ##-##.
I am receiving the current open of the volume bar as 1583.25 and the open of the 240 minute bar as 1594.
The session template will only have an impact here if the session templates for each data series does not match.
Using Add(PeriodType.Minute, 240); will cause the secondary data series to use the session template of the primary data series. So I do not believe this would be an issue.
Moving forward, I would need to see your code to understand what the issue may be.
If you would like me to take a look at your code, please paste it in your reply. If you would like me to view this privately let me know and I will make arrangements for that.
Let me know how you would like to proceed.Chelsea B.NinjaTrader Customer Service
Comment
-
Hello midoriek4,
Without seeing the code you have written I can only tell you that I have opened a 240 minute chart. I am printing the value of the open of the second data series in the indicator, and it is matching the open of the current bar of the chart.
As this is working correctly, I would imagine that there is something in your code that may be suspect.
Please let me know how you would like to proceed.Chelsea B.NinjaTrader Customer Service
Comment
-
Hello midoriek4,
Thank you for sending the code.
I have copied your code into an indicator and tested.
I have two panels on my chart while testing this. In the first panel I have the ES ##-## 100 Volume. In the second panel I have ES ##-## 240 Minute. I also have a data box open so that I may look at the open of the bars.
The print from your code is showing as "4hr Open 5/1/2013 3:15:00 PM1581.25". In the data box I am showing the forming bar to have an open of 1581.25.
How are you doing your testing?
May I have a screenshot of the chart and the output window together so that I may compare the values?
To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
For detailed instructions please visit the following link
http://take-a-screenshot.org/
I look forward to your reply.Chelsea B.NinjaTrader Customer Service
Comment
-
Hello midoriek4,
Thanks for the screenshot.
I would like to do a remote support session with you to investigate what is happening here.
Please send an email to suppor[at]ninjatrader[dot]com. In the body of the email please write Attn: Chelsea # 837306.
I look forward to receiving your email.Chelsea B.NinjaTrader Customer Service
Comment
-
Also wanted to make you aware that I have issues with Daily bars, meaning if I use a session template say CME Index ETH, the bars do not reflect this template as well, I have had to use 1440min bars which is equal to a daily bar to respect the session template.
Comment
-
Hi midoriek4,
Thank your for that information.
I have re-tested using the default 24/7 template, however, I am still using 100 vol on the primary and 240 minutes on the secondary.
I am still getting the proper open of the 240 minute bars.
I will address the issues of your session template during our session. Have you had a chance to send in an email to support with a reference to # 837306?Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, Today, 09:30 AM
|
2 responses
11 views
0 likes
|
Last Post
by bltdavid
Today, 11:24 AM
|
||
Started by f.saeidi, Today, 11:02 AM
|
1 response
3 views
0 likes
|
Last Post Today, 11:08 AM | ||
Started by geotrades1, Today, 10:02 AM
|
4 responses
12 views
0 likes
|
Last Post
by geotrades1
Today, 11:08 AM
|
||
Started by rajendrasubedi2023, Today, 09:50 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 10:57 AM | ||
Started by lorem, Today, 09:18 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 10:55 AM |
Comment