• 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

Problem with ray

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

    Problem with ray

    hello. Excuse my English . I'm writing an indicator in which if a condition is met draws a ray . But when the condition is repeated previous ray is cleared. Is it possible to keep all ray ?

    #2
    Hello julifro,

    Thank you for your post.

    This occurs when the same tag is used for the object. Try using a value that will change with the bars such as CurrentBar:
    Code:
    DrawRay("tag1"+CurrentBar, 10, 1000, 0, 1001, Color.LimeGreen);
    For information on CurrentBar please visit the following link: http://www.ninjatrader.com/support/h...currentbar.htm

    Please let me know if I may be of further assistance.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Thanks works great

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by saltminer, Today, 05:49 PM
      0 responses
      4 views
      0 likes
      Last Post saltminer  
      Started by brunoviveiros, Today, 05:32 PM
      0 responses
      4 views
      0 likes
      Last Post brunoviveiros  
      Started by shodson, Today, 05:00 PM
      0 responses
      2 views
      0 likes
      Last Post shodson
      by shodson
       
      Started by concept, Today, 03:22 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Started by baluga123, 04-03-2020, 08:19 AM
      6 responses
      72 views
      0 likes
      Last Post koganam
      by koganam
       
      Working...
      X