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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    86 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    48 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X