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

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 DJ888, 04-16-2024, 06:09 PM
    4 responses
    12 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    7 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by nandhumca, Today, 03:41 PM
    0 responses
    6 views
    0 likes
    Last Post nandhumca  
    Started by The_Sec, Today, 03:37 PM
    0 responses
    3 views
    0 likes
    Last Post The_Sec
    by The_Sec
     
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X