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

How avoid Frequent trading while using MACD strategy?

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

    How avoid Frequent trading while using MACD strategy?

    Hi,
    I'm using MACD as main condition of my strategy(Because I don't know which one is better,and I know MACD is not that reliable),one big problem is some time the two lines of MACD cross each other too frequently,sometime the two lines looks like one line.

    I have tried to add some other conditions to restrict the trading,suck like RSI and Bollinger ,but not very useful.I know some people is using EMA slope but I'm not very clearly about it right know.

    Could you give me some advice about it,?

    By the way,do you know what's the best RSI value for long and short.

    Thank you so much!!
    Attached Files
    Last edited by williamzz; 07-02-2019, 03:20 PM.

    #2
    Hello williamzz, thank you for your post.

    Using a EMA with a low period value would reduce the number of times the condition is hit. You could also define a hard-coded value for the number of bars that need to pass in order for the condition to be valid again. Set an int variable to the CurrentBar when you get a MACD condition, then wait until CurrentBar >= variable+5(bars) for example. I am not able to advise on best RSI values, but a member of the forum community might have some insight.

    Kind regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Really appreciate your reply!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      124 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Yesterday, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Yesterday, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Yesterday, 03:01 PM
      2 responses
      22 views
      0 likes
      Last Post helpwanted  
      Working...
      X