Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Couple questions

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

    Couple questions

    I have a request to write an indicator with a couple features that I don't know if they are possible with NT methods.

    1) Can you put a clickable object on a chart? They want a "button" object they can click and also drag around the chart, and have it change color and make a change to the chart format (see #2) when you click it.

    2) They want to be able to hide the currently drawing bar on the chart and only show the bars up TO the current bar. In other words, only display bars that are closed.

    Are these two things possible with standard NT methods? If not, are they possible with some C# methods outside NT, and would you recommend going that route or just saying 'no'?

    Thanks!
    Bryan

    #2
    1. yes. its standard C# programming. just put an appropriate control on the chartpanel.

    2. just change the color of the current/running bar to color transparent.

    Comment


      #3
      Bryan, for the creation of the buttons please see this thread here for some discussion and snippets on this non NinjaScript technique : http://www.ninjatrader.com/support/f...ad.php?t=37910

      Comment


        #4
        Originally posted by bukkan View Post
        1. yes. its standard C# programming. just put an appropriate control on the chartpanel.

        2. just change the color of the current/running bar to color transparent.
        Hey, that's good thinking about the transparent color, bukkan, thank you! I'll see if that meets the customer's needs. The only issue I can see with that is that the bar would still be on the chart and so would be included in any indicator or strategies running. I don't know if he wants it completely off the chart or not.

        I'll look at Bertrand's link for samples of clickable objects on the chart panel. Thanks, guys!

        Bryan

        Comment


          #5
          never tried it, but in the Bars class there is a method RemoveLastBar() you can fiddle with that. again as i said i never played with it, but the name looks interesting. maybe the NT guys can shed some hints

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          576 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X