Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLong() EnterShort not working for Forex

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

    EnterLong() EnterShort not working for Forex

    I recently upgraded to a multi-broker license.

    I wrote a simple strategy to enter the market with EnterLong() or EnterShort() on immediate enabling of the strategy with a custom trailing strategy.

    This strategy works fine on Mirus and on Replay. The system actually enters the order (opens a position) on immediate execution.

    The strategy however does not work on MB, it will not open a position.
    It seems to work fine if I put an event like SMA crossover to trigger the entry but it will not open the position if there is no such trigger.

    Traceorders show that the entry was submitted and then cancelled at the end of the candle and resubmitted.

    To ensure that it is not my code, I used the strategy wizard to create a strategy to EnterLong() if market is flat, nothing else and executed the strategy with the same results.

    How do I get around this?

    I have tried an EnterLongLimit with a price well above the current price (just in case it was a bid/ask issue) and this does not work as well.

    Thanks
    Last edited by cnecorp; 12-13-2010, 12:30 AM.

    #2
    cnecorp, are you connecting to MBT as primary connection in this scenario?

    Thanks,

    Comment


      #3
      Yes Bertrand. I have also tried logging to MB only with no success.

      It appears that the event trigger e.g. SMA crossover is also intermittent i.e. works sometimes and not others.
      Last edited by cnecorp; 12-13-2010, 08:56 AM.

      Comment


        #4
        Thanks for testing, could you then please contact me from Help > Mail to Support in NinjaTrader directly to forward your trace / logs for analysis here?

        Thanks,

        Comment


          #5
          Sure
          I have sent you
          the trace file, log file and the output from traceorders.

          Last edited by cnecorp; 12-13-2010, 09:24 AM.

          Comment


            #6
            Hi Bertrand

            Did you get the files?

            Comment


              #7
              Sure, I replied directly to your inbox, can you please check if my reply was delivered properly?

              Thanks,

              Comment


                #8
                It went to SPAM. Have responded. Thanks

                Comment


                  #9
                  Bertrand,

                  Just a note here for others as well. Setting the Immediate submit instead of the waituntilflat in options/strategy as you suggested did the trick.

                  Thanks for your help.

                  Last edited by cnecorp; 12-14-2010, 09:24 AM.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  627 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  359 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  105 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  562 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  567 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X