Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wizard generates bad code

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

    Wizard generates bad code

    The wizard-generated cod had these lines:

    Code:
                    AddPlot(new Pen(Brushes.MediumSeaGreen, 2), PlotStyle.Square, "ValueOfTheIndicator");
                    AddPlot(new Pen(Brushes.Firebrick, 2), PlotStyle.TriangleDown, "ValueOfTheSignalLine");
    which give compiler errors

    Argument 1: cannot convert from 'System.Windows.Media.Pen' to 'NinjaTrader.Gui.Stroke'
    --EV

    #2
    Hello,

    Thank you for the report.

    Can you tell me what version of the beta this error is from?

    Also what wizard were you using to generate this code, was this a strategy or an indicator? Strategies can now also plot also is why I ask.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello,

      Thank you for the report.

      Can you tell me what version of the beta this error is from?

      Also what wizard were you using to generate this code, was this a strategy or an indicator? Strategies can now also plot also is why I ask.


      I look forward to being of further assistance.
      Beta 3
      Indicator

      Also see my recent post in "General" about another bug in wizard code generation -- wrong index values for the accessor properties

      --EV
      Last edited by ETFVoyageur; 08-09-2015, 12:34 PM.

      Comment


        #4
        Hello,

        Thank you for the reply.

        I can confirm in the current B3 this does exist, I also do see this has already been reported and is being reviewed by development currently.

        This will likely be corrected in one of the next beta releases.

        As always thanks you for the report.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Brevo, Today, 01:45 AM
        0 responses
        2 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        6 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Working...
        X