Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The problem with the drawing of the indicator

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

    The problem with the drawing of the indicator

    Good day, please help solve the problem. I wrote an indicator that displays the histogram when certain conditions are met. For drawing, I substituted values "i" in the formula with time variables, which were obtained using a loop

    for (var i = 0; i < N; i++)

    the result was this picture


    but I need the indicator to be drawn in the future, where there is no price, like this



    Could you give me advice on how to make the indicator draw in the area where the price has not yet formed

    Thanks in advance

    #2
    Hello Kovalev,

    Thanks for the post.

    You will need to use the displacement property for this:



    Please let me know if I can assist further.

    Comment


      #3
      Hello, NinjaTrader_ChrisL, did I understand correctly that this function looks the same in ninjatrader 7?

      Comment


        #4
        Hello Kovalev,

        Thanks for the reply. My apologies, I did not see that we are in the NinjaTrader 7 forum section!

        This thread describes how you can plot in the future for NinjaTrader 7:



        You can either pass negative values to the Values[][] index or use the displacement property.

        https://ninjatrader.com/support/help...splacement.htm - Displacement

        Please let me know if I can assist further.

        Comment


          #5
          NinjaTrader_ChrisL, thank you for your help, it has become much better, but I would like to make the indicator draw a picture completely, when a signal appears, now it draws parts when each new bar appears.


          But I thought something like this


          help please

          Comment


            #6
            Hello Kovalev,

            Thanks for the reply.

            It looks like a displacement is not applied. Positive displacement values will plot into the future. Could you provide some code snippets for me to review?

            I look forward to your reply.

            Comment


              #7
              NinjaTrader_ChrisL, I'm sorry, i rebooted the terminal and it worked. NinjaTrader_ChrisL, thank you very much for your help!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              599 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              344 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              558 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              557 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X