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
Last Close Indicator in SuperDOM
Collapse
X
-
Last Close Indicator in SuperDOM
Hello my friends, does anyone know a way to put a dash below the Last Closing price in SuperDOM ?? I know there is an indicator for Daily High and Daily Low, but I didn't find anything for the Last Close.Last edited by Kleiton Matias; 08-17-2022, 07:56 AM. -
Hello Kleiton Matias,
Thank you for your post.
Do you mean the prior day close? You could use the Prior Day OHLC indicator for that in the SuperDOM - that will put a line above the prior day close, just not below it.
Please let us know if this does not resolve your inquiry.Kate W.NinjaTrader Customer Service
- Likes 1
-
Originally posted by NinjaTrader_Kate View PostHello Kleiton Matias,
Thank you for your post.
Do you mean the prior day close? You could use the Prior Day OHLC indicator for that in the SuperDOM - that will put a line above the prior day close, just not below it.
Please let us know if this does not resolve your inquiry.
First of all, let me thank you!!! It will certainly be this indicator that I need, but I am not getting the correct configuration so that the trace in the SuperDOM is at the same price as in the Market Analyzer... See how the settings are and how it appears to me:
2 PhotosLast edited by Kleiton Matias; 08-17-2022, 10:17 AM.
Comment
-
Hello Kleiton Matias,
Thank you for your reply.
Actually in this case the Prior Day OHLC indicaor won't work for you, as it runs off intraday data which is not settlement close adjusted, and the Last Close is settlement close adjusted. However, this is a super simple indicator that only takes about 3 lines of code to write, so I've created an indicator that gets the prior day close from Daily bars instead of minute bars, which come settlement adjusted (for most data providers). This should match what you see in the last close column there.
Please let us know if we may be of further assistance to you.Attached FilesKate W.NinjaTrader Customer Service
- Likes 1
Comment
-
Originally posted by NinjaTrader_Kate View PostHello Kleiton Matias,
Thank you for your reply.
Actually in this case the Prior Day OHLC indicaor won't work for you, as it runs off intraday data which is not settlement close adjusted, and the Last Close is settlement close adjusted. However, this is a super simple indicator that only takes about 3 lines of code to write, so I've created an indicator that gets the prior day close from Daily bars instead of minute bars, which come settlement adjusted (for most data providers). This should match what you see in the last close column there.
Please let us know if we may be of further assistance to you.
Awesome, once again let me thank you!!! That's exactly what I was looking for, I've installed it and it's working perfectly!!!
Comment
-
Originally posted by NinjaTrader_Kate View PostHello Kleiton Matias,
Thank you for your reply.
Actually in this case the Prior Day OHLC indicaor won't work for you, as it runs off intraday data which is not settlement close adjusted, and the Last Close is settlement close adjusted. However, this is a super simple indicator that only takes about 3 lines of code to write, so I've created an indicator that gets the prior day close from Daily bars instead of minute bars, which come settlement adjusted (for most data providers). This should match what you see in the last close column there.
Please let us know if we may be of further assistance to you.
Comment
-
Originally posted by NinjaTrader_Kate View PostHello Kleiton Matias,
Thank you for your reply.
Can you provide a screenshot of what you're seeing that's not working?
Thanks in advance; I look forward to assisting you further.
Last edited by Kleiton Matias; 08-29-2022, 07:23 PM.
Comment
-
Hello Kleiton Matias,
Thank you for your reply.
I've made a minor edit to the indicator that seems to make it work:
Code:protected override void OnBarUpdate() { if (CurrentBars[1]< 1) return; [B]if(BarsInProgress == 0) {[/B] Value[0] = Closes[1][0]; [B]}[/B] }
Thanks in advance; I look forward to assisting you further.Attached FilesKate W.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Kate View PostHello Kleiton Matias,
Thank you for your reply.
I've made a minor edit to the indicator that seems to make it work:
Code:protected override void OnBarUpdate() { if (CurrentBars[1]< 1) return; [B]if(BarsInProgress == 0) {[/B] Value[0] = Closes[1][0]; [B]}[/B] }
Thanks in advance; I look forward to assisting you further.
Once again I come to disturb you... But now the indicator doesn't even appear in SuperDOM!
Comment
-
Hello Kleiton Matias,
Thank you for your reply.
Here's my set up for the above version of the indicator - you can see the plot on the SuperDOM. Make sure you set it for more than 2 days to load - 10 seems to work nicely.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
- Likes 1
Comment
-
Originally posted by NinjaTrader_Kate View PostHello Kleiton Matias,
Thank you for your reply.
Here's my set up for the above version of the indicator - you can see the plot on the SuperDOM. Make sure you set it for more than 2 days to load - 10 seems to work nicely.
Please let us know if we may be of further assistance to you.
This time it worked well for the assets MES 09-22, CL 10-22, and GC 12-22... It also worked fine for NQ 09-22, but in MNQ 09-22 the indicator marked a tick above the correct one .
See what it looks like in the photo below!
Comment
-
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
5 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
61 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
4 responses
3,289 views
1 like
|
Last Post
by jgualdronc
Today, 10:02 AM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
24 views
0 likes
|
Last Post Today, 09:41 AM |
Comment