Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Trades on the Same Contract

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

    Multiple Trades on the Same Contract

    Hi
    Quick question for clarification (using Amp Futures as my broker).
    If I have an automated strategy runnning on the YM, are these trades kept separate to that those that I may trade manually on the SuperDOM, i.e. is it possible to have both running simultaneously without any cross interference, e.g. SuperDOM entry trade closing down an open automated strategy trade.......
    is there anyway to protect for this in NinjaScript ???

    thx
    David

    #2
    You can trade them simulataneously

    - I would put the DOM StrategySelectionMode property in "DisplaySelectedStrategy", when an ATM strategy is active, the DOM will show the position relative to the strategy and not your actual account position
    - When you press the "Close" button on the DOM, it will close the ATM strategy. Otherwise, pressing the CLOSE button would close the account position and terminate your NinjaScript strategy.

    Play around with it in the Sim101 account to get a feel for the behaviour.
    RayNinjaTrader Customer Service

    Comment


      #3
      Got it ! - appreciate your great support Ray. thx !
      David

      Comment


        #4
        interesting -

        When trading from the DOM, it acts independently from the auto NinjaScript strategy within the chart (as expected), but this is not the case vice-versa. I have just had a trade initiate from the auto strategy, & it is also tracking the trade from within the DOM.
        is there someting that i need to add to the NT code to ensure independence.

        thx
        David
        Last edited by dgregor5; 01-03-2008, 11:08 AM. Reason: poor english

        Comment


          #5
          Pressing CLOSE on the SuperDom closes the auto strategy in the chart also. I can assure you that the ATM Strategy Selection mode is set to 'DisplaySelectedAtmStrategyOnly'.

          any thoughts ?
          thx
          Davud

          Comment


            #6
            What do you mean a strategy is tracking a trade from the DOM?

            - If you run a strategy on a chart, the position generated from the strategy is completely indpendent from whats in your account or displayed on the DOM
            RayNinjaTrader Customer Service

            Comment


              #7
              Automated NinjaScript stategy - 1 contract on the YM enter long.
              Default ATM strategy on the SuperDom - 3 contracts on the YM.

              1/ Trade initiated automatically in chart from NinjaScript as expected when conditions were met.
              2/ PnL also tracked in the SuperDOM for this chart trade, & rather than showing FLAT in the DOM, it had 2 contracts showing long.
              3/ Pressing CLOSE in the SuperDom closed the chart stratregy.
              4/ ATM Strategy Selection mode is set to 'DisplaySelectedAtmStrategyOnly'.

              hope this clarifies.
              thx
              David

              Comment


                #8
                - If in your DOM, you have an active ATM strategy selected in the strategy list, and you press CLOSE, it will *only* close the ATM strategy

                - If in your DOM, you do NOT have an active ATM strategy but your account holds a position (likely generated by your NinjaScrip strategy) and you press CLOSE, it will close the account position and *also* terminate your NinjaScript strategy
                RayNinjaTrader Customer Service

                Comment


                  #9
                  great - thx Ray. that matches my observations.

                  Comment


                    #10
                    Multiple Contracts

                    How to trade multiple contracts in ninja using a ninja script?

                    Comment


                      #11
                      luxurious, please make sure you have the entries value set high enough to allow multiple contracts. There should be no issues with trading more than one contract. You will also have to specify the number of contracts in the code as well.
                      Attached Files
                      AustinNinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by burtoninlondon, Today, 12:38 AM
                      0 responses
                      10 views
                      0 likes
                      Last Post burtoninlondon  
                      Started by AaronKoRn, Yesterday, 09:49 PM
                      0 responses
                      14 views
                      0 likes
                      Last Post AaronKoRn  
                      Started by carnitron, Yesterday, 08:42 PM
                      0 responses
                      11 views
                      0 likes
                      Last Post carnitron  
                      Started by strategist007, Yesterday, 07:51 PM
                      0 responses
                      14 views
                      0 likes
                      Last Post strategist007  
                      Started by StockTrader88, 03-06-2021, 08:58 AM
                      44 responses
                      3,983 views
                      3 likes
                      Last Post jhudas88  
                      Working...
                      X