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 Shansen, 08-30-2019, 10:18 PM
              24 responses
              939 views
              0 likes
              Last Post spwizard  
              Started by Max238, Today, 01:28 AM
              0 responses
              8 views
              0 likes
              Last Post Max238
              by Max238
               
              Started by rocketman7, Today, 01:00 AM
              0 responses
              4 views
              0 likes
              Last Post rocketman7  
              Started by wzgy0920, 04-20-2024, 06:09 PM
              2 responses
              28 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 02-22-2024, 01:11 AM
              5 responses
              33 views
              0 likes
              Last Post wzgy0920  
              Working...
              X