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#.
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by FrazMann, Today, 11:21 AM
        0 responses
        3 views
        0 likes
        Last Post FrazMann  
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        51 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        10 responses
        36 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        24 views
        0 likes
        Last Post DayTradingDEMON  
        Started by George21, Today, 10:07 AM
        1 response
        19 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X