Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Coloring bars

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

    Coloring bars

    Dear Sirs

    I have a custom indicator which paints all the session bars every 2 sessions (see attached), it uses an integer variable which switches between 0 and 1 at each new session first bar .
    I used this to paint the bars :
    if (value1 == 0)
    {
    BarColor=Color.Maroon;
    }

    How can code it so to have the color for the bars as input in the General Section of the indicator ?

    Rgds.

    Massimo
    Attached Files

    #2
    See the indicator VolumeZones NinjaScript code.

    See the variables section as well as the Properties section paying special attention to the properties that serialize color.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by localappleseed, Today, 09:51 AM
    0 responses
    3 views
    0 likes
    Last Post localappleseed  
    Started by wehewwehd, Today, 09:13 AM
    0 responses
    4 views
    0 likes
    Last Post wehewwehd  
    Started by aaajv, Yesterday, 06:45 AM
    3 responses
    21 views
    0 likes
    Last Post NinjaTrader_ThomasC  
    Started by asmmbillah, Today, 08:13 AM
    0 responses
    4 views
    0 likes
    Last Post asmmbillah  
    Started by Bionian, Today, 07:07 AM
    2 responses
    7 views
    0 likes
    Last Post Bionian
    by Bionian
     
    Working...
    X