Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Macd Crosover

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

    Macd Crosover

    Dear sir,

    Greetings from Malaysia
    I am trying to construct a simple automated trading system. I want the system to buy when the Macd crosses above the Average.


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

    this code does not work.

    I also want to sell when the Average crosses below the MACD.

    The cross over instruction is faulty. Request your assistance to fix it.
    cheers,

    Kumar
    [email protected]

    #2
    Hello,

    The CrossAbove method works fine for me. Try inserting this code right after the condition to CrossAbove and apply the strategy to a chart to see where the strategy is triggering: (If that does not help post your code and I will assist you further.)
    DrawDot("testdot",false,0,High[0],Color.Blue);
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    154 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    72 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X