Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sell stop or sell stop limit orders can't be placed above market

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

    Sell stop or sell stop limit orders can't be placed above market

    Hello forum,

    I get the message in the title while testing a strategy on 4 days market replay data. I don't really understand how this is possible nor how to prevent it.
    I am using NT8's methods as per tutorial, first i declare

    if (State == State.Configure)
    {
    SetProfitTarget(CalculationMode.Ticks, 8);
    SetStopLoss(CalculationMode.Ticks, 4);
    }


    and then for orders I use:
    EnterShort() and EnterLong()

    I am attaching the screensot of the error and a snippet of my code.

    Can somebody help me out? This has been driving me crazy for the last week!
    Thanks a lot!

    Attached Files

    #2
    This is happening to me as well. There is no issue in BackTest, just replay mode.

    Comment


      #3
      Hello Theghios,

      May I confirm that you are using 8.0.23.2? (With issue 14723 corrected)
      https://ninjatrader.com/support/help...8/8_0_23_2.htm

      ravipatel_us, welcome to the NinjaTrader forums!
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        I can confirm that.

        Comment


          #5
          Hello ravipatel_us,

          Thank you for confirming this. Please send an email to scriptingsupport [at] ninjatrader [dot] com so that we may request your log and trace files.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          3 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          1 view
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          6 views
          0 likes
          Last Post Javierw.ok  
          Started by timmbbo, Today, 08:59 AM
          2 responses
          10 views
          0 likes
          Last Post bltdavid  
          Working...
          X