Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simulated Position

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

    Simulated Position

    Hello,

    before answering the question please notice that I work with 2 computers, one for longs and one for shorts with different accounts (otherwise it would be clear of course)

    how can I avoid long and a short at the same time. What can I do and code in the script eg on my computer with the long trades so that it doesn´t take a long trade when there would be a short running (so that maybe only the longs are sent to broker.?)

    Thanks
    Tony

    #2
    Tony, unfortunately strategies would per default not cross communicate and this would include communication to another instance running on another PC. You could look into keeping a log of open trades accessible through the network for example via a text file, but that would be something we could not support creating with C#.

    Comment


      #3
      Bertrand, thank you for your reply. Of course we can not code in the script that 2 computers computer communicate - not yet;-)

      I do the question different: Can I code so that NinjaTrader handles a trade as a position but it is not sent to brokers server? Like sim-mode for stops?

      Thanks
      Tony

      Comment


        #4
        Hi Tony, that would be done with NT simply trading in simulation so executing to the Sim101 account, that would be then only a simulated position - however you could not switch accounts dynamically from the strategy code.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        85 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X