• 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

Ray by special plots

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

    Ray by special plots

    Hello,

    I need to add something to plotted rays from my indicators to have additional information to know easily where this drawing comes from.

    Therefore I want to ask please

    a.) how one can plot a ray with triangles or diamonds please
    or the other idea

    b.) how can one add letters "A" or "B".... below or above the line-ray at each dash or bar

    I read somewhere in the forum that plotting takes more ressources from the pc. Is the idea with letters EACH dash more intensive for the ressources of pc than a letter only the first bar?

    Thank you
    Tony
    Last edited by tonynt; 09-20-2018, 10:20 AM. Reason: typing error and clearifiying

    #2
    Hello tonynt,

    Thank you for the post.

    A). You would need to draw the other objects that you want to draw in addition to your Ray. The Ray is not a Plot so it does not have a configurable line. You can make it dashed, dotted or solid but not Triangles or Diamonds, these would have to be separately drawn.

    B). This is something you could also do with the text drawing object in addition to your Ray. For custom plotting, you can also use the Plot override. For an example of the Plot override, you could see the CustomPlotSample that comes with NinjaTrader.

    As far as performance goes, the drawing objects are very minimal but you can see performance impacts when doing things like drawing text on every bar. In that case, rendering from the Plot override would generally be the most efficient way to draw on the chart. You can see the CustomPlotSample that comes with NT for a further example of this.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Tony,
      I recently experimented with labelling lines so I took the liberty to label a ray of an HMA as in the attached cs file.
      Note: StringAlignment.Far is useful when you want the label to the left of the start of the line; Near when you want it to the right end of the line.

      You can of course also replace

      BarsArray[0].Period.ToString()
      with a singular letter or letters e.g. "Tony Up" or "Tony Down".

      Perhaps this example helps.

      sandman
      Attached Files
      Last edited by sandman; 09-21-2018, 10:21 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by GTBrooks, Today, 02:44 PM
      0 responses
      4 views
      0 likes
      Last Post GTBrooks  
      Started by GLFX005, Today, 12:22 PM
      4 responses
      41 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by AspenHiker, Today, 08:37 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by MartinT, Yesterday, 01:12 PM
      3 responses
      16 views
      0 likes
      Last Post MartinT
      by MartinT
       
      Started by caveat_lector, Today, 11:58 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Heath  
      Working...
      X