Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Reversal Only Strategy

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

    Reversal Only Strategy

    Hi there,

    I'm quite new to NT Strategies and am just trying to backtest a simple EMA crossover. However, I would just like the strategy to reverse position (never TP). What's the best logic to do this?

    Thanks in advance!

    #2
    Hello quicksandatl,

    I would suggest looking at the SampleMACrossover strategy, that uses an SMA to reverse and could be changed to use an EMA if you wanted to use that instead. That does not use any targets. A similar task can be done using the strategy builder, you would just enter into the opposite direction when you wanted to reverse, that will close the position and enter into the opposite direction.
    JesseNinjaTrader Customer Service

    Comment


      #3
      if you are long 1 contract and reverse your position it will just sell 2 contracts. So, you would be taking profit on that original contract and then just going short on the second contract. vice versa. Are you just trying to make sure you are always in the trade no matter the direction?

      Comment


        #4
        Originally posted by NinjaTrader_Jesse View Post
        Hello quicksandatl,

        I would suggest looking at the SampleMACrossover strategy, that uses an SMA to reverse and could be changed to use an EMA if you wanted to use that instead. That does not use any targets. A similar task can be done using the strategy builder, you would just enter into the opposite direction when you wanted to reverse, that will close the position and enter into the opposite direction.
        Duh! I didn't even realize this. I think my not being flat upon first entry was throwing off my first test.

        Thank you all!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ageeholdings, Today, 07:43 AM
        0 responses
        6 views
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        12 views
        0 likes
        Last Post burtoninlondon  
        Working...
        X