• 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 ct, Today, 05:31 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by pstrusi, Today, 02:21 AM
      0 responses
      6 views
      0 likes
      Last Post pstrusi
      by pstrusi
       
      Started by indy73, Yesterday, 10:52 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_EricB  
      Started by priceisking, 05-13-2019, 08:30 AM
      6 responses
      40 views
      0 likes
      Last Post Harry
      by Harry
       
      Started by pjsmith, Today, 12:43 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Working...
      X