Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error with FirstTickOfBar in an indicator

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

    Error with FirstTickOfBar in an indicator

    Hi

    I have put FirstTickOfBar in the OnBarUpdate event of my indicator. I get the following error:

    "The name 'FirstTickOfBar' does not exist in the current context."

    Is this available in strategies only and not indicators? If so, what will give me a similar result? I tried using Bars.PercentComplete, but it didn't work out.

    Thank you. SuzyG



    #2
    imported post

    Yes only on strategies. You would have to check when the CurrentBar value changes, that will be the first tick of bar.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      I found an example of youranswer here:

      http://ninjatrader.mywowbb.com/view_...ght=CurrentBar

      Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by op1031, Today, 05:16 PM
      0 responses
      1 view
      0 likes
      Last Post op1031
      by op1031
       
      Started by fscabrera03, Today, 01:18 PM
      1 response
      11 views
      0 likes
      Last Post fscabrera03  
      Started by BottomShark77, Today, 12:20 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by bowling, Today, 06:16 AM
      3 responses
      29 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by systemtrader4, Today, 01:54 AM
      2 responses
      88 views
      0 likes
      Last Post systemtrader4  
      Working...
      X