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 vivek.n, Yesterday, 03:19 AM
              2 responses
              33 views
              0 likes
              Last Post NinjaTrader_ShawnB  
              Started by Angus7, Yesterday, 02:03 PM
              1 response
              13 views
              0 likes
              Last Post NinjaTrader_ShawnB  
              Started by powerlobster, Yesterday, 01:39 PM
              0 responses
              16 views
              0 likes
              Last Post powerlobster  
              Started by butt_toast, Yesterday, 01:16 PM
              0 responses
              12 views
              0 likes
              Last Post butt_toast  
              Started by joaquinbaricco, Yesterday, 07:39 AM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_ShawnB  
              Working...
              X