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 junkone, Today, 11:37 AM
          0 responses
          2 views
          0 likes
          Last Post junkone
          by junkone
           
          Started by quantismo, 04-17-2024, 05:13 PM
          5 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by proptrade13, Today, 11:06 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by love2code2trade, 04-17-2024, 01:45 PM
          4 responses
          34 views
          0 likes
          Last Post love2code2trade  
          Started by cls71, Today, 04:45 AM
          2 responses
          10 views
          0 likes
          Last Post eDanny
          by eDanny
           
          Working...
          X