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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            80 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            46 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
            66 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X