Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD Histogram is late

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

    MACD Histogram is late

    Hi,
    I'm trying to do a fast 1min scalp strategy but the histogram on the MACD is getting me in a bar late.
    I'm trying to say when the histogram 1 bar ago is less than the current bar then go long and vice versa on the short side.
    The long side:
    Code:
    MACD(12,26,9).DIFF[U][B][1][/B][/U][U][B]<[/B][/U] MACD(12,26,9).DIFF[U][B][0][/B][/U]
    So I've tried changing the inputs to the close and the open hoping it would be faster but it still doesnt work right.
    Code:
    MACD(12,26,9).DIFF[1]<MACD([U][B]Open[/B][/U],12,26,9).DIFF[0]
    I know its the histogram because when I remove it, it gets in on the correct bar.

    Any advice or alternatives? thanks

    #2
    alternative: use a green bar instead of the macd histogram... it doesnt work. It still gets in late on a close > open

    Comment


      #3
      Hello ezrollin,

      What are you meaning by late? Do you mean you are in real-time (or TickReplay) with Calculate OnPriceChange and you are submitting an order before the bar closes, but the order is appearing on the next bar?

      Can you provide output from prints and TraceOrders showing the issue?
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

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