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 Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,788 views
        0 likes
        Last Post aligator  
        Started by Jimmyk, 01-26-2018, 05:19 AM
        6 responses
        837 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,293 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        13 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        11 responses
        63 views
        0 likes
        Last Post halgo_boulder  
        Working...
        X