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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    599 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    345 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X