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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    60 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    145 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    283 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X