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 cre8able, Today, 01:16 PM
          2 responses
          9 views
          0 likes
          Last Post cre8able  
          Started by chbruno, 04-24-2024, 04:10 PM
          3 responses
          48 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by samish18, Today, 01:01 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by WHICKED, Today, 12:56 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by WHICKED, Today, 12:45 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X