Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator that just paints the background

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

    indicator that just paints the background

    I am having a small problem with an indicator that can either plot the value on a panel, or through a parameter, plot the background based up the value of the indicator. I made a copy of the ROC indicator and saved it under myRoc. I have included the code for myROC.

    This is the plot statement:
    Add(new Plot(Color.Blue, "ROC"));

    I assume that this defaults to PlotStyle.Line.

    Add a indicator to a panel. Like HMA(Close,20); Need to ass an indicator so that the y-axis gets set. Now add myRoc(Close,True, 14) to the panel. Set the user parameter: BolPlotBckGrnd to True. As far as I can tell it does not make any difference if Auto scale is true or false.

    Using this setup, try changing the Plot Style from Line to Dot, Hash, and Square. All of these styles have no effect on the y-axis. Now try, Style = Bar. Notice how the y-axis has now changed even though nothing is being plotted. And Auto scale = True or False makes no difference.

    Is this by design or is this a bug.
    Thanks,
    Attached Files

    #2
    This is expected behavior: back color changes will not be effective unless you set value for the plot series.

    However, we will put that to our list to improve.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X