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!
See more
See less

Partner 728x90

Collapse

Last Close Indicator in SuperDOM

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment


      #3
      Originally posted by NinjaTrader_Kate View Post
      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.

      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:

      Last edited by Kleiton Matias; 08-17-2022, 10:17 AM.

      Comment


        #4
        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 Files
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Kate View Post
          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.


          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


            #6
            Originally posted by NinjaTrader_Kate View Post
            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.
            Good afternoon, on the day I install the LastCloseForSuperDOM indicator it works perfectly well, but the next day it no longer marks the last closing correctly, would there be any configuration to make it always correct??

            Comment


              #7
              Hello 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.
              Kate W.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Kate View Post
                Hello 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.
                Before I uninstalled and reinstalled and it worked for a day, now it doesn't appear at all. I'm uploading a short video, it's muted, but you can understand what's going on.

                Last edited by Kleiton Matias; 08-29-2022, 07:23 PM.

                Comment


                  #9
                  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]
                  
                  }
                  I've attached the updated version below.

                  Thanks in advance; I look forward to assisting you further.
                  Attached Files
                  Kate W.NinjaTrader Customer Service

                  Comment


                    #10
                    Originally posted by NinjaTrader_Kate View Post
                    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]
                    
                    }
                    I've attached the updated version below.

                    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


                      #11
                      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.

                      Click image for larger version

Name:	2022-08-30_08-29-22.png
Views:	103
Size:	152.0 KB
ID:	1213746

                      Please let us know if we may be of further assistance to you.
                      Kate W.NinjaTrader Customer Service

                      Comment


                        #12
                        Originally posted by NinjaTrader_Kate View Post
                        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.

                        Click image for larger version

Name:	2022-08-30_08-29-22.png
Views:	103
Size:	152.0 KB
ID:	1213746

                        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!

                        Click image for larger version

Name:	Sem Título-1.jpg
Views:	82
Size:	146.9 KB
ID:	1213828

                        Comment


                          #13
                          I just checked, and it still has to uninstall and reinstall the indicator for it to work.

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Balage0922, Today, 07:38 AM
                          0 responses
                          3 views
                          0 likes
                          Last Post Balage0922  
                          Started by JoMoon2024, Today, 06:56 AM
                          0 responses
                          6 views
                          0 likes
                          Last Post JoMoon2024  
                          Started by Haiasi, 04-25-2024, 06:53 PM
                          2 responses
                          19 views
                          0 likes
                          Last Post Massinisa  
                          Started by Creamers, Today, 05:32 AM
                          0 responses
                          6 views
                          0 likes
                          Last Post Creamers  
                          Started by Segwin, 05-07-2018, 02:15 PM
                          12 responses
                          1,786 views
                          0 likes
                          Last Post Leafcutter  
                          Working...
                          X