• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi line tool

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

    Multi line tool

    Hi, I am looking for some advice please. I have coded some basic indicators etc.
    What I am wanting to do now is, I have a "Horizontal Ray", drawing tool which will draw a horizontal ray from where you mouse click. I want to know how difficult it would be to code a tool that calls this "Horizontal Ray" tool and use it to create multiple rays from one mouse click on the chart. For example I would have these rays set up to all appear on the same Y axis, but at different offsets from the mouse click. The mouse click would snap to a bar high or low. If a high, the lines would be applied for a long entry, or if a low, a short entry. The rays would represent the entry, stop, and targets. I would want to have the colours to be user defined. If not overly complicated I would appreciate if you could outline how I would go about this? What ninja script references could you point me to? Any similar tools you know of already coded that I could look at for some ideas?
    Thanks,
    Ken.

    #2
    Hello Ken,

    While the difficulty level would be "Advanced", I think it would be possible to achieve.

    I have an example that converts a mouse click to a price and bar index -> time.
    http://ninjatrader.com/support/forum...045#post513045

    From there, drawing a drawing object shouldn't be too difficult as you have the index of the bar which you can use .GetHigh() or .GetValue() to get a value at.

    Below are publicly available links to the help guide.
    https://ninjatrader.com/support/help...us/gethigh.htm
    https://ninjatrader.com/support/help...getvalueat.htm
    Last edited by NinjaTrader_ChelseaB; 11-19-2017, 08:13 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by swcooke, Today, 09:20 AM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by chartish, Today, 08:21 AM
    2 responses
    7 views
    0 likes
    Last Post chartish  
    Started by xbionicx, Today, 01:12 AM
    2 responses
    14 views
    0 likes
    Last Post xbionicx  
    Started by NinjaCustomer, Today, 07:52 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaCustomer  
    Started by tradr, Today, 07:45 AM
    2 responses
    9 views
    0 likes
    Last Post tradr
    by tradr
     
    Working...
    X