Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Semi-Auto Strategy Guidance

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

    Semi-Auto Strategy Guidance

    Could someone advise me on the best path to take (not sure a strategy is the best choice?) ...

    When a condition is met I want to a) input a price to submit a stop limit order b) input a price to submit a trailing stop loss order and c) input 2 prices to submit a 2 targets.

    also is it possible to input prices using mouse clicks?


    #2
    Hello dibDab,

    Thank you for your post.

    Depending on how you aim to calculate the prices for the trailing stop loss and two targets, you may be able to use ATM strategy templates within your NinjaScript strategy. This way, you could programmatically set conditions for the entry ("When a condition is met I want to a) input a price to submit a stop limit order") and then the ATM strategy would be applied to manage the stops/targets for the open position. The prices could then be modified manually with mouse clicks. We have a page about using ATM strategies and the line between NinjaScript strategies, which aim to be fully automated, and ATM strategies, which are manually managed, here:The ATM strategy methods available for use in a NinjaScript strategy may be found here:The platform comes with a strategy called SampleAtmStrategy that you may review as an example, and we also have the following reference sample which demonstrates how to get the PnL from an ATM strategy:Please let us know if we may be of further assistance.

    Comment


      #3
      ok thanks.

      how do I request input from the user when a condition is met?

      Comment


        #4
        Hello dibDab,

        Thank you for your reply.

        I did not understand that you did not intend to programmatically determine a price when the condition is met and instead wanted it to be a user input. How do you envision the input to work? Is the user supposed to put in a price prior to the condition being met, and then once the condition is met the stop-limit order is submitted? Or are you looking for a condition to be met and then the user is prompted to select a price for the order? Ultimately, it sounds like either way you could potentially configure an alert on the chart for the condition to be met, then the alert action itself could submit a stop-limit order with an ATM strategy template attached to it, or the alert could play a sound, show a pop-up, etc. then the user would know to manually select a stop-limit order at the desired price with an ATM strategy selected. For more information, please see the Alerts section of the help guide here:If you have an idea of the condition to be met, I would be glad to provide an example with screenshots of how that could be configured via the Alerts window.

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        30 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X