Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 rocketman7, Today, 02:12 AM
    5 responses
    23 views
    0 likes
    Last Post rocketman7  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    7 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by samish18, 04-17-2024, 08:57 AM
    17 responses
    66 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by briansaul, Today, 05:31 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PaulMohn, Today, 03:49 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X