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 cmtjoancolmenero, Yesterday, 03:58 PM
          12 responses
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by FrazMann, Today, 11:21 AM
          0 responses
          5 views
          0 likes
          Last Post FrazMann  
          Started by geddyisodin, Yesterday, 05:20 AM
          8 responses
          52 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by DayTradingDEMON, Today, 09:28 AM
          4 responses
          27 views
          0 likes
          Last Post DayTradingDEMON  
          Started by George21, Today, 10:07 AM
          1 response
          22 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X