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.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by prdecast, Today, 06:07 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Christopher_R, Today, 12:29 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by chartchart, 05-19-2021, 04:14 PM
    3 responses
    577 views
    1 like
    Last Post NinjaTrader_Gaby  
    Started by bsbisme, Yesterday, 02:08 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by i019945nj, 12-14-2023, 06:41 AM
    3 responses
    60 views
    0 likes
    Last Post i019945nj  
    Working...
    X