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

Rate column in Executions tab

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

    Rate column in Executions tab

    Hi

    Is there a function in Ninjascript that will get the Rate column in Executions tab?

    Thanks

    #2
    mfouwaaz, unfortunately this would not be part of the NinjaScript exposed IExecution for your strategy orders.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      I went looking for an explanation of what this column means in the help guide, but couldn't find anything.

      Could you point me to a definition of the columns on the Executions tab?

      Comment


        #4
        Sure David, a full explanation would be for example found here in the first section - https://www.ninjatrader.com/support/...utions_tab.htm
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thanks, I had already found that page.

          Is 'Rate' only applicable to Forex?

          I only trade Futures and I've always wondered why that column is being shown to me ...

          The explanation implied on that page is only for use with Forex.

          Can you explain how Equities/Futures would need/use this value?

          Comment


            #6
            Correct, this is applicable to FX only.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              and if I may add, it is always 1 for currency pairs ending in _USD e.g. EURUSD or GBPUSD, as they cost exactly 1 US dollar.

              But if we intend buying something other than these, e.g. USDJPY then we need the 'rate' or exchange rate to figure out how much we can buy for a given amount of US dollars.

              It will be great if this is exposed to be able to automate this bit -- instead of having to hard-code an arbitrary rate.

              Comment


                #8
                Thanks.

                Well, yeah, I agree, that sounds pretty darn useful. Since I'll soon be adding FX to my trading endeavors, I can see how Rate would be very useful for position sizing in my strategy code.

                Bertrand, is there a feature request for NT8 for this idea?

                If not, could you add one?

                Comment


                  #9
                  Thanks for the feedback guys, I will see about adding that item in our list of suggestions to consider. You could though for sure access other crossrate data for custom conversions in your NinjaScripts via our MultiSeries approach. So any bars object could be Add()ed in under the Initialize() and then you would have access to that data bar by bar in OnBarUpdate() to dynamically adjust your sizing if desired.
                  BertrandNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Salahinho99, 05-05-2024, 04:13 AM
                  7 responses
                  55 views
                  0 likes
                  Last Post Salahinho99  
                  Started by knighty6508, 05-10-2024, 01:20 AM
                  4 responses
                  26 views
                  0 likes
                  Last Post knighty6508  
                  Started by OllieFeraher, 05-09-2024, 11:14 AM
                  6 responses
                  19 views
                  0 likes
                  Last Post OllieFeraher  
                  Started by PaulMohn, 05-02-2024, 06:59 PM
                  2 responses
                  44 views
                  0 likes
                  Last Post PaulMohn  
                  Started by ETFVoyageur, Today, 02:10 AM
                  0 responses
                  19 views
                  0 likes
                  Last Post ETFVoyageur  
                  Working...
                  X