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

Submit an order at chart and submit StopLoss from Script

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

    Submit an order at chart and submit StopLoss from Script

    Hello,

    Is it possible to submit an order (Limit, Market...) at the chart and then submit a SetStopLoss order (and all its parameters) from a script?

    May you give us some script example?

    Thank you in advance,
    Hector

    #2
    Hello,

    Thank you for the post.

    Yes, this is possible, but not necessarily with the strategy methods specifically. The normal NinjaScript methods you would use in a strategy, the managed or unmanaged approach both assume the strategies orders will originate from this strategy. With NT8 there is the new Addon framework which allows you to access the account directly.

    For concepts that include partially manually trading and partially automated, the addon framework would be the section you need to review.

    This is not necessarily a simple concept, this is a more advanced approach that allows you to make more custom tools. One simple explanation would be you could make something similar to the superdom where you submit an entry and then have your custom logic take over.

    `We have some examples of the methods included with the addon framework, a good starting place would be the following links:


    The Account class will allow you to observe orders submitted to the account, this is also required for most of the samples in the Account section.

    To submit orders, you can use Submit(): https://ninjatrader.com/support/help...-us/submit.htm
    I look forward to being of further assistance.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you for the info.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Started by alifarahani, Today, 09:40 AM
      6 responses
      41 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      21 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Working...
      X