Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How Can I Make a Custom Strategy Reverse at Stop Just as in an ATM Strategy

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

    How Can I Make a Custom Strategy Reverse at Stop Just as in an ATM Strategy

    Also, once complete can such a strategy be backtested?
    Last edited by sampras010; 03-18-2016, 05:13 AM.

    #2
    Hello sampras010,

    Thank you for writing in.

    You can utilize the OnExecution() method: https://ninjatrader.com/support/help...nexecution.htm

    Check if your stop loss has filled. If so, then you'll submit a long or short order to reverse your position.

    Here is a reference sample from our support forum showing an example of how you can place orders from OnExecution() (and OnOrderUpdate()): http://ninjatrader.com/support/forum...ead.php?t=7499

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Hello sampras010,

      Thank you for your response.

      You would need to add the instrument to the script and then use it's BarsInProgress index in an additional overload for the Enter and Exit methods. Please refer to the information at the following link: http://ninjatrader.com/support/helpG...nstruments.htm

      Please let me know if you have any questions.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      382 views
      1 like
      Last Post Gavini
      by Gavini
       
      Started by oviejo, Today, 12:28 AM
      0 responses
      1 view
      0 likes
      Last Post oviejo
      by oviejo
       
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      125 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Yesterday, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Working...
      X