Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buttons on chart, reading price levels from lines

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

    Buttons on chart, reading price levels from lines

    Hi,

    I've written a bunch of indicators, but no strategies yet. I'll be using NT8. I'm sure I can figure most of it out as it's faily simple, but I have a couple desires I'm not sure is easily possible

    Firstly, I want to have 2 buttons on the chart, LONG, SHORT. One must be selected for the system to be active, the rest of the time the system does not take trades. I want to do this directly off the chart. Possible?

    Secondly, I'd like to have the indicator draw 2 lines on the chart, one above price, once below. THese lines can be moved by the user, i.e. they are not fixed. The system takes the trade also when above or below these lines only, so it'd need to read the 'price' of the line. I know I can put a couple lines up there with specific tags, but how to get the Y (price) of a specific tag if the user moves the line??

    Many thanks for any help/suggestions.

    #2
    Hello pjsmith,

    Yes, you can place buttons on the chart.
    Below is a link to an example of this.


    Also, below is a link to the LineAlert indicator that demonstrates how to find the y value of a line.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    657 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    373 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X