Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Using Indicators in custom bar code

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

    Using Indicators in custom bar code

    I am trying to create a custom bar type and would like to know if I can add a data series and indicator in the custom bar code similar to how we do it in Strategies?

    Does anyone have any sample code for how to use AddDataSeries and initializing Indicators in a custom bar cs file?

    Thanks for any advice or input.

    #2
    Hello seanhughes16,

    Thank you for your post.

    You may not add any additional data series or call indicators from a BarsType script. What are you looking to achieve with your script? Based on what you are looking to do, we might be able to offer a suggestion of how it could be done with a different type of script.

    I look forward to your reply.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply Emily.

      Unfortunately that was not the answer I was looking for but feared based on my experimenting with trying to use indicators in my custom bar development.
      Frankly I'm just tired of copying the code from each indicator and handling all that state management and was hoping there was something I was missing.

      Its embarrassing but what I have been missing in my brain is to see if the darn thing is currently going up or down?! (I can't be the only person with this problem)
      Now its crystal clear ;-)

      Click image for larger version

Name:	image.png
Views:	109
Size:	831.6 KB
ID:	1244816

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ageeholdings, Today, 07:43 AM
      0 responses
      7 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X