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, 05-11-2026, 05:56 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        32 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        195 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        358 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        278 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X