Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reversing an Automated strategy?

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

    Reversing an Automated strategy?

    I have this strategy that seems to be performing horrible. Is the anyway that I can keep everything the exact same, excep for when it says to get long (make it go Short) and when it says to go Short (make it go long)?

    And if I can, what is the easiest way to edit that in ninja script?

    Thanks

    #2
    Corbett, welcome to our forums - you would need to run through the code and check for the logic where it enters positions (for our managed approach that would be the Enter() method calls) and then apply the reverse action (i.e. where you previously had EnterLong() you will now EnterShort()). However normally when this is attempted to 'fix' a performance issue the costs of execution and slippage are neglected which also play a major role, especially with an active script.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    33 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Yesterday, 02:41 AM
    0 responses
    15 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    25 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X