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 kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        59 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        41 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        46 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        37 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        157 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X