• 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

Custom horizontal lines on mouse move?

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

    Custom horizontal lines on mouse move?

    I'm looking to draw two horizontal lines on the chart, one on each side of the moustpoints / crosshair on the screen. Basically showing a predetermined risk level as I move the cursor. For example, 10 ticks on each side of the cursor. I have successfully attached to the mousemove event and captured the pointer coordinates but where would I render the two horizontal lines as onRender is called a maximum of 4 times per second (if I recall prior conversations in here).

    Is there a better way to do this through Ninja? Thanks.

    #2
    Hello fxRichard,

    OnRender() is where I would suggest rendering the lines.

    Below is a link to an example of this.
    https://ninjatrader.com/support/foru...868#post820868

    This thread will remain open for any community members that may know of a different way that is not in the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Martin89, Today, 02:09 AM
    0 responses
    6 views
    0 likes
    Last Post Martin89  
    Started by Trade95, Yesterday, 05:38 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Karelgp7, Yesterday, 03:16 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by orenytz, Yesterday, 01:18 PM
    1 response
    23 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by des.kkeng, Yesterday, 01:10 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X