Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple StrategyPlot()

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

    #31
    Originally posted by roonius View Post
    r2kTrader:

    let's say you want some special calculations on each bar, for example
    double myvalue = (close[1] + close[0] + open[0] + high[1])/4;
    And now you want SMA of the last 14 myvalues?
    So you declare dataseries to store those values for each bar:
    MyDataseries.Set (myValue);
    double Myothervalue = SMA(MyDataSeries,14)[0];

    Try to do it without DataSeries, just with BarsArray...

    Roonius,

    Thank you for helping out.

    I am starting to see the light. But to be clear, is it possible (not feasible) to do what you said above with just the BarsArray and your own code? Couldn't you just build a class to do that? (or is that essentially what the DataSeries is, lol??)

    This was helpful:



    Thanks,


    r2kTrader

    Comment


      #32
      Originally posted by r2kTrader View Post
      Roonius,

      Thank you for helping out.

      I am starting to see the light. But to be clear, is it possible (not feasible) to do what you said above with just the BarsArray and your own code? Couldn't you just build a class to do that? (or is that essentially what the DataSeries is, lol??)

      This was helpful:



      Thanks,


      r2kTrader
      I believe you just answered your own question.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X