Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Semi Automated Strategy

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

    Semi Automated Strategy

    Could someone explain how this scenario would potentially work?

    One develops a strategy with automated entry and stop loss but no target orders, basically the trader manages where to get out of the trade. If one runs the said strategy and puts in a limit order as cover or target order once it has a position, would that be enough to let the automated strategy know that order is tied to the strategy as a target order for covering?

    #2
    Hello Boonfly8,

    Thanks for your post.

    With a strategy this will not work because the strategy will maintain its own position and will continue as if it were still in a position even though you close the account position with an opposite side order. The strategy would be unaware of your manual order.

    If you want to manually interact with a strategy then you would want to use a ninjascript strategy that works with ATMs. This way when you close the order the strategy position will be in sync with the account position. You can look at the example SampleAtmStrategy in your NinjaTrader which uses special specific ATM methods found here: https://ninjatrader.com/support/help...gy_methods.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul,

      Thank you for your note, and you understood correctly my question. I looked at the methods and looks useful, but is there a sample with a simple strategy (like MA cross over) that I can see and test manual orders with automated entry signals?

      Comment


        #4
        Hello Boonfly8,

        Thanks for your reply.

        "You can look at the example SampleAtmStrategy in your NinjaTrader". The sample is well documented in its code as to what is happening. You can create a copy of it and replace its simple Close[0] >Open[0] entry line (this line: if (orderId.Length == 0 && atmStrategyId.Length == 0 && Close[0] > Open[0])) with your entry criteria. You will also need to create an ATM template that has a stop order and will need to specifically call the template AtmStrategyTemplate.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lightsun47, Today, 03:51 PM
        0 responses
        5 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        12 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        46 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        10 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X