• 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

add plot error

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

    add plot error

    Hello there, having issues ploting a historgram.

    Very simply i would like to plot a histogram. Using the example on the wiki

    AddPlot(Brushes.Blue, PlotStyle.Bar,"mybar");

    results in errors
    The best overloaded method match for 'NinjaTrader.NinjaScript.NinjaScriptBase.AddPlot(N injaTrader.Gui.Stroke, NinjaTrader.NinjaScript.PlotStyle, string)' has some invalid arguments
    Argument 1: cannot convert from 'System.Windows.Media.SolidColorBrush' to 'NinjaTrader.Gui.Stroke'

    I have tried searching for a solution online but i cannot find one. any help would be appreciated!

    Thanks!

    #2
    Hello, thanks for your post.

    The constructor would look like so when you need a bar style plot:

    AddPlot(new Stroke(Brushes.Blue), PlotStyle.Bar, "myPlot");

    Please let me know if I can assist any further.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Darringona, Today, 07:43 AM
    0 responses
    3 views
    0 likes
    Last Post Darringona  
    Started by simonkloot, Today, 07:28 AM
    0 responses
    6 views
    0 likes
    Last Post simonkloot  
    Started by marcus2300, Today, 06:24 AM
    0 responses
    4 views
    0 likes
    Last Post marcus2300  
    Started by Dhjesus, Today, 06:23 AM
    0 responses
    7 views
    0 likes
    Last Post Dhjesus
    by Dhjesus
     
    Started by embreyw, Today, 05:56 AM
    0 responses
    5 views
    0 likes
    Last Post embreyw
    by embreyw
     
    Working...
    X