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

heiken ashi

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

    heiken ashi

    Hi, I know this may seem obvious but how do you check whether you have a down or up color heiken ashi bar?

    #2
    Originally posted by pman777 View Post
    Hi, I know this may seem obvious but how do you check whether you have a down or up color heiken ashi bar?
    For the NT system HeikenAshi, the properties expose both BarColorDown and BarColorUp. Is that the HeikenAshi that you are asking about?

    Comment


      #3
      thanks ... but I'm looking to evaluate the condition using ninjascript (from an indicator)

      Comment


        #4
        Originally posted by pman777 View Post
        thanks ... but I'm looking to evaluate the condition using ninjascript (from an indicator)
        if (BarColor == BarColorDown) etc.,.

        Do I misunderstand the question?

        Comment


          #5
          From within an indicator, I need to check whether I have a rising heiken ashi bar or a falling one. Do I compare the high/low of the heiken ashi candle as I would a regular candle?

          Comment


            #6
            I figured it out ... thank you!

            (HeikenAshi().HAOpen[0] >= HeikenAshi().HAClose[0])

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            1 view
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            6 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Started by alifarahani, Today, 09:40 AM
            6 responses
            41 views
            0 likes
            Last Post alifarahani  
            Working...
            X