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

draw objects ruler

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

    draw objects ruler

    I wanted to use a draw ruler function to see if the pips or points are in my favor. I got the code to draw but what drawing object do I use? this is what I got. and this is what I want.
    \

    Draw.Ruler(this,
    "Ruler" + nRulerIndex,
    false,lastRulerTime,
    lastRulerPrice,currentRulerTime,
    currentRulerPrice,lastRulerTime,
    lastRulerPrice + 2);
    Attached Files

    #2
    Hello ballboy11,

    Is the issue that the drawn ruler object is not appearing on the chart?

    (No screenshot of the chart was provided)

    On what bar and at what prices is the object being drawn?

    (As in what are the values of the variables being used here?)

    May we see the chart in the time and price where the objects are being drawn?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      the screen shots are the attached jpgs. The first long bar is being drawn but I want to draw the ninjatrader ruler. Do you make a template of what to be displayed and if so where do I place the template? It is working but wrong information

      Comment


        #4
        Hello ballboy11,

        I am only able to see two images attached with your first post.

        The first image shows the label of an indicator added to the chart. This does not show the chart where a drawing object should be appearing but is not.

        The second image appears to show the information tag of a ruler. This does not show the chart or where this is suppose to be drawn.

        Is there a 3rd image attached that I am not able to see that shows the chart where the drawing object should be appearing?

        Have I misunderstood your inquiry?

        What is the issue you are having?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          The first image shows the label of an indicator added to the chart. This does not show the chart where a drawing object should be appearing but is not.

          The first image is what is ACTUALLY BEING DISPLAYED to the chart.


          The second image appears to show the information tag of a ruler. This does not show the chart or where this is suppose to be drawn.

          The information tag IS NOT BEING SHOWN this is what I want to show.

          this is the code i wrote to make the ruler to be displayed

          Draw.Ruler(this,
          "Ruler" + nRulerIndex,
          false,lastRulerTime,
          lastRulerPrice,currentRulerTime,
          currentRulerPrice,lastRulerTime,
          lastRulerPrice + 2);

          Comment


            #6
            Hello ballboy11,

            The first image is of the indicator label. This lets us know an indicator was applied. This provides no further information.

            What is the issue you are experiencing?

            Is the drawing object appearing on the chart with the wrong information?

            Is the drawing object not appearing on the chart at the expected time and price?

            What is the expected time and price?

            What does your chart look like at that time and price?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              The first image is of the indicator label. This lets us know an indicator was applied. This provides no further information.

              What is the issue you are experiencing?

              Not showing ruler values in indicator. Is displaying label values

              Is the drawing object appearing on the chart with the wrong information?
              yes it is not showing ruler values

              Is the drawing object not appearing on the chart at the expected time and price?
              no it is appearing on the chart at the expected time and price

              What is the expected time and price?

              What does your chart look like at that time and price?



              you know when you manually use a ruler and it gives you the number of bars and the point difference. I just want the ruler to give the SAME information as when manually using a ruler.



              AS you can see from the picture below it is a ruler but not giving the ruler information but the label information
              Attached Files
              Last edited by ballboy11; 07-23-2017, 06:09 PM.

              Comment


                #8
                am i using the wrong code to display ruler

                Am I using the wrong code to display ruler or do you change the parameters for bars ticks etc.

                Draw.Ruler(this,
                "Ruler" + nRulerIndex,
                false,lastRulerTime,
                lastRulerPrice,currentRulerTime,
                currentRulerPrice,lastRulerTime,
                lastRulerPrice + 2);


                the 2 will eventually be based ahead or behind by ticksize

                Comment


                  #9
                  Hello ballboy11,

                  Thanks for your reply and your patience.

                  I have not been able to reproduce this behavior on my end when calling Draw.Ruler() to create a ruler object to display on my chart - please test the script attached to this response and let me know if you see the same behavior. If this test script works, please use it as a template to draw any ruler objects and let me know if the issue persists.

                  Please let me know the results of your tests.
                  Attached Files
                  Alan S.NinjaTrader Customer Service

                  Comment


                    #10
                    still have the same issue i used your code and got the same thing.

                    I turned off the label so it wouldn't show on the screen. I put it back to a standard chart and it does exactly the same thing. i might have to make a custom textbox and draw it on the screen. I have been working on this issue and been looking online for a solution but can't find any
                    Attached Files

                    Comment


                      #11
                      how do I use it as a template. Maybe this is all I have to do? Where do I find the template name? It does work on positioning but this is not the information I am looking for. I think it is just the template. Where do I find the ninjatrader template for THEIR ruler when manually used.
                      Last edited by ballboy11; 07-24-2017, 11:50 AM.

                      Comment


                        #12
                        I even tried to save a manual ruler template and it still doesn't work the picture the above ruler is when I manually draw it on the chart and the ruler below is the automated one
                        Attached Files

                        Comment


                          #13
                          Hello ballboy11,

                          Thanks for your reply.

                          When I mentioned using my script as a template, I mean to use it as a guide for writing future scripts in which you want to call Draw.Ruler().

                          Please attempt to upgrade your platform to the latest version and let me know if the issue persists.

                          To upgrade NinjaTrader, please follow the steps below.
                          • First get your license key from NinjaTrader under Help> License Key then exit NinjaTrader
                          • Click on the link: http://ninjatrader.com/PlatformDirect
                          • Enter your license key and press Submit
                          • Select 'NinjaTrader 8' if you are on NinjaTrader 8.
                          • Select 'Download'
                          • Critical: Before running the installer, ensure NinjaTrader is closed.

                          I look forward to your reply.
                          Alan S.NinjaTrader Customer Service

                          Comment


                            #14
                            just got frustraded. I just made my own custom ruler

                            Comment


                              #15
                              Hello ballboy11,

                              Thanks for your reply.

                              I would like to set up a remote support session to troubleshoot this behavior further with you, please write in to us at platformsupport[at]ninjatrader[dot]com and put ATTN Alan S in the subject line and provide a time including the timezone when you would be available for a remote session in the body of the email as well as the best way to contact you whether it be by phone or skype. Please note that we are unable to call international mobile numbers

                              I look forward to your reply.
                              Alan S.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by CortexZenUSA, Today, 12:53 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post CortexZenUSA  
                              Started by CortexZenUSA, Today, 12:46 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post CortexZenUSA  
                              Started by usazencortex, Today, 12:43 AM
                              0 responses
                              5 views
                              0 likes
                              Last Post usazencortex  
                              Started by sidlercom80, 10-28-2023, 08:49 AM
                              168 responses
                              2,266 views
                              0 likes
                              Last Post sidlercom80  
                              Started by Barry Milan, Yesterday, 10:35 PM
                              3 responses
                              13 views
                              0 likes
                              Last Post NinjaTrader_Manfred  
                              Working...
                              X