Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to cout the number of stops

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

    How to cout the number of stops

    I would like to count, and limit the amount of stop´s on my strategy. Is there a command that tells me when a stop is executed, and provide informations such as the hour, the amount, the number of the bar, etc ...

    Thank´s

    #2
    Hello,
    You can use the OnExecution() event method to obtain this infomration by checking when the the stop order has executed and then within the check you could get the CurrentBar, time of the bar etc,
    For more information on the OnExecution() method please see the following link: https://ninjatrader.com/support/help...nexecution.htm

    If we can be of any other assistance please let us know.
    Cody B.NinjaTrader Customer Service

    Comment


      #3
      Thank you, I will try.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Karado58, 11-26-2012, 02:57 PM
      8 responses
      14,828 views
      0 likes
      Last Post Option Whisperer  
      Started by Option Whisperer, Today, 09:05 AM
      0 responses
      1 view
      0 likes
      Last Post Option Whisperer  
      Started by cre8able, Yesterday, 01:16 PM
      3 responses
      11 views
      0 likes
      Last Post cre8able  
      Started by Harry, 05-02-2018, 01:54 PM
      10 responses
      3,204 views
      0 likes
      Last Post tharton3  
      Started by ChartTourist, Today, 08:22 AM
      0 responses
      6 views
      0 likes
      Last Post ChartTourist  
      Working...
      X