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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X