Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How convert DataSeries to MultiTimeframe

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

    How convert DataSeries to MultiTimeframe

    Code:
    private MAX testVariable;
    testVariable = MAX(Volume[0], 5);
    and This DataSeries Variable:

    Code:
    private DataSeries testData;
    
    testData = new DataSeries(this);

    How would you convert this "testVariable" and testData to use in multiTrame Object?
    Last edited by ginx10k; 03-05-2015, 07:30 PM.

    #2
    ginx10k, you can use Volumes here - https://www.ninjatrader.com/support/...t7/volumes.htm

    A dataseries object could be synched to an additional series as well by following this approach - http://www.ninjatrader.com/support/f...ead.php?t=3572

    Comment


      #3
      Once I make the variable testVariable.
      I tried to use the Volumes. it didn't work. Is there another way to put this into the code so that it compiles properly?


      Code:
      private MAX testVariable;
      testVariable = MAX(Volumes, 5)[1][0];
      actually I'm trying this specifically

      Code:
      volumeTest = SMA(Volume, 5);
      
      //I want to use  
      volumeTest = SMA(Volumes,5)[1][0]
      How do I make this happen?
      Last edited by ginx10k; 03-06-2015, 11:05 AM.

      Comment


        #4
        Hello,

        Are you trying to get the price value of the SMA of the second series of Volume for the last 5 bars?

        If so you could do it like the following:

        Code:
        double volumeTest = SMA(Volumes[1], 5)[0];
        The Volumes needs a index location to determine which data series you are trying to use, in this case the second series would be index 1.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        574 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        332 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X