• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataSeries Multiplier

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

    DataSeries Multiplier

    Is it possible to multiply/divide a data series?

    i.e.
    I would like the dataseries to be GBP/USD divided by EURUSD
    and I could use the dataseries on any indicator.

    Or is there a workaround?

    #2
    Hello johnnybegoode,

    private Series<double> myDoubleSeries;

    myDoubleSeries = new Series<double>(this, MaximumBarsLookBack.Infinite);

    myDoubleSeries[0] = Closes[0][0] / Closes[1][0];

    Print(SMA(myDoubleSeries, 14)[0]);

    https://ninjatrader.com/support/help...t8/seriest.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Any way the Input Series on the chart would allow other than Indicators and DataSeries?
      Maybe there is an indicator that could do some arithmetic to get the value of myDoubleSeries[0] = Closes[0][0] / Closes[1][0];?

      Comment


        #4
        Hello johnnybegoode,

        No, you would need to select an indicator that does that calculation..
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by brunoviveiros, Today, 08:18 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by connorgrant5, Today, 02:02 PM
        0 responses
        2 views
        0 likes
        Last Post connorgrant5  
        Started by jeremy83846, Today, 01:44 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by PageNotFound404, Today, 01:53 PM
        0 responses
        7 views
        0 likes
        Last Post PageNotFound404  
        Started by Captain_Qwark, Today, 10:55 AM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Working...
        X