Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Converstion from 7 to 8 Help. Plotting Issue

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

    Converstion from 7 to 8 Help. Plotting Issue

    Can anyone guide me in right direction. This is what I tried after using the conversion script and getting compile errors.
    Thanks
    Conversion script
    MaximumBarsLookBack = MaximumBarsLookBack.Infinite;
    AddPlot(new Stroke(Brushes.Blue), PlotStyle.Hash, "BlueLine");
    AddPlot(new Stroke(Brushes.Red), PlotStyle.Hash, "RedLine");
    AddPlot(new Stroke(Brushes.Transparent), PlotStyle.Square, "MidPrice");
    Plots[0].Pen = new Stroke(Brushes.Blue, 3); Plots[0].Pen.DashStyle = DashStyleHelper.Solid;
    Plots[1].Pen = new Stroke(Brushes.Red, 3); Plots[1].Pen.DashStyle = DashStyleHelper.Solid;
    Plots[2].Pen = new Stroke(Brushes.DarkGoldenrod, 2); Plots[2].Pen.DashStyle = DashStyleHelper.Solid;
    AddPlot(new Stroke(Brushes.DarkGoldenrod , 2) , PlotStyle.Hash, "MidLine");

    What I changed.

    MaximumBarsLookBack = MaximumBarsLookBack.Infinite;
    AddPlot(new Stroke(Brushes.Blue), PlotStyle.Hash, "BlueLine");
    AddPlot(new Stroke(Brushes.Red), PlotStyle.Hash, "Redline");
    AddPlot(new Stroke(Brushes.Transparent), PlotStyle.Square, "Midline");
    Plots[0].Pen = AddPLot(Brushes.Blue, 3); Plots[BlueLine].Pen.DashStyle = DashStyleHelper.Solid;
    Plots[1].Pen = AddPlot(Brushes.Red, 3); Plots[Redline].Pen.DashStyle = DashStyleHelper.Solid;
    Plots[2].Pen = AddPlot(Brushes.DarkGoldenrod, 2); Plots[Midline].Pen.DashStyle = DashStyleHelper.Solid;
    AddPlot(new Stroke(Brushes.DarkGoldenrod , 2) , PlotStyle.Hash, "MidLine");
    Attached Files

    #2
    Hello currencychick,

    NinjaTrader does not support any conversion scripts. Its far easier to create a new script, copy the code over, and correct any errors.
    Below is a public link to a forum post where this is discussed.


    However, what are the exact compile errors you are getting, on what lines, and what is the code on those specific lines?

    May we have a screenshot of the error?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    55 views
    0 likes
    Last Post CarlTrading  
    Working...
    X