Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Fill Price

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

    Order Fill Price

    NT,

    What code would print the fill price for each trade to the output screen?

    Thanks,

    RJay
    Last edited by RJay; 04-17-2009, 09:41 AM.
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    #2
    Hi, you can use the example code for the IExecution for this RJay - http://www.ninjatrader-support.com/H...Execution.html

    Comment


      #3
      NT,

      I added all the stuff in the link you provided.

      Data is now displayed in output window?

      However all trades disapeared from chart on reload.

      Is this suppose to happen?

      Thanks,

      RJay
      RJay
      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

      Comment


        #4
        Do you mean cleared from the output window? Yes, this is expected.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Do you mean cleared from the output window? Yes, this is expected.

          No, I mean there no trades showing up on the chart.
          RJay
          NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

          Comment


            #6
            Do you see any errors in the Log tab of the Control Center?

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              Do you see any errors in the Log tab of the Control Center?
              No Errors.
              RJay
              NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

              Comment


                #8
                RJay, can you please post the code you used so I can reproduce this on my end - if you don't want to post it, please contact me at support at ninjatrader dot com Attn Bertrand - Thanks!

                Comment


                  #9
                  [Description("Enter the description of your strategy here")]
                  public class Atrend2 : Strategy
                  {
                  Last edited by RJay; 04-17-2009, 01:58 PM.
                  RJay
                  NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                  Comment


                    #10
                    RJay,

                    I'm not sure I understand why you do this:

                    entryOrder = EnterLong(DefaultQuantity, "");
                    EnterLong(DefaultQuantity, "");

                    You already placed an entry order. Is it your intent to place two?
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Josh View Post
                      RJay,

                      I'm not sure I understand why you do this:

                      entryOrder = EnterLong(DefaultQuantity, "");
                      EnterLong(DefaultQuantity, "");

                      You already placed an entry order. Is it your intent to place two?

                      The second entry was from the strategy builder. I had commented it out earlier. Chart not displaying trade problem is still there.
                      RJay
                      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                      Comment


                        #12
                        And are your TraceOrders output saying any trades have been placed?
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          CurrentBar = 341 Open[0] = 844.5 Close[0] = 843.5 Close[1] = 845.25 GetCurrentAsk = 843.5 GetCurrentBid = 843.5
                          4/9/2009 11:26:00 AM Entered internal PlaceOrder() method at 4/9/2009 11:26:00 AM: Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
                          Order='NT-00056/Sim101' Name='Buy' State=PendingSubmit Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='df2b7747f59b4052a5f6719cdec565a9' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00056/Sim101' Name='Buy' State=Accepted Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='df2b7747f59b4052a5f6719cdec565a9' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00056/Sim101' Name='Buy' State=Working Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='df2b7747f59b4052a5f6719cdec565a9' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00056/Sim101' Name='Buy' State=Filled Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=844.25 Token='df2b7747f59b4052a5f6719cdec565a9' Gtd='12/1/2099 12:00:00 AM'

                          CurrentBar = 355 Open[0] = 841 Close[0] = 842 Close[1] = 840.25 GetCurrentAsk = 842 GetCurrentBid = 842
                          4/9/2009 11:56:26 AM Entered internal PlaceOrder() method at 4/9/2009 11:56:26 AM: Action=SellShort OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
                          Order='NT-00058/Sim101' Name='Sell short' State=PendingSubmit Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='d362cb24f2a94351a9b92e4911af0fc7' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00058/Sim101' Name='Sell short' State=Accepted Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='d362cb24f2a94351a9b92e4911af0fc7' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00058/Sim101' Name='Sell short' State=Working Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='d362cb24f2a94351a9b92e4911af0fc7' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00058/Sim101' Name='Sell short' State=Filled Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=842 Token='d362cb24f2a94351a9b92e4911af0fc7' Gtd='12/1/2099 12:00:00 AM'

                          CurrentBar = 364 Open[0] = 843.25 Close[0] = 842.25 Close[1] = 844 GetCurrentAsk = 842.25 GetCurrentBid = 842.25
                          4/9/2009 12:15:17 PM Entered internal PlaceOrder() method at 4/9/2009 12:15:17 PM: Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
                          Order='NT-00060/Sim101' Name='Buy' State=PendingSubmit Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='cd3dcb3102684d0ea84eba9da52075df' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00060/Sim101' Name='Buy' State=Accepted Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='cd3dcb3102684d0ea84eba9da52075df' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00060/Sim101' Name='Buy' State=Working Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='cd3dcb3102684d0ea84eba9da52075df' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00060/Sim101' Name='Buy' State=Filled Instrument='ES 06-09' Action=Buy Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=843 Token='cd3dcb3102684d0ea84eba9da52075df' Gtd='12/1/2099 12:00:00 AM'

                          CurrentBar = 369 Open[0] = 842 Close[0] = 843 Close[1] = 841.25 GetCurrentAsk = 843 GetCurrentBid = 843
                          4/9/2009 12:25:09 PM Entered internal PlaceOrder() method at 4/9/2009 12:25:09 PM: Action=SellShort OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
                          Order='NT-00062/Sim101' Name='Sell short' State=PendingSubmit Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='8c5c0f1f3a964766bee88b68fe923476' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00062/Sim101' Name='Sell short' State=Accepted Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='8c5c0f1f3a964766bee88b68fe923476' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00062/Sim101' Name='Sell short' State=Working Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='8c5c0f1f3a964766bee88b68fe923476' Gtd='12/1/2099 12:00:00 AM'
                          Order='NT-00062/Sim101' Name='Sell short' State=Filled Instrument='ES 06-09' Action=SellShort Limit price=0 Stop price=0 Quantity=1 Strategy='Atrend2' Type=Market Tif=Gtc Oco='' Filled=1 Fill price=842.5 Token='8c5c0f1f3a964766bee88b68fe923476' Gtd='12/1/2099 12:00:00 AM'
                          RJay
                          NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                          Comment


                            #14
                            Are you absolutely sure you still have the chart properties set to plot executions on the chart?

                            Please try with SampleMACrossOver.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              If I remove "entryOrder == null" From conditions 1 and 2, trades show up on charts.

                              Trades then disapear off of Display Output.
                              RJay
                              NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              596 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              343 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              556 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              554 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X