Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM , Time Limit : Variable " Trade duration after open of trade" is available ?

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

    ATM , Time Limit : Variable " Trade duration after open of trade" is available ?

    Hello

    .... to add to ATM a limit for the duration of the trade once opened : ..... I miss the option to define , that a trade has to be closed - as an example - a couple of seconds after it was opened ( "Time Stop " ) .

    Before I open the trade , I want to set a allowance for trade duration . My ATm would consist of SL , TP and Time [s / min / hrs]

    If the trade did not hit the SL or TP within my predefined time allowance , I want the trade to be closed irrespective of the current ( floating ) PnL and potentially at a smaller loss than the max foreseen value through the SL limits / potentially at a lower profit than TP but still better than a loss .

    I am well aware : Of course , as long as I am keeping current trade duration under continuous control and compare to my expectations , I could also close out the trade manually .
    And I admit , I found myself too often "staring" at the price action & hoping ( "hopium" ) for the price to do what I wanted it to do rather than admiting to myself that this trade is lost and that I should close it now .

    I hope there is a solution already in place and I just could not find it ?

    Best regards
    Lobo


    #2
    Hello Lobo_Trader,

    Thanks for your post.

    Unfortunately, NinjaTrader does not have a feature for ATM Strategies that allow you to set a Time for the trade duration of that ATM Strategy.

    We are tracking interest in this feature in an internal feature request ticket. This request is being tracked under the number SFT-5610.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hello Brandon , thank you very much . I do understand . Would it be a possibility , assuming I open a trade in manual mode before and than after activate a selfdeveloped strategy which does the pure trade management ? It would require the strategy to recognise, that there exists a trade which has to be "taken care for " during the strategy initialisation , is this feasible using C# ? Many thanks :-) Lobo_Trader

      Comment


        #4
        Hello Lobo_Trader,

        Thanks for your note.

        NinjaScript strategies are intended to run without any manual intervention.

        NinjaScript strategies cannot see manually placed trades (Strategy position is separate from actual Account position).

        If a trade is manually placed, the Strategy Position and Account Position will not be in sync. For example, if you manually place 1 Long trade and enable a strategy on the same account and same instrument, the Account Position will be 1 Long and the Strategy Position will be Flat.

        That said, to detect manual trades and manage them programmatically, you could consider using the AddOn approach Account class and create a NinjaScript that:
        1. Loops through the Account.Orders collection for the account to find active orders
        2. Subscribes to Account OrderUpdate events to look for any newly opened orders.
        3. Tracks these Orders in the script so they can be changed or cancelled with Account.Change or Account.Cancel

        I have included NinjaTrader 8 documentation on these items below if you wish to investigate further.

        Order object - https://ninjatrader.com/support/help...n-us/order.htm
        Account.Orders - https://ninjatrader.com/support/help...rs_account.htm
        Account.OrderUpdate - https://ninjatrader.com/support/help...rderupdate.htm
        Account.Change - https://ninjatrader.com/support/help...-us/change.htm
        Account.Cancel - https://ninjatrader.com/support/help...-us/cancel.htm

        Let us know if we may assist further.

        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Hello Brandon , many thanks for your support . You provided great information , top starting point for my task . Much appreciated . Best regards Wolfgang Lobo_Trader

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rocketman7, Today, 01:00 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by wzgy0920, 04-23-2024, 09:53 PM
          3 responses
          76 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by JonesJoker, 04-22-2024, 12:23 PM
          9 responses
          46 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by timko, Today, 06:45 AM
          1 response
          7 views
          0 likes
          Last Post gaz0001
          by gaz0001
           
          Started by Waxavi, 04-19-2024, 02:10 AM
          3 responses
          41 views
          0 likes
          Last Post gaz0001
          by gaz0001
           
          Working...
          X