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 NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        87 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        151 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        80 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        53 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        62 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X