Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

swith accounts

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

    swith accounts

    Hello

    My question is if it is possible to change accounts within strategy code. I want to monitor real time equity curve and when it drops swith to a simulation mode until it recovers.

    The best automation so far I could come up with is to decrease position to minimum allowed and then scale it to an usual trading position for calculation.

    Brokers do like this because I still pay comissions in full, is there a better way?

    Best regards,
    Sergey.

    #2
    Sergey,

    I am happy to assist you.

    Unfortunately it is not possible to do this currently. It has already been suggested to development with internal tracking number 748.

    You could simply simulate the orders internally within the strategy. I.e. stop submitting live orders, and "pretend" trade for a little while until its simulated PnL recovers. The only drawback of this is it won't show up in account performance for Sim101, but you could output the "pretend" trades performance to a text or csv file using StreamWriter.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, Yesterday, 10:06 AM
    0 responses
    18 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    17 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    38 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X