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

Issue with Stop Loss

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

    #16
    Hello alifarahani,

    The Set methods cannot submit orders without an entry being filled so the orders being submitted would mean that you had also entered into a position.

    As mentioned while I cannot test the code for you there are ways for you to test this code by using prints. A Print would be suggested inside your entry condition so you can see when that is becoming true. When that condition becomes true you will enter a position and the targets will be submitted once the entry has filled. When you test the script and see the targets you should also see a print confirming that is working as expected.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NeoTraderBot, Yesterday, 10:55 PM
    0 responses
    6 views
    0 likes
    Last Post NeoTraderBot  
    Started by OliverWaters, Yesterday, 10:35 PM
    0 responses
    7 views
    0 likes
    Last Post OliverWaters  
    Started by Graci117, 07-06-2024, 09:32 AM
    6 responses
    39 views
    0 likes
    Last Post Graci117  
    Started by AdamDJ8, 07-01-2024, 06:50 PM
    2 responses
    124 views
    0 likes
    Last Post AdamDJ8
    by AdamDJ8
     
    Started by AdamDJ8, 07-01-2024, 05:55 PM
    3 responses
    32 views
    0 likes
    Last Post AdamDJ8
    by AdamDJ8
     
    Working...
    X