Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit fill price - exit optimization

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

    #16
    Hi,

    sure, this might be the problem, therefore I asked you about your experience and opinion about before I start and getting confused totally, maybe I end in the psychoanalysis of our clinic. My wife already says I´m on the way there since I do coding scripts as a non-programmer.

    Best
    Tony

    Originally posted by koganam View Post
    Kind of the principle of a Disaster Stop. I am not sure if you can actually manage to get this working with Managed Orders. You can but try, and let us know if it actually works. The log will tell you if the second order is rejected.

    Just remember to cancel all orders if you go flat because you get taken out. You do not want to reverse because of your order that is still sitting there, unless of course, you actually do want to reverse.

    Comment


      #17
      Originally posted by tonynt View Post
      Hi,

      sure, this might be the problem, therefore I asked you about your experience and opinion about before I start and getting confused totally, maybe I end in the psychoanalysis of our clinic. My wife already says I´m on the way there since I do coding scripts as a non-programmer.

      Best
      Tony
      Unfortunately, I have never coded that particular scenario, as my Disaster Stop is never used to take profits, and is only used in my Stop&Reverse strategies, where there are no actual Stops or Targets for individual trades, but we cannot let a trade be too big a drawdown. That is why I suggested that you code it, and let us know if NT actually lets you place 2 exit orders onto a single trade. I seem to remember that NT refuses to let it be done with Managed Orders.

      Actually reading the exact verbiage, quoted below, it would appear that the last listed condition (emphasis mine), would preclude what you describe.
      Methods that generate orders to enter a position will be ignored if:
      A position is open and an order submitted by an exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction
      A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction
      The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
      The entry signal name is not unique

      Methods that generate orders to exit a position will be ignored if:
      A position is open and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
      A position is open and an order submitted by a set method (SetStopLoss() for example) is active

      Set() methods that generate orders to exit a position will be ignored if:
      A position is open and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
      A position is open and an order submitted by an exit method (ExitLongLimit() for example) is active

      Comment


        #18
        koganam,

        yes with exitlong() you can exit immediately, but how you use this as a stop to get out immediately as you write. The discussion is about properties of exitlongstop?

        And what would you use here for "???" in ExitLongStop(0, true, Position.Quantity, ???, "Stop1", "M1");

        to avoid the problem you describe that can occur in fast moving market and to have it working as a market order (with same quality as setstoploss?)

        Best
        Tony


        Originally posted by koganam View Post
        Kind of the principle of a Disaster Stop. I am not sure if you can actually manage to get this working with Managed Orders. You can but try, and let us know if it actually works. The log will tell you if the second order is rejected.

        Just remember to cancel all orders if you go flat because you get taken out. You do not want to reverse because of your order that is still sitting there, unless of course, you actually do want to reverse.
        Last edited by tonynt; 03-23-2013, 09:50 AM. Reason: typing error

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        21 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        10 views
        0 likes
        Last Post cre8able  
        Working...
        X