• 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 Stefan1982, Today, 09:26 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by ArmKnuckle, Today, 03:08 PM
    0 responses
    5 views
    0 likes
    Last Post ArmKnuckle  
    Started by Mykro, Today, 02:51 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_BrendanC  
    Started by 5element, Today, 02:46 PM
    0 responses
    7 views
    0 likes
    Last Post 5element  
    Started by darkgreen, Today, 09:36 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X