Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Could I use the strategy builder to plot simple indicator?

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

    Could I use the strategy builder to plot simple indicator?

    Hi guys!

    I have two base indicators and would only need to divide the values. The two indicators are "ATR points" and "BarTimes". Hence the new indicator would be "ATR points divided by Bartimes" and plot it in a new panel. Can this be done in strategy builder or some other way without recurring to code?

    The base indicators are very simple. Adding image for clarity.

    Thanks
    Attached Files

    #2
    Hello voltation,

    Thanks for your post.

    No, it is not possible to add a custom plot to a strategy using the Strategy Builder. A limitation of the Strategy Builder is that you cannot create custom plots and assign calculations to those plots as you have described.

    You could unlock the script from the Strategy Builder and manually code your strategy to add a plot and assign your calculations to the plot.

    The AddPlot() method could be used to add a plot to the strategy. Then, you could assign your calculation (ATR points indicator divided by BarTimes indicator) to the plot in the script.

    See the help guide page linked below for more information on adding a plot to the script using AddPlot() and assigning values to the plot.

    AddPlot(): https://ninjatrader.com/support/help...t8/addplot.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
      Thanks Brandon, is it possible to do this simple indicator any other way then? I was thinking just tweaking some code of a working indicator.
      Thanks!

      Comment


        #4
        Hello voltation,

        Thanks for your notes.

        It could be possible to modify an existing indicator's script but this would require manually coding the logic mentioned in post # 2 into the indicator's code.

        For example, you would still need to manually program your calculations for the indicator and then assign the calculated value to a plot.

        Please refer to the AddPlot() help guide page for more information about adding plots to an indicator or strategy and assigning values to a plot.

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

        You could consider creating your own custom indicator. To create a NinjaScript indicator, open a New > NinjaScript Editor window, select the '+' tab at the bottom of the Editor window, select 'New Indicator'. Then, you could set up as much of the indicator as possible in the Indicator Builder. This will create the framework of the indicator or strategy. Once you finish setting up as much as possible in the Indicator Builder, you must manually program the rest of the indicator.

        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 need someone to write this script for you and add this logic 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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        72 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        43 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        25 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        29 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        60 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X