• 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

How can I change the color of plot in realtime?

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

  • clearpicks
    replied
    Thanks a million

    Leave a comment:


  • NinjaTrader_Ray
    replied
    Try something like:

    Code:
    if (Support)
        Plots[0].Pen.Color = Color.Green;
    else
        Plots[0].Pen.Color = Color.Red;

    Leave a comment:


  • clearpicks
    started a topic How can I change the color of plot in realtime?

    How can I change the color of plot in realtime?

    Hello,

    I am using Add(Plot) to draw r/s lines in realtime (every 5 minute) as I discussed in http://www.ninjatrader-support.com/v...ead.php?t=7161. Depends on the market condition, it is either all plots are resistance lines or support lines. To save some resource, I decide to let those resistance lines share the same plots with support lines. My question is whether it is possible to change the color of a plot in realtime, for example, when a plot is used to display resistance, it is drawn in Red, otherwise it is drawn in Green. Is it possible?


    - Clearpicks

Latest Posts

Collapse

Topics Statistics Last Post
Started by MrSomebody, Today, 07:25 AM
1 response
2 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by morrnel, Yesterday, 09:39 PM
1 response
6 views
0 likes
Last Post NinjaTrader_PaulH  
Started by McQuac, Yesterday, 03:48 PM
1 response
18 views
0 likes
Last Post NinjaTrader_PatrickG  
Started by JTizz, Yesterday, 09:33 AM
1 response
11 views
0 likes
Last Post NinjaTrader_Kate  
Started by Andrey-Ufa, Yesterday, 12:18 PM
1 response
5 views
0 likes
Last Post NinjaTrader_PatrickG  
Working...
X