• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

close position x points above the average price

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

    close position x points above the average price

    Hello, I want to put a condition so that when the size of my position is greater than or equal to 4 contracts, the trade closes when the bid price is equal to or greater than 4 points above the average position price.

    The instrument in which I apply the strategy has two decimals (example 13500.00). Each point would correspond to 100 ticks

    Would this condition be correct?

    #2

    Comment


      #3
      Another question. I have seen that to close a trade there is no option to "close position", regardless of whether it is short or long. I only see the option of "exit long" or "exit short". Is there a "Close position" option?

      Thank you.

      Comment


        #4
        Hello herkok,

        Thanks for your posts.

        Your condition appears correct and we always suggest testing for yourself to validate.

        Correct, there is no generic close position. Please note that the ExitLong()/ExitShort() method is ignored if a long/short position does not exist
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_PaulH View Post
          Hello herkok,

          Thanks for your posts.

          Your condition appears correct and we always suggest testing for yourself to validate.

          Correct, there is no generic close position. Please note that the ExitLong()/ExitShort() method is ignored if a long/short position does not exist
          Thank you. Yes, I tried it and it seems to be going well.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Uregon, Today, 09:08 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by swcooke, Today, 09:09 AM
          0 responses
          6 views
          0 likes
          Last Post swcooke
          by swcooke
           
          Started by Induna, Today, 08:44 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by TangoTX, Today, 08:36 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Tyler  
          Started by abdullah, 11-15-2017, 08:44 PM
          11 responses
          822 views
          0 likes
          Last Post NinjaTrader_Kate  
          Working...
          X