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 algospoke, Yesterday, 06:40 PM
      2 responses
      19 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      45 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      21 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      181 views
      0 likes
      Last Post jeronymite  
      Working...
      X