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 haas88, 03-21-2024, 02:22 AM
    18 responses
    207 views
    0 likes
    Last Post haas88
    by haas88
     
    Started by Board game geek, Today, 02:20 AM
    0 responses
    1 view
    0 likes
    Last Post Board game geek  
    Started by knighty6508, Today, 01:20 AM
    2 responses
    13 views
    0 likes
    Last Post knighty6508  
    Started by franatas, Today, 01:53 AM
    0 responses
    2 views
    0 likes
    Last Post franatas  
    Started by knighty6508, Today, 01:17 AM
    0 responses
    9 views
    0 likes
    Last Post knighty6508  
    Working...
    X