Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Charting DAX on USD values

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

    Charting DAX on USD values

    I need to charting the DAX with USD values (DAX value[i] / EURUSD value[i])

    so i need to create a new dataserie with division DAX value by USDEUR value

    someone have done something like this ?

    #2
    Hello Solare,

    Thank you for your post.

    Unfortunately, I'm not sure whether this would be possible without custom programming of some kind. Is this something your data provider offers data for in the format you desire?
    KyleNinjaTrader Customer Service

    Comment


      #3
      i can use the data provided by CQG for DAX and EURUSD

      i can also programming but i don't know the ninjatrader objects strucuture

      i've read some code that redefine a dataserie but without more info i can do nothing

      i can also create a dataserie by exporting DAX and EURUSD values but ninjatrader when connect to dataprovider tell me that cannot find the symbol so i think they look for custom symbol on data provider, i cannot do one mine

      i hope on next future the new version will permit to use simple expression as dataserie / indicator and plot an indicator with candle, bars, etc, it's will open the market to ninjatrader also for a non programmer trader

      Comment


        #4
        Is the symbol you're trying to add the EUR/USD currency, or are you trying the 6E 03-13 Futures?

        CQG only provides futures data, so your connection would not be able to ind the EUR/USD.

        In order to get this calculation, you'd first need to Add() the supported data series, and then you can simply do the calculation from there.

        Code:
                protected override void Initialize()
                {
                    
        			Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
        			
        			//Adds EURO FX Futures to calcuate exchange rate
        			Add("6E 03-13", PeriodType.Minute, 1);
                    
        			Overlay				= false;
                }
        
                /// <summary>
                /// Called on each bar update event (incoming tick)
                /// </summary>
                protected override void OnBarUpdate()
                {
                   
        			// checks to ensure both objects have enough bars to calcualte
        			if(CurrentBars[0] < 1 || CurrentBars[1]< 1)
        				return;
        			
        			// ensures that the updates occur on the primary insturment (FDAX)
        			if(BarsInProgress == 0)
        			{
        			
        			//Sets the plot to the exchanged value (where close is the FDAX and Closes[1][0] is the Added() 6E
                    Plot0.Set(Close[0] / Closes[1][0]);
        			
        			}
        I'm including a link to Multi-Series scripts for more information:

        MatthewNinjaTrader Product Management

        Comment


          #5
          thanks that's what i need

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          68 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          41 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          24 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          27 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          54 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X