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

Stop/target handling

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

    Stop/target handling

    How do I get rid of this output?

    "Stop/target handling set to 'By strategy position' since currency based stop order was placed."

    I changed the stop/target handling in the defaults to ByStrategyPosition, but this error still persists

    #2
    Set your stop based on ticks, or points, or price, instead of currency.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello trader3000a,

      Thanks for your post.

      The message that you received is a deliberate message from the platform notifying you that it has taken an action to change the Stop/Target Handling based on how the Strategy was written. It is an expected message/behavior and is not a bug. The strategy will have to be tailored to using StopTargetHandling.ByStrategyPosition if you wish to use currency-based stop orders in your strategy.

      It's also important to understand that Currency based stops and targets will be placed differently depending on the quantity of the order placed. For example, if you had a order for a single contract and it has a currency based stop at $400, that stop would be placed where it would be at a $400 loss. However, if you use a quantity of 2, the stop would be placed at $200 in loss below the current price for a total loss of $400 between the two contracts.

      If you would like to avoid seeing this message, you could consider changing your Stops and Targets to use CalculationMode.Ticks, CalculationMode.Percent, CalculationMode.Pips, or CalculationMode.Price instead of CalculationMode.Currency.

      See the different CalculationModes available on this help guide page: https://ninjatrader.com/support/help...get.htm​
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by tsantospinto, 04-12-2024, 07:04 PM
      7 responses
      126 views
      0 likes
      Last Post aligator  
      Started by futtrader, 04-21-2024, 01:50 AM
      5 responses
      56 views
      0 likes
      Last Post NinjaTrader_Eduardo  
      Started by PeakTry, Today, 10:49 AM
      0 responses
      2 views
      0 likes
      Last Post PeakTry
      by PeakTry
       
      Started by llanqui, Today, 10:32 AM
      0 responses
      5 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by StockTrader88, 03-06-2021, 08:58 AM
      45 responses
      3,994 views
      3 likes
      Last Post johntraderuser2  
      Working...
      X