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 soon123, Today, 12:18 AM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by space_trader, Today, 12:52 AM
      1 response
      20 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by ybhx0315, Yesterday, 09:06 PM
      0 responses
      15 views
      0 likes
      Last Post ybhx0315  
      Started by parkinsonbr, Yesterday, 08:23 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by fxRichard, Today, 04:35 AM
      2 responses
      14 views
      0 likes
      Last Post fxRichard  
      Working...
      X