Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entering long and stop as a part of the same strategy

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

    Entering long and stop as a part of the same strategy

    Hello,
    Is it possible to enter long and short at the same time if a certain condition is met.

    E.g if MA for Period 1 Crosses above MA of Period 2, the automated strategy will place 1 long trade and 1 short trade with the same stop loss level. If the market continues to climb higher, I will only lose the money that I had to give up as a part of short trade and earn the difference between the stop loss of the short trade and exit price of the long trade.

    If it is possible to do so as a part of an automated strategy, should both the entry conditions be part of the same entry statement or should i have different entry code for both long and short trade.

    Very much appreciate any ideas in advance,
    Thanks!

    #2
    Pandyav,

    Thank you for your post.

    Yes, this is possible but only with the unmanaged approach.
    http://www.ninjatrader.com/support/h...d_approach.htm

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks Cal, I looked at the link below and it is quite helpful. Can you give me any idea about what is the difference between managed and unmanaged approach? To me both of them are using Ninjascript to define a strategy, so what is the difference between them?

      Thank you!

      Comment


        #4
        Pandyav,

        The unmanaged approach will require more attention to detail when you are managing your order system. While the managed approach has some under the hood settings that account for this.

        Think of the managed approach as an automatic transmission in a car and the unmanaged as a manual transmission.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          And a strategy created with unmanaged approach will still place the trade automatically and get out of it just like the managed approach, is that correct?

          Comment


            #6
            No, You will need to add logic to your strategy to account for your exits and if you need to cancel the order.
            Cal H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by wzgy0920, 04-20-2024, 06:09 PM
            2 responses
            27 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 02-22-2024, 01:11 AM
            5 responses
            32 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 04-23-2024, 09:53 PM
            2 responses
            49 views
            0 likes
            Last Post wzgy0920  
            Started by Kensonprib, 04-28-2021, 10:11 AM
            5 responses
            193 views
            0 likes
            Last Post Hasadafa  
            Started by GussJ, 03-04-2020, 03:11 PM
            11 responses
            3,235 views
            0 likes
            Last Post xiinteractive  
            Working...
            X