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 ScottWalsh, Today, 04:29 PM
              0 responses
              4 views
              0 likes
              Last Post ScottWalsh  
              Started by rtwave, 04-12-2024, 09:30 AM
              2 responses
              21 views
              0 likes
              Last Post rtwave
              by rtwave
               
              Started by tsantospinto, 04-12-2024, 07:04 PM
              5 responses
              69 views
              0 likes
              Last Post tsantospinto  
              Started by cre8able, Today, 03:20 PM
              0 responses
              7 views
              0 likes
              Last Post cre8able  
              Started by Fran888, 02-16-2024, 10:48 AM
              3 responses
              49 views
              0 likes
              Last Post Sam2515
              by Sam2515
               
              Working...
              X