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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        163 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        81 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        125 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        206 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        184 views
        0 likes
        Last Post CarlTrading  
        Working...
        X