Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom series

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

    Custom series

    I have created a custom series that records the values of the high of upclose bars. I have checked this with prints and it is working correctly. When i try to compare the high of the current bar to the last value recorded on the custom series the custom series prints a different number than is should and the comparison doesnt work. Any ideas? Could it be that the custom series is not recording a value for every bar because the value collected is conditional?

    #2
    Hello Cowlick,

    Thank you for your post.

    A custom series should have a value assigned on every bar, as these are meant to be synced to the bars series.

    If you are assigning a value only conditionally, this could be the issue. Instead of not assigning a value on a certain bar, instead assign a dummy value like '0'.

    Comment


      #3
      Rather than placing a 0 would it be possible to carry the last recorded number in the series forward? Until a new number was recorded.

      Comment


        #4
        Hello Cowlick,

        Yes, you can simply assign the previous bars value to the current bar.

        ex

        MySeries[0] = MySeries[1];

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        79 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X