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

Why is Stop Loss / Profit target not honored.

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

    Why is Stop Loss / Profit target not honored.


    Why are my profit / loss stops rarely not honored?

    I have a strategy that sets a profit / loss stop at six ticks. The vast majority of trades, the profit/stop loss is honored. However, on about 1% of trades, the stop / profit loss just doesn't stick, and the trade never closes. Even at the end of the trading day, the trade just stays open until I close it manually. Would you have any thoughts on this? Thanks,






    Attached Files

    #2
    Hello timmbbo,

    Thanks for your post.

    Are these strategies that you created? Or, were the strategies created by a third-party vendor?

    Have you added debugging prints throughout the strategy if you were the creator of it?

    Ultimately, to understand why the strategy is behaving as it is, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.

    In the strategy add prints (outside of any conditions) that print the values of every variable in every condition that places an order along with the time of that bar.

    Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).

    Also, enable TraceOrders which will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true.

    Below is a link to a forum post that demonstrates how to use prints to understand behavior.

    https://ninjatrader.com/support/foru...121#post791121

    Let us know if we may assist further.​​
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,290 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    9 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    62 views
    0 likes
    Last Post halgo_boulder  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    8 views
    0 likes
    Last Post Option Whisperer  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    25 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X