• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The Donchian trading system coded by Ninjatrader

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

    The Donchian trading system coded by Ninjatrader

    Ninjatrader,

    It seems the Donchian trading system you coded and provided under the Download section has a bug. Please see the system detail below.

    The Donchian trading system, as discussed by Oscar Cagigas in his article in this issue, “The Degree Of Complexity,” has been implemented as a strategy available for download at www.ninjatrader.com/SC/February2014SC.zip.

    The error message I am getting each time an order is submitted by the strategy are:

    For a Sell order:
    "CQG, Sell stop or sell stop limit orders can't be placed above the market. affected Order: Sell 1 Stop @ 0.8973"

    Strategy 'DonchianTradingSystem/0a8986f90bc040aab87b397e3b027179' submitted an order that generated the following error 'OrderRejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

    And, for a buy order:
    CQG, Buy stop or buy stop limit orders can't be placed below the market. affected Order: BuyToCover 1 Stop @ 0.8971

    Strategy 'DonchianTradingSystem/0a8986f90bc040aab87b397e3b027179' submitted an order that generated the following error 'OrderRejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.


    Please see if this can be rectified.


    Many thanks

    #2
    Thanks for the report and welcome to our forums here. We will look into matters and be back in touch then.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Looking forward to it

      Thanks, looking forward to the amendments you will be making.
      Further error messages on the strategy are:

      17/03/2014 12:43:51 Entered internal PlaceOrder() method at 17/03/2014 12:43:51: BarsInProgress=0 Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=0.8976 SignalName='' FromEntrySignal='Buy Stop'

      17/03/2014 12:43:51 Ignore order amendment: Action=Sell OrderType=Stop Quantity=0 LimitPrice=0 StopPrice=0.8976 SignalName=Sell' FromEntrySignal='Buy Stop' Reason='Order already has this stop price/limit price/quantity'

      17/03/2014 12:45:15 Cancelled expired order: BarsInProgress=0: Order='NT-00028/Sim101' Name='Sell' State=Working Instrument='6A 06-14' Action=Sell Limit price=0 Stop price=0.897634776213928 Quantity=0 Strategy='DonchianTradingSystem' Type=Stop Tif=Day Oco='' Filled=0 Fill price=0 Token='682259d9e0a64d3290ee81e3269d1430' Gtd='01/12/2099 00:00:00'

      Comment


        #4
        Any update

        Hi Ninjatrader,

        Thanks for taking a look at the Dunchian trading system code. I was wondering if you have found the bug and possibly the fix for it.

        Regards

        Comment


          #5
          Makemo8,

          To confirm, this happened on 3/17, at what time did you get the rejection notice?

          What session template are you running for the 6A?

          What time interval did you use for the chart?

          How manys days to load did you use for the chart?
          Cal H.NinjaTrader Customer Service

          Comment


            #6
            Ninjatrader,

            The trade of 3/17 was just an example. Donchian Trading System has not been taking any trades successfully since I put it in a chart. I am using 6A ,Timeframe of 3 Range and "Use instrument settings" as the session template. I usually load the default 3 days data on the chart. All the trades it submitted were rejected, not just one day but each time. I reckon the routine of submitting a stop order need to be changed.

            Thanks for looking into this.

            Comment


              #7
              Hello Makemo,

              I wanted this chance to update you on what I have been doing so far this week.

              I have not been able to replicate the issue that you are having with the strategy.

              I would ask that the next you have this occur to send me a request to support[at]ninjatrader[dot]com with your log and trace attached at the time of the occurrence.

              You will find the log file on your PC in the (My) Documents > NinjaTrader 7 > Log folder.

              The log file will be named "log.YYYYMMDD.txt"

              You will find the trace file on your PC in the (My) Documents > NinjaTrader 7 > Trace folder.

              The trace file will be named "trace.YYYYMMDD.txt"
              Cal H.NinjaTrader Customer Service

              Comment


                #8
                Does this strategy work?

                I have download the indicator and strategy files and place on an ES chart.
                No trades were made.
                How does this strategy work? Do I have to manually enter stop and limit orders?
                I tried it in the strategy analyzer and nothing happened.

                Can someone answer my questions?
                If NinjaTrader distributed this code why is there no documentation etc.
                thanks, Dave

                Comment


                  #9
                  Originally posted by n1144n View Post
                  If NinjaTrader distributed this code why is there no documentation etc.
                  I believe you would need February 2014 of Technical Analysis of Stocks and Commodities magazine.

                  http://traders.com/

                  Comment


                    #10
                    Hello n1144n,

                    The strategy is based on the system discussed by Oscar Cagigas' article "The Degree Of Complexity" in the February 2014 issue of Technical Analysis of Stocks & Commodities.

                    Can you please provide a screenshot of the parameters used in the Strategy Analyzer for the strategy?

                    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

                    Click here for instructions

                    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

                    Click here for detailed instruction
                    Zachary G.NinjaTrader Customer Service

                    Comment


                      #11
                      Was this ever fixed? The version I have still crashes with

                      Strategy 'DonchianTradingSystem/0a8986f90bc040aab87b397e3b027179' submitted an order that generated the following error 'OrderRejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself.

                      Market Replay Connection. Buy Stop or buy stop limit orders can't be placed below the market. affected Order: Buy 1 Stop @ 2252.75

                      Running on ES 60 min bars.

                      Here's a good explanation of the system:

                      https://tlc.thinkorswim.com/center/c.../Donchian.html
                      Last edited by ScorpioTravis; 01-29-2017, 01:38 PM.

                      Comment


                        #12
                        Hello ScorpioTravis,

                        Thank you for your response.

                        Can you provide a screenshot of the settings you are using in NinjaTrader 7?

                        I look forward to your response.
                        Patrick H.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by iceman2018, Today, 09:56 PM
                        0 responses
                        3 views
                        0 likes
                        Last Post iceman2018  
                        Started by iceman2018, Today, 09:51 PM
                        0 responses
                        3 views
                        0 likes
                        Last Post iceman2018  
                        Started by linacesaro, Today, 09:17 PM
                        0 responses
                        3 views
                        0 likes
                        Last Post linacesaro  
                        Started by n8dogg59, Today, 06:55 AM
                        2 responses
                        17 views
                        0 likes
                        Last Post n8dogg59  
                        Started by pstrusi, Today, 03:29 PM
                        2 responses
                        10 views
                        0 likes
                        Last Post pstrusi
                        by pstrusi
                         
                        Working...
                        X