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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    63 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    54 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Working...
    X