• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sync-ing an always in strategy across weekends

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

    #31
    Thanks Bertrand. I'm looking forward to these enhancements, since the "mysterious" account-object has shown not to be what I was looking for. I wonder why there aren't more complaints about the missing of this feature, since FFMM is quite common practice.

    Comment


      #32
      @Ignignokt

      I can see there is
      AccountValue v=Account.GetAccountValue(AccountItem.BuyingPower, Currency.Euro);
      double byingpower=v.Value;

      which is probably Account Global


      then you have
      this.GetAccountValue(AccountItem.BuyingPower);
      which is the strategy local version.

      Please feel free to test these functions and get back with some info on their usability.

      Best regards
      Andreas

      Comment


        #33
        Guys, this is 110% unsupported, so don't even ask us about the following code:
        Code:
        foreach (Account acct in Cbi.Globals.Accounts)
        {
            if (acct.Positions != null)
            {
                PositionCollection positions = acct.Positions;
                foreach (Position pos in positions)
                {
                    Print(pos.Account.Name + " " + pos.Instrument + " " + pos.MarketPosition + " " + pos.Quantity + " " + pos.AvgPrice);
                }
            }
        }
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by connorgrant5, Today, 01:33 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by Mykro, Today, 01:28 PM
        7 responses
        16 views
        0 likes
        Last Post Mykro
        by Mykro
         
        Started by dmking, Today, 01:57 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by rwilliam, Today, 01:09 PM
        1 response
        23 views
        0 likes
        Last Post NinjaTrader_Melissa  
        Started by daqu40, Today, 01:08 PM
        2 responses
        10 views
        0 likes
        Last Post daqu40
        by daqu40
         
        Working...
        X