Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Index to double

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

    Index to double

    Hello,Support!

    Is there a way to assign index to double?The algorithm calculates ratio of some sort,so i cast double to an int,to get the exact value,so it looks like (int)RatioA == 10.Now,how do i assign index to it,if it`s possible?For e.g, i need something like (int)Ratio[0] now.

    Thank you!

    #2
    Hello,

    I am not sure I understand the full question here but it sounds like you may want to use a DataSeries if you need a indexed double.



    This would work exactly the same way for storing values as a Plot, the difference is that this only stores values though instead of also displaying a plot.

    You can then access a BarsAgo index for the double value of that DataSeries:


    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    46 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X