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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    65 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X