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 samish18, 04-17-2024, 08:57 AM
              16 responses
              55 views
              0 likes
              Last Post samish18  
              Started by arvidvanstaey, Today, 02:19 PM
              3 responses
              9 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by jordanq2, Today, 03:10 PM
              2 responses
              8 views
              0 likes
              Last Post jordanq2  
              Started by traderqz, Today, 12:06 AM
              10 responses
              18 views
              0 likes
              Last Post traderqz  
              Started by algospoke, 04-17-2024, 06:40 PM
              5 responses
              47 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X