Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Long orders becoming shorts..

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

    Long orders becoming shorts..

    I need help, I don't understand why some of my long trades are becoming shorts. I am hoping this is a common problem and I am doing something wrong, which is why I am not sharing a lot of info.

    If in fact this is not common, I will share more info.

    #2
    I am having the same issue as this person https://ninjatrader.com/support/foru...t-before-entry

    Comment


      #3
      Hi faisamtrader, thanks for your note.

      This is not a common issue. I can test your script if you would like. Please Export it and either post it here or send it to platformsupport at ninjatrader.com and reference "Attn ChrisL 2361338" in the body of the email.

      I look forward to hearing from you.
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Everything was going perfectly fine until the second last trade. It sold before it bought or you can say it shorted even though I have have a short strategy.




        EnterLongLimit(Convert.ToInt32(MyQuantity), GetCurrentAsk(0));




        {

        EnterLong(Convert.ToInt32(MyQuantity), "BuyOrder");
        }

        // Set 2
        if (CrossBelow(EMA1, EMA2, 1))
        {
        ExitLong(Convert.ToInt32(MyQuantity), "3CR13", "");
        }
        }
        }
        }
        }

        Comment


          #5
          Hi faisamtrader, thanks for your reply.

          I won't be able to help out with just this code snippet. Do you have a reduced sample script that I can test?
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Well I can send the whole script..where should I send it?

            Comment


              #7
              Hi faisamtrader, thanks for your reply.

              I wrote how to send me your script in post #3:

              Originally posted by NinjaTrader_ChrisL View Post
              Hi faisamtrader, thanks for your note.

              This is not a common issue. I can test your script if you would like. Please Export it and either post it here or send it to platformsupport at ninjatrader.com and reference "Attn ChrisL 2361338" in the body of the email.

              I look forward to hearing from you.
              Chris L.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,404 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by Shai Samuel, 07-02-2022, 02:46 PM
              4 responses
              95 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by DJ888, Yesterday, 10:57 PM
              0 responses
              8 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              159 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Yesterday, 09:29 PM
              0 responses
              8 views
              0 likes
              Last Post Belfortbucks  
              Working...
              X