Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Addplot

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

    Addplot

    Hello,

    I´ve imported the indicator from Ninjatrader Paul at https://ninjatraderecosystem.com/use...ll-williams-2/

    and when I want to change the AddPlot from Block eg to AddPlot(new Stroke(Brushes.Green, 3), PlotStyle.TriangleUp, "Upper");

    it still plots the Block and not the TriangleUp. And when changing the size of addplot also no change...

    What might be the reason please?

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thank you for your reply.

    Have you compiled after making the changes, and then removed and re-added the indicator to the chart? If you just refresh NinjaScript on the chart you wouldn't see those changes.

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      Hello,

      thank you for your reply. With remove and re-add it now it works, untill now I always clicked F5 in the chart after doing changes.

      But it seems I can not make the triangle with bigger size. Is there any plot possible to have it looking like the fractals are plotted usually (like an arc or maybe triangle...)? I´d like to have it more similar how it is looking on chart in a traderoom.

      Thank you!
      Tony
      Last edited by tonynt; 06-30-2022, 12:02 AM. Reason: translation error

      Comment


        #4
        Hello tonynt,

        Thank you for your reply.

        I'm seeing the triangle size increase as the Stroke width is increased. You'd have to make sure you compile and re-add the indicator again after changing this value to see the change.

        I'm not sure what you mean by "like the fractals are plotted usually", can you provide a screenshot of what you mean?

        Thanks in advance; I look forward to assisting further.

        Comment


          #5
          Hello,

          thank you for your reply. It works, I understand now that the change in the code is not enough, one has to check in parameters as well, it is not automatically updated.

          When is it ok to click F5 and when it has the indicator be removed and re-added? Usually after I do a modification in the code I click F5 and it plots ok.

          For your information I send a screenshot how fractals are plotted in 3 other platforms (plotting looks all 3 almost very same so one knows immediately that its fractals (triangle, block...can mean various....)


          Thank you!
          Tony
          Attached Files
          Last edited by tonynt; 07-01-2022, 11:13 AM. Reason: add screenshot

          Comment


            #6
            Hello tonynt,

            Thank you for your reply.

            A good rule of thumb is any time you make a change to a script anywhere other than OnBarUpdate, it's best to remove and re-add the script to the chart to ensure all changes are seen. If it's in OnBarUpdate, you can just refresh NinjaScript.

            Please let us know if we may be of further assistance to you.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X