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

MACD paint arrows, calculate on bar close problem

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

    MACD paint arrows, calculate on bar close problem

    Hi there,

    this indicator puts an arrow on the chart for MACD up and down crosses.
    It works as intended only with calculate on bar close.
    Once you have it update in real-time, it puts the arrow on the charts for intra-bar crosses and leaves them on the chart even if there is no cross of the macd at the close of that bar.

    Could anybody help me so it paints the crosses at the close of the bar, yet updates the MACD real-time.

    Thanks
    Attached Files

    #2
    moonriver, you would then need to add logic to remove the drawn object when the condition is not present anymore - http://www.ninjatrader.com/support/h...drawobject.htm
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand for the info.

      Unfortunately I have no Idea about coding, so I would need some serious instructions how to add this.
      If you or anybody else has some spare minutes to add this code, I would appreciate it very much.

      Comment


        #4
        Macd Arrows

        Hi moonriver, try this.
        The arrows will blink on/off during the bar, if the condition is true at the close of the bar, the arrow will stay.
        Attached Files

        Comment


          #5
          Hi there finnbjurvoll,

          finally no false signals anymore, thanks a lot !

          One question though, the intra-bar blinking of the arrows has not materialized, or do you mean that once the MACD un-crosses that the arrows disappear?

          Have a nice day

          Comment


            #6
            yw Yes, lets say that during the bar period the lines cross several times. Everytime the condition is true, the arrow will plot. If the codition still is true at the bar close, the arrow will stay, if not, it will dissepear.

            FinnBjurvoll

            Comment


              #7
              Got it.
              Thanks again for your help.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by MGHORBEL, Today, 02:28 AM
              0 responses
              1 view
              0 likes
              Last Post MGHORBEL  
              Started by dcriador, Today, 01:43 AM
              1 response
              5 views
              0 likes
              Last Post dcriador  
              Started by louiseruch, Today, 01:11 AM
              0 responses
              1 view
              0 likes
              Last Post louiseruch  
              Started by kujista, Today, 12:39 AM
              0 responses
              6 views
              0 likes
              Last Post kujista
              by kujista
               
              Started by tonynt, 05-21-2019, 06:27 AM
              11 responses
              536 views
              1 like
              Last Post NinjaTrader_Jason  
              Working...
              X