Announcement

Collapse
No announcement yet.

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:

    https://ninjatrader.com/support/help...ount_class.htm
    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 Franck Z, Today, 09:49 AM
      0 responses
      5 views
      0 likes
      Last Post Franck Z  
      Started by pvtrader, Today, 08:02 AM
      2 responses
      7 views
      0 likes
      Last Post pvtrader  
      Started by Natoc, Today, 03:04 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by Rudy2323, Today, 02:56 AM
      2 responses
      28 views
      0 likes
      Last Post Rudy2323  
      Started by tonynt, Yesterday, 02:07 PM
      1 response
      38 views
      0 likes
      Last Post NinjaTrader_Jason  
      Working...
      X