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

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

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

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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by wzgy0920, 04-20-2024, 06:09 PM
            2 responses
            26 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 02-22-2024, 01:11 AM
            5 responses
            32 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, Yesterday, 09:53 PM
            2 responses
            49 views
            0 likes
            Last Post wzgy0920  
            Started by Kensonprib, 04-28-2021, 10:11 AM
            5 responses
            192 views
            0 likes
            Last Post Hasadafa  
            Started by GussJ, 03-04-2020, 03:11 PM
            11 responses
            3,234 views
            0 likes
            Last Post xiinteractive  
            Working...
            X