Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NinjaTrader DDE Connection

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

    #16
    unzip and edit the xml file. zip the whole edited stuff again, and then import the same.

    Comment


      #17
      I appreciated your help very much... I try it but now it's tell my can,t find the file C:\User\JMR\Documents\NinjaTrader 6.5\bin\Custom\Tmp\Import\DDE\AdditionalReferences .txt.

      I don't know what to do

      Dervakon

      Comment


        #18
        download the latest version of NT6.5 and then import the zip file.

        Comment


          #19
          Hi all ,

          Do you know somebody who use the DDE from Bukkan and is OS is window 7...

          Thanks

          Comment


            #20
            nice one.. one question tho, (it's prob possible but I jus can't get an ideal result) how do you pass many different indicators value into NinjaServer.ItemValue? For example for every level1 price change, i want to pass SMA(5), SMA(20), SMA(....1000) as well as values from custom indicators to the DDE server.
            the NinjaServer.ItemValue seems to be 'flooded' with these values. the gives conflicting values on the Excel client.. thanks

            Comment


              #21
              can you post your code, and if possible a video of the issue you are facing. some folks have reported some issues in Win7, but i am on XP and couldnt replace the issues.

              thanks

              Comment


                #22
                Thanks for the fast response! I'm on XP btw
                i know something's wrong with my concept of the DDE server construct. Dun exactly know where. I'll use my understanding of your codes as reference.

                I believe that NinjaServer.ItemValue = e.Price in the OnMarketData(MarketDataEventArgs e) block initializes the value of the server.
                The part I'm not too sure is how/when I should invoke server.Advise(topic,"Command"); For your code, the condition is if (e.MarketDataType == MarketDataType.Last).

                However I can't use MarketDataType if I I want an item with value SMA(3)[0], right?
                I need something like

                //if SMA(3) value is different from SMA(3) previous value
                if (SMA(3)[0] != SMA(3)[1] && server != null)
                {
                NinjaServer.ItemValue = SMA(3)[0];
                server.Advise(topic,"SMA3");
                }
                else
                if (SMA(30)[0] != SMA(30)[1] && server != null)
                {
                NinjaServer.ItemValue = SMA(30)[0];
                server.Advise(topic,"SMA30");
                }
                .
                .
                .
                .

                I know my concept is flawed somewhere.. because the only the first if condition has output on the client Excel, the subsequent if conditions are never captured and Excel outputs #NA

                How would you pump values from indicators (not just variables of MarketDataEventArgs) to the server? or is this even possible?

                Thanks

                Comment


                  #23
                  Originally posted by mechcow View Post
                  //if SMA(3) value is different from SMA(3) previous value
                  if (SMA(3)[0] != SMA(3)[1] && server != null)
                  {
                  NinjaServer.ItemValue = SMA(3)[0];
                  server.Advise(topic,"SMA3");
                  }
                  else
                  if (SMA(30)[0] != SMA(30)[1] && server != null)
                  {
                  NinjaServer.ItemValue = SMA(30)[0];
                  server.Advise(topic,"SMA30");
                  }

                  just remove the else from the code. it is due to that you are not getting the values for SMA30. otherwise it should work fine. in excel make sure item value is 'SMA3' and 'SMA30'

                  Comment


                    #24
                    hmm, now, without the else there's another problem. The DDE values on the client picks up values of other items as well. So a value generated by =NJDDE|EURUSD!'SMA3' on Excel actual oscillates between the values generated by both server.Advise(topic,"SMA3") and server.Advise(topic,"SMA30"). I can see the numbers just oscillating back and forth.

                    Doesnt matter the logic is in OnMarketData() or OnBarUpdate()

                    Ever encountered something like that? Timer needed to introduce some delay?

                    Comment


                      #25
                      cant say what you are doing but this (see attached) is working fine at my end.
                      Attached Files

                      Comment


                        #26
                        Originally posted by bukkan View Post
                        cant say what you are doing but this (see attached) is working fine at my end.
                        thanks for your help! appreciate it.. all's fine when I changed the indicator setting 'Calculate On Bar Close' to true, which is what I need anyway

                        Comment


                          #27
                          Does this work in vers.7,too?
                          Is it possible to add topics for last/bid/ask - volume ?

                          Thank you
                          Jojo

                          Comment


                            #28
                            it is made for and tested on NT7 only.

                            yes any value will work, you have to modify the code accordingly.

                            Comment


                              #29
                              Thanks first.
                              Unfortunately I'm not good in programming - I do not understand how to put this

                              " if (e.MarketDataType == MarketDataType.Bid)eVolumeBid = e.Volume;" - thing

                              into the right context, as far I understand there is no direct MarketDataType.Last/Ask/Bid Volume.
                              You have to substitute Volume with something like e.-variable ?
                              Maybe you can head me in the right direction.

                              Regs
                              Jojo

                              Comment


                                #30
                                i didnt get you properly but the MarketDataEventArgs provides volume. like e.Volume provides the volume for the respective pricetype.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by DJ888, 04-16-2024, 06:09 PM
                                4 responses
                                12 views
                                0 likes
                                Last Post DJ888
                                by DJ888
                                 
                                Started by terofs, Today, 04:18 PM
                                0 responses
                                6 views
                                0 likes
                                Last Post terofs
                                by terofs
                                 
                                Started by nandhumca, Today, 03:41 PM
                                0 responses
                                6 views
                                0 likes
                                Last Post nandhumca  
                                Started by The_Sec, Today, 03:37 PM
                                0 responses
                                3 views
                                0 likes
                                Last Post The_Sec
                                by The_Sec
                                 
                                Started by GwFutures1988, Today, 02:48 PM
                                1 response
                                9 views
                                0 likes
                                Last Post NinjaTrader_Clayton  
                                Working...
                                X