Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit()

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

    #16
    goldfly,

    If you are already in a short position and you simply wanted to reverse at a specific price you can submit an EnterLongLimit() order immediately with no problem provided you do not violate any of these rules:

    Methods that generate orders (excluding market 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

    Should you run into these rules you will either need to cancel the preexisting conflicting order or use Unmanaged orders.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      You know, I read that before and for some reason the SetStopLoss didn't stand out to me. I couldn't get an order to take. Geez.

      So all I have to do is program and manage my own stops, rather than relying on initialize. I guess I can deal with that.

      Still, why not have a ReverseLimit method or some such that would wrap the process?

      Comment


        #18
        goldfly,

        Because it is not a simple process that everyone would want to do in exactly the same manner. Some people may find it acceptable to drop their brackets to place in a reversal order. Some people may not. To be able to handle all scenarios of what users may want to try and do is why we have introduced the Unmanaged approach in NT7.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Harry, 05-02-2018, 01:54 PM
        10 responses
        3,203 views
        0 likes
        Last Post tharton3  
        Started by cre8able, Yesterday, 01:16 PM
        3 responses
        11 views
        0 likes
        Last Post cre8able  
        Started by ChartTourist, Today, 08:22 AM
        0 responses
        6 views
        0 likes
        Last Post ChartTourist  
        Started by LiamTwine, Today, 08:10 AM
        0 responses
        2 views
        0 likes
        Last Post LiamTwine  
        Started by Balage0922, Today, 07:38 AM
        0 responses
        5 views
        0 likes
        Last Post Balage0922  
        Working...
        X