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

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 AttiM, 02-14-2024, 05:20 PM
    12 responses
    211 views
    0 likes
    Last Post DrakeiJosh  
    Started by cre8able, 02-11-2023, 05:43 PM
    3 responses
    236 views
    0 likes
    Last Post rhubear
    by rhubear
     
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    114 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    47 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X