Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Rays instead of Lines

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

    Drawing Rays instead of Lines

    Hello,

    Can the indicator draw rays instead of lines to show at when it started?
    Currently I'm using horizontal lines drawn by indicators, so it doesn't show when it started.

    If so, how can I do it?


    Cheers,

    wahn
    Attached Files

    #2
    Hello Wahn,

    Thanks for your post.

    What indicator is in use in your screenshot?

    Was this an indicator of your own creation, created by a third party source, or an indicator native to the platform?

    Often times these changes would need to take place in the code of the indicator itself, but depending on the indicator, this may be an adjustable parameter within the indicator's options.

    Comment


      #3
      Hi,

      This indicator was created by third party vendor to draw the line at the price level with certain significant volume. My vendor has mentioned that NT7 can't draw HORIZONTAL rays by indicators. I've been using it with horizontal line drawing but horizontally drawn rays by indicators are getting more more needed.

      So please confirm whether the indicator can draw horizontal rays instead of horizontal lines or not.

      Cheers,

      wahn
      Last edited by wahn2067; 05-06-2016, 12:10 PM.

      Comment


        #4
        Hello,

        Thank you for the question.

        NinjaTrader has the capability to draw a Ray horizontall from an indicator, it would depend on the logic the vendor had created if that would work or not though.

        In general, the basic syntax needed would be as follows:


        Code:
        if(CurrentBar < 1) return;
        DrawRay("MyRay", 1, Close[0], 0, Close[0], Color.Blue);
        You would need to confirm with the vendor if the logic you are asking for would allow for a ray to be used, if so they would need to reprogram the indicator to use a Ray.

        Please let me know if I may be of further assistance.

        Comment


          #5
          The issue with NT7 is probably lines disappearing when anchors move far from the chart window. Horizontal lines would not be affected the same.
          eDanny
          NinjaTrader Ecosystem Vendor - Integrity Traders

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          69 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          42 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          24 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          27 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          54 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X