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 usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      602 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      20 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X