Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsPeriod namespace error

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

    BarsPeriod namespace error

    Any idea what is wrong with the BarsPeriod? why cant it find it in the namespace?

    Appreciate the hep

    #2
    any help is appreciated on this issue

    Comment


      #3
      Hello ark321,

      Thank you for your post.

      Likely you are missing some using statements in the script.

      I recommend creating a new script and copying over your code from OnStateChange() and OnBarUpdate() into the new script.

      From the NinjaScript Editor > click on the '+' at the bottom > New Indicator to create a new indicator script. Creating a new script from the NinjaScript Wizard will generate all the necessary code in order to access BarsPeriod.

      Please let us know if you have any further questions.

      Comment


        #4
        thanks, that helped

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        55 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        73 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        38 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        99 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        60 views
        0 likes
        Last Post PaulMohn  
        Working...
        X