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 wjadevries, Today, 04:18 PM
    0 responses
    1 view
    0 likes
    Last Post wjadevries  
    Started by shahabjet1, Today, 03:47 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by JTizz, Today, 03:21 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by EB Worx, Today, 02:49 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by sdauteuil, Today, 02:58 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X