Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing stop utilizing currency rather than Ticks

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

    Trailing stop utilizing currency rather than Ticks

    I would like an automated trailing stop that with an ATM profit target of $100 and a loss target of $100 would trail with the following conditions. 1) if profit = $20 then stop loss = $80. If profit reaches $40 stop loss = 0 or break even. If profit = 80 stop loss = $70 profit. Is this possible? Thanls in advance for any advice.

    #2
    Hello TheDailyBenjamins,

    Thanks for your post.

    Are you referring to creating an ATM Strategy template as seen in the Chart Trader or SuperDOM order entry window?

    If so, you could set the ATM Strategy template 'Parameter type' setting to 'Currency' for setting a profit target and stop loss. The Currency parameter type will set the profit target and stop loss a certain PnL away from average entry calculated by the dollar per tick value for the order quantity used.

    Note that the parameter type of Currency or Price cannot be used for stop strategies like 'Auto trail'. Tick will be used instead, which is indicated by the (t) next to Auto Breakeven and Auto Trail in the stop strategy parameters.

    See this help guide page for more information about ATM Strategy template stop loss and profit target parameters: https://ninjatrader.com/support/help...parameters.htm

    See this help guide page for more information about ATM Strategy template stop strategies: https://ninjatrader.com/support/help...p_strategy.htm

    If you are wanting to program your own custom NinjaScript strategy, you could use Exit order methods and custom logic. Please note that you would not be able to use the exit methods and the stops in the stop and targets window as that creates a violation of the managed approach internal order handling rules, linked here: https://ninjatrader.com/support/help...d_approach.htm

    My colleague Chelsea has created educational examples of strategy builder breakeven and trailing stop in the strategy builder here to help get you started:
    https://ninjatrader.com/support/forum/forum/suggestions-and-feedback/suggestions-and-feedback-
    aa/103992-request-breakeven-functions-in-strategy-builder#post806596

    Below is a link to a forum post with helpful information about getting started with NinjaScript.
    https://ninjatrader.com/support/foru...040#post786040

    I am also linking you to the Educational Resources section of the Help Guide to help you get started with NinjaScript:
    https://ninjatrader.com/support/help..._resources.htm

    If you are new to C#, to get a basic foundation for the concepts and syntax used in NinjaScript I would recommend this section of articles in our help guide first:
    https://ninjatrader.com/support/help...g_concepts.htm

    And the MSDN (Microsft Developers Network) C# Language Reference.
    https://ninjatrader.com/support/help...erence_wip.htm​​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you for the extensive information. Since it is possible to do what I wanted, I will need to contact someone proficient in coding to help.

      Comment


        #4
        Hello TheDailyBenjamins,

        Thanks for your notes.

        If you need someone to write this script for you and add this method call on your behalf, you can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script.

        You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more!

        https://ninjatraderecosystem.com/sea...mming-services

        Educators - https://ninjatraderecosystem.com/sea...ures=education

        You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

        This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        557 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X