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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      72 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X