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

Filtering out trades around the EMA

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

    Filtering out trades around the EMA

    I have noticed that a large percentage of my losses on the 5 min ES occur as whipsaws around the 20 bar EMA. If I construct a Keltner channel around the 20 EMA and adjust it to market conditions using user inputs, is it possible to filter out signals within that channel?

    One thing that comes to mind is that, since all my other conditions are "all conditions are met", could I create another set with "either or", like "the price is below the lower band of the Keltner channel, or it is above the upper band"? Will adding an "either or" set 2 to a "all conditions are met" set 1 create problems?

    Thanks for you help.

    #2
    Hello Bionian,

    Thanks for your post.

    I would suggest just adding the single condition to your long and short entry sets, after all you don't want to enter unless you are not in that zone.

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Actually, Paul, that won't work for my purposes. My strategy is a pull back and reversal strategy. As a pullback, I might restrict longs to above the moving average, but as a reversal, I need to be able to go long before the moving average, so I need to be able to trade both above and below the moving average in both directions, just not within the channel around the moving average. What do you suggest?

      Comment


        #4
        Hello Bionian,

        Thanks for your reply and clarification.

        It is difficult to advise based on the information you've provided.

        It sounds like you have multiple conditions that you would need to configure and include the position of price relative to the moving average for each of those. You may want to create a seperate "test" strategy where you can configure the variations and from there perhaps the way to work to your strategy sets will become clearer.



        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mattbsea, Today, 05:44 PM
        0 responses
        3 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        31 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        20 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Working...
        X