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

Check Default Bar colors

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

    Check Default Bar colors

    Hi,

    I see the Bar Color section in the help file for changing a bar color, and i see the default series which seems to only be able to check the color of a bar specifically altered.

    Is there a quick simple check to see if the Bar is Green or Rd...as in Upbar or Downbar?

    Or do i need to use if Open > Close?

    Cheers

    #2
    Hello Aussiemike,

    Using the Open and Close values would be the easiest way to check for up bars or down bars.

    Note that if you want to check for multiple up and down bars that you can use the NBarsUp and NBarsDown method.
    JCNinjaTrader Customer Service

    Comment


      #3
      Nbars up sounds like just what i want :-)

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sofortune, Yesterday, 11:48 AM
      2 responses
      22 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by Zach55, 02-19-2024, 07:22 PM
      2 responses
      53 views
      0 likes
      Last Post lbadisa1  
      Started by JGriff5646, Today, 05:47 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by AlphaOptions, 06-18-2013, 08:24 AM
      9 responses
      2,200 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by ttrader23, Today, 09:33 AM
      3 responses
      23 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X