Announcement

Collapse
No announcement yet.

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.

    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:	220
Size:	831.6 KB
ID:	1244816

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      598 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      555 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X