Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Manual target adjustment in Strategy

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

    Manual target adjustment in Strategy

    I created a strategy, using the Ninja-Script programming
    wizard,to enter and exit trades based on some moving
    average cross-overs. And once the trade is entered, it would
    also place a stop-loss and target of predefined ticks from
    the entry price.

    My problem is, once this strategy is running, I want to be
    able to manually adjust the stop-loss or target using the
    trading DOM. As it's working now, if I move the stop-loss
    or the target on the DOM, it would always return to its
    initial value on the next price bar update. Can someone please
    give me a hint as to how to solve this problem?

    Thanks,
    Allan.

    #2
    You will need to program using ATM strategies instead. Unfortunately this cannot be generated from the wizard, but there is a reference sample available. Please check out SampleAtmStrategy.




    Basically any article in the help file that starts with AtmStrategy____() or GetAtmStrategy____() is helpful information.

    You might also want to read this section. It provides information detailing what an ATM strategy is and how to use them.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    598 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    557 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    556 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X