Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi account simultaneous trade strategy

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

    Multi account simultaneous trade strategy

    Hi
    I am in the process of writing the strategy for the above (not yet addon. that will come later)
    i have encountered strange situation where the command : " EnterLong(...) " does not even tries to execute.
    not getting any error either.

    to reproduce the issue , I have created 3 SIM accounts . SIM101 (standard) sim102 and sim103
    edit the strategy parameters with the accounts.
    run my strategy and push the BUY once, that will cause the sim102 and sim103 to buy 1 contract.
    than push the SELL once. that will cause the flat on both SIM accounts.
    After that, no matter what you push , the EnterLong nor the EnterShort commands in the strategy will not work.

    any ideas ? AccountsTRADE.cs

    #2
    Hello dadarara,

    You would need to write an addon if you wanted to trade multiple accounts at once, strategies and their methods/properties are only intended to trade on the account you select in their settings. The account class from the addon framework is not valid to be used in strategies, that would be for indicators or other custom tools.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X