Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Only few orders.

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

    Only few orders.

    Hi! Can anybody help me? I have some problem with my strategy.
    When I run it on the market replay it works well (100-150 orders per day). But if I start it on the sim account there are only few very rare orders during the day. I use GetCurrentAsk and GetCurrentBid into my algorithm.
    No matter if I use:
    - calculate on close bar or false.
    - time frame: ticks or range.
    - delays: from 0 to 150.
    - slippage: from 0 to 10
    - market or limit orders.
    For example, if I run my strategy on market replay with slippage 5 and using market or limit orders it works well. But if I run it on sim account with slippage 0, delays 0 (perfect conditions) It generates only few orders.
    How to improve the strategy? I think that the using ask=bid for calculating signals can help (look like market replay). Can I code it?
    Please turn me in the right direction into my searches.
    Best regards, Alex
    Last edited by Alexpl; 08-10-2012, 04:49 AM.

    #2
    Hello Alexpl,
    Welcome to the forum and I am happy to assist you.

    You can use slippage in backtest only. Not while running your strategy live or in market replay.

    Sets the amount of slippage in ticks used in performance calculations during backtests.


    To assist you further may I know are you trying to backtest it or running the strategy in market replay or live.

    I look forward to assisting you further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks for reply.
      Slippage it's not a problem.
      I run strategy on market replay (get 100-150 orders per day) and live sim account (get 0-5 orders per day)
      Why is so big difference in the number of the orders and how to improve it? This is make a big influence to results.
      Last edited by Alexpl; 08-10-2012, 05:06 AM.

      Comment


        #4
        Hello Alexpl,
        If there is data discrepancy then your straegy can work differently. Can you please make sure the live data and the replay data matches with each other.

        Also please append the code TraceOrders = true in the initialize section of the strategy and see if you are witnessing any cancelled/rejected orders.


        Also is the strategy a multi-series strategy?

        I look forward to assisting you further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Hi! My data feed is Kinetick. I am not sure that then I uses range bars they builds identicaly. There are not mutch enought orders in the trace log then I uses real sim account. Some orders are rejected but it's Ok.(Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties')
          Strategy is not a multi-series.
          For example: I had 6 trades on live account today. Then I tested the same period on market replay I had 12 trades.
          4 range; GC 12-12;
          On starting a real-time strategy - StrategySync=WaitUntilFlat SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=True CancelExitOrdersOnDisable=True CalculateOnBarClose=True MaxRestarts=10 in 5 minutes
          Last edited by Alexpl; 08-21-2012, 10:54 AM.

          Comment


            #6
            Maybe it can help

            The smooth part of the chart - on the starting "new chart" .When new data coming it displayed more accurately (from 14:05).
            But this does not affect the strategy.
            Maybe my strategy still use incorrect data (like the first part of picture)
            Last edited by Alexpl; 08-21-2012, 10:52 AM.

            Comment


              #7
              Hello Alexpl,
              The orders are getting rejected due the entry handling rules. Please make sure the strategy parameters are the same.

              Also please make sure the rollover date for GC 12-12 is set to July 30.
              • In Control Center menu bar goto Tools>Instrument Manager
              • In the Instrument Manager dialog type in GC in the Name text box and click on the Search button
              • Select GC from the data grid below and click on Edit button
              • In the Instrument Editor dialog click on Misc Tab
              • Scroll Down and click on the [...] button in the Contract Rollover field
              • In the new dialog set the Rollover month for 12-12 Contract to July 30.

              Please restart NinjaTrader after you have made the changes.


              Please let me know if I can assist you any further.
              Attached Files
              JoydeepNinjaTrader Customer Service

              Comment


                #8
                Thanks, NinjaTrader_Joydeep! I have corrected rollover date and run strategy again. Charts are correct now.
                Last edited by Alexpl; 08-21-2012, 01:50 PM.

                Comment


                  #9
                  Hello Alexpl,
                  Thanks for your note.

                  Please let me know if I can assist you any further.
                  JoydeepNinjaTrader Customer Service

                  Comment


                    #10
                    Hi, NinjaTrader_Joydeep! I have tested my strategy with the same conditions on real sim and market replay today. Results are absolutly different. I can provide you with reports.
                    Different entries in different time. Please, help me. I am searching for reason during last few months.

                    Comment


                      #11
                      Hello Alexpl,
                      Can you confirm the data while trading live and in the market replay matches with each other.

                      If you test the SampleMACrossover strategy that comes with NinjaTrader then can you get the same results?

                      I look forward to assisting you further.
                      JoydeepNinjaTrader Customer Service

                      Comment


                        #12
                        These screens are from my NT:
                        Live and replay at the same time. They are identical. May I use another way to compare?
                        I am also starting SampleMACrossover strategy for comparison.
                        Thanks.
                        Attached Files
                        Last edited by Alexpl; 08-23-2012, 05:03 AM.

                        Comment


                          #13
                          Hello Alexpl,
                          Please append the below code in the initialze section of your code and see if any orders are getting rejected or not.
                          Code:
                          TraceOrders = true;
                          JoydeepNinjaTrader Customer Service

                          Comment


                            #14
                            Hello, NinjaTrader Joydeep

                            When I have tested SampleMACrossover I got identical results. Only one trade was closed 2 ticks above than the same in replay. (18 orders were compared). I think It's Ok.

                            And another question: does the orders can be rejected before they will filled without tracing into logs? (for example: condition is valid during only one tick)

                            Thanks, NinjaTrader Joydeep, for all answers, they are very helpful !
                            Last edited by Alexpl; 08-30-2012, 02:05 PM.

                            Comment


                              #15
                              Alexpl,

                              Any rejections should be logged.
                              MatthewNinjaTrader Product Management

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by DayTradingDEMON, Today, 09:28 AM
                              3 responses
                              19 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by Stanfillirenfro, Today, 07:23 AM
                              9 responses
                              23 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by George21, Today, 10:07 AM
                              0 responses
                              8 views
                              0 likes
                              Last Post George21  
                              Started by navyguy06, Today, 09:28 AM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by cmtjoancolmenero, Yesterday, 03:58 PM
                              8 responses
                              34 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X