Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Easy Account Question

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

    Easy Account Question

    can anyone tell why my account positions are not printed (see attached).

    if I load the strategy when account already long then it works ok.

    if I replace EnterLong with ExitLong and load the strategy when account already long (Start Behavior = Immediately Submit) then it stays long.

    Q1. Is there a simulated time delay before updating the simulated account?
    Q2. if the strategy is flat and account long, is exitlong ignored?
    Q3. if strategy has no orders is Position.Account.CancelAllOrders ignored?
    Attached Files
    Last edited by delTik; 06-02-2016, 07:31 AM.

    #2
    Hello delTik,

    Thank you for your post.

    The method you are using is for the Add Ons, please try what is detailed at the following link: http://ninjatrader.com/support/helpG...etposition.htm

    Q1. No there is no simulated delay before updating the simulation account.

    Q2. ExitLong would only be required if you are trying to flatten the account. You may consider looking into the StartBehavior or Adopting the Account Position.
    StartBehavior: http://ninjatrader.com/support/helpG...rtbehavior.htm
    Adopting the Account Position: http://ninjatrader.com/support/helpG...itionaware.htm

    Q3. No, this is account specific and not strategy specific.

    Please let me know if you have any questions.
    Last edited by NinjaTrader_PatrickH; 06-02-2016, 01:06 PM.

    Comment


      #3
      ok thanks

      "can anyone tell why my account positions are not printed (see attached)."
      "No there is no simulated delay before updating the simulation account."

      using the attached strategy, if I enterlong and immediately try and print the account positions then it doesn't appear to work. any ideas?

      Comment


        #4
        Hello delTik,

        Thank you for your response.

        The prints are working on my end:
        1
        2
        3
        Position: Long at 2100.5
        Can you provide details on what you are seeing that is not working?

        Comment


          #5
          all ok now, thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by benmarkal, Yesterday, 12:52 PM
          3 responses
          22 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by helpwanted, Today, 03:06 AM
          1 response
          18 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          11 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          6 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          244 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Working...
          X