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 lorem, Yesterday, 09:18 AM
    3 responses
    13 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    12 responses
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FrazMann, Today, 11:21 AM
    0 responses
    5 views
    0 likes
    Last Post FrazMann  
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    52 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by DayTradingDEMON, Today, 09:28 AM
    4 responses
    27 views
    0 likes
    Last Post DayTradingDEMON  
    Working...
    X