• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to create a new indicator by modifying current one

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

    How to create a new indicator by modifying current one

    Hi,

    I'd like to do a simple modification of a current indicator. In the system, Bollinger Band uses SMA of close price for calculation. Instead, I want to change close price to "(high + low + close) / 3". How can I do this simple change? I don't know about coding.

    Thank you!

    #2
    Hello HiddenPhilosopher,

    Welcome to the NinjaTrader forums!

    The Typical may already be an existing data type that you can select for the SMA Input Series in the Price Type drop-down.
    https://ninjatrader.com/support/help...t8/typical.htm


    If the Typical price type is not what you are wanting, this would require coding as you are wanting a custom calculation with custom math.

    The custom calculations for each bar can be saved to a custom Series<double>, and this can the input series supplied to the SMA indicator.

    Below is a link to the help guide.
    https://ninjatrader.com/support/help...t8/seriest.htm

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

    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. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alwathein, Today, 02:15 AM
    0 responses
    2 views
    0 likes
    Last Post alwathein  
    Started by norstrigh, Yesterday, 11:58 PM
    0 responses
    4 views
    0 likes
    Last Post norstrigh  
    Started by swcooke, Yesterday, 08:34 PM
    0 responses
    4 views
    0 likes
    Last Post swcooke
    by swcooke
     
    Started by tvaughan4, Yesterday, 04:37 PM
    0 responses
    3 views
    0 likes
    Last Post tvaughan4  
    Started by Convert, Yesterday, 03:44 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X