Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need some help

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

    #46
    Sorry Dierk, that was the wrong line. This one seems to be fine however the one below is not:

    #region Properties
    [Description(
    "")]
    {[Category(
    "Parameters")]} - message says } expected
    publicint TG
    {
    get { return tG; }
    set { tG = Math.Max(1, value); }
    }

    This is weird because that part of code is generated by wizard, I didn't mess with it

    Also, one more question. When creating strategy with a wizard is it possible to have orders generated intrabar however value of PSAR calculated on bar close ?

    Thanks

    Comment


      #47
      When it comes to brackets being missing it will most likely not find the correct location because all your brackets are offset. You will simply need to go back by hand and go through your code and match up every bracket with its counterpart. I am sure you will find one missing. Perhaps in the OnBarUpdate() method.

      Multi-time frame strategy is currently not available through the Strategy Wizard.
      Josh P.NinjaTrader Customer Service

      Comment


        #48
        I checked all the brackets but everything seems to be in order, yet it still shows an error in the line I marked below. Can you please look at my code once again ? Thanks




        #region Properties
        [Description("")]
        {[Category("Parameters")]} - error message says } expected

        publicint TG
        {
        get { return tG; }
        set { tG = Math.Max(1, value); }
        }
        [Description("")]
        [Category("Parameters")]
        publicint PL
        {
        get { return pL; }
        set { pL = Math.Max(1, value); }
        }
        #endregion
        }
        }

        Comment


          #49
          Unfortunately we can't provide support down to the level of plain C# programming.

          However here is a hint: Remove the '{', '}' here
          {[Category("Parameters")]}

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          85 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          48 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          29 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          32 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          67 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X