• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 manueldecastro, Today, 12:57 AM
    0 responses
    5 views
    0 likes
    Last Post manueldecastro  
    Started by JulieG, Today, 12:40 AM
    0 responses
    5 views
    0 likes
    Last Post JulieG
    by JulieG
     
    Started by jimjoe123, Yesterday, 09:28 PM
    2 responses
    13 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by 12VMan, 08-20-2019, 09:29 AM
    2 responses
    26 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by tgn55, Yesterday, 09:50 PM
    0 responses
    5 views
    0 likes
    Last Post tgn55
    by tgn55
     
    Working...
    X