Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IORDERS NOT Working

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

    IORDERS NOT Working

    Okay I've Uploaded my Testing Strategy. Note before I made any of the Iorder and Execution changes, the strategy was Taking Trades with EnterLong() stops etc.....

    Now I've attempted to take Trades using IOrder objects and EntryOrder1 & EntryOrder2 etc....

    and the stratetgy WON'T Take One Single Trade.

    Can someone Look at my Code and please see what's wrong. I've kept the code as Simple as possible and yet I get No results.

    P.S: This Strategy is for Price Based bars (Renko or ranged) Only, Not Time Bars
    Attached Files
    Last edited by ginx10k; 03-30-2015, 12:00 PM. Reason: Changed Strategy.cs File for easier Viewing

    #2
    Hello ginx10k,

    Thank you for your post.

    I will review your strategy and follow up with any details I find.

    Comment


      #3
      Thanks Patrick. Try it on renko or range chart. I'll await your response.

      Comment


        #4
        CalculateOnBarClose

        Hey, I downloaded the Reference sample from http://www.ninjatrader.com/support/f...ead.php?t=7499

        and it works fine the way it is. but I changed it to CalculateOnBarClose = false; because my strategy is set that way, and it completely stopped taking Orders. I even changed appropriate values to FirstTickOfbar and Close[1], and still nothing.

        Just letting you know in case that might help. cause I did change my strat to CalcOnBarclose =true but still No results. Hope that helps figuring out what the problem is.

        thanks. I'll keep waiting for response.

        Comment


          #5
          Update:

          I uploaded a Modified version of the Strategy, Now it takes Entry Orders. However, on SELL orders it never reaches Profit target. in fact, sells don't get closed out until New BUY orders come in.

          Example here: http://screencast.com/t/WKlcieIJUlak

          Can you or anyone please check the code and tell me what's wrong with it. You can ignore the previous version, as it had many errors. this is a super simplified version. I just copied and pasted and edited the one from http://www.ninjatrader.com/support/f...ead.php?t=7499

          P.S:
          1. New code has errors as such: it will sometimes take an Entry, and close out the trade within seconds.
          2. Sometimes it'll say Cancelled then Filled but nothing actually fills, and the Take profit and Stop order Still appear waiting to be filled.

          I'm at a Total Lost, I don't know what to do anymore.
          Attached Files
          Last edited by ginx10k; 03-31-2015, 08:13 AM. Reason: Added Errors

          Comment


            #6
            Hello ginx10k,

            Thank you for your response.

            Can you provide the strategy exported from File > Utilities > Export NinjaScript? I am missing needed references in your code, such as 'Stops'.
            Make sure to export as source files and attach to your response.

            Comment


              #7
              DONE: Upload should work fine. with no extra files needed.
              Attached Files

              Comment


                #8
                Hello ginx10k,

                What instrument and bar type are you testing this on? Example: ES 06-15 1 Minute.

                Comment


                  #9
                  FOREX Only. EUR/USD RANGED chart 40 Tick ChART or 40 tick Renko. using NinjaTrader Data --> TenthOfAPip.

                  If using 40 tick Renko/Range set Take Profit to 20 Pipettes (2 pips).
                  Last edited by ginx10k; 03-31-2015, 10:00 AM.

                  Comment


                    #10
                    Thanks ginx10k, I will test on my end.

                    Comment


                      #11
                      Hello ginx10k,

                      Thank you for your patience.

                      I am not seeing the same behavior on my end. I am seeing that the StopLoss parameter has a great deal of effect on the placement of the ExitShortStop or ExitLongStop as well as the ProfitTarget parameter on the ExitLongLimit and ExitShortLimit.

                      Please enable TraceOrders in your strategy and monitor the Output window for more information on the orders and their executions. For information on TraceOrders please visit the following link: http://www.ninjatrader.com/support/f...ead.php?t=3627

                      Comment


                        #12
                        I don't know how you say it doesn't happen on your end. I did another Test, and used TraceTrade. I can't understand what's happening so I posted a pic here

                        World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


                        I used Range chart, and waited for a Long Down Move. and it did that thing. maybe when u were testing it, u should wait for a Down move, as that's where the problem occurs.

                        For some reason strategy keeps thinking that it's IN a SHORT but it's NOT and won't take any other Shorts or BUYs until price moves Back UP a few bars.

                        Comment


                          #13
                          Hello ginx10k,

                          Thank you for your response.

                          Can you provide a screenshot of the settings you are using for the strategy in the Strategies menu on the chart, the Edit Strategy menu on the Control Center, or the Strategy Analyzer Backtest menu?

                          Comment


                            #14
                            Of Course I can. Mr. Patrick.

                            World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.

                            Comment


                              #15
                              I just don't understand Why The strategy Keeps Thinking that It's in a Short trade, and keeps avoiding the Take Profit and ignoring the Stop Loss. SOmething has to be happening with that OnOrderUpdate or OnExecutionUpdate area that's causing these problems.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              558 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              324 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              101 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              545 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              547 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X