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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    51 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X