Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bars ago code

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

    bars ago code

    Hi,

    I'm trying to draw a ray between occurrences of similar candlesticks. How do I define the value for how many bars ago it occurred?

    #2
    stockgoblin, you can define this by setting the anchoir points parameters in the DrawRay overload - http://www.ninjatrader.com/support/h...t7/drawray.htm

    Comment


      #3
      yes, I know the drawray syntax, but how do I set up an occurrence tracker to establish when the last specific candlestick occurred?

      ex) draw a ray using the current high close bar and the previous high close bar.

      Comment


        #4
        You could keep simply track of the barnumber (CurrentBar) on which the condition evaluates in your script or use a method like LRO / MRO for this task : http://www.ninjatrader.com/support/h...urence_mro.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        125 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        84 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        104 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        83 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X