• 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

Get the price from the drawn ray

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

    Get the price from the drawn ray

    Good day
    I programmed a ray drawing! The question is how can I get these prices relative to the bar by the rays?
    preferably would like to see an example implementation
    Thank !

    #2
    Hello oscsoft,

    Thanks for your post.

    To determine the price level of the ray, on each bar after the ray has been drawn, you would need to project where the ray will be. You can do this by using the slope of the ray to calculate the run rate. I've created an example indicator to show a ray being drawn and then calculating its price level and then drawing a dot at that price level to visually confirm. You will need to apply the indicator to a live chart. I've also added a screenshot of what to expect.


    Click image for larger version

Name:	Yprojectedline.PNG
Views:	2
Size:	37.5 KB
ID:	1053525


    YAxisProjectionOfLine.zip
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      thank you very much
      that's what I need

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Newtrader101, Today, 06:31 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_EricB  
      Started by Tyler7498, Today, 07:34 PM
      0 responses
      4 views
      0 likes
      Last Post Tyler7498  
      Started by Woomera, Today, 07:24 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Newtrader101, Today, 12:31 PM
      2 responses
      13 views
      0 likes
      Last Post Newtrader101  
      Started by kweiss, Today, 06:42 PM
      0 responses
      2 views
      0 likes
      Last Post kweiss
      by kweiss
       
      Working...
      X