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

Some MACD crossover not triggering while others are

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

    Some MACD crossover not triggering while others are

    Hello, I'm fairly new to the Ninja Trader 8 strategy build. I was trying this very simple MACD cross-over strategy.

    For Long:

    CrossAbove(MACD(12, 26, 9).Default, MACD(12, 26, 9).Avg, 1)

    And for Short:

    CrossBelow(MACD(12, 26, 9).Default, MACD(12, 26, 9).Avg, 1)

    Please see the attachment when I'm executing this.
    As you can see in the Orange boxes, the crossover is triggered. However, the circles in green, even though there is a crossover, were not triggered. Why is that?
    Attached Files

    #2
    I'm sorry, I have another condition that is preventing the trigger. Please ignore.
    Delete the post if necessary. Apologies for the post.

    Comment


      #3
      Hi I am looking for a similar project, how is your progress on your side? would you mind sharing your code?

      Comment


        #4
        Jamesforlife Hi, This was for learning purposes. However, as I mentioned the MACD was performing as expected, I have another condition (which I didn't mention) here that was blocking the triggering. Later I found out it was working fine.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by thumper57, Yesterday, 04:30 PM
        6 responses
        19 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by sastrades, 05-10-2024, 09:59 AM
        3 responses
        54 views
        0 likes
        Last Post rc5781
        by rc5781
         
        Started by guyonabuffalo, Yesterday, 10:01 PM
        2 responses
        20 views
        0 likes
        Last Post guyonabuffalo  
        Started by reynoldsn, 05-10-2024, 07:04 PM
        5 responses
        27 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by llanqui, Today, 11:10 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X