Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

normalized price

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

    normalized price

    is it possible to have the normalized price from 0 to 100?

    tks
    bebbus

    #2
    Hello bebbus,

    Thanks for your first post on the forums!

    This is certainly possible to do by programming your own math to normalize the price or set a plot value to be between 0-100. Algebra would be involved to convert the price to a normalized range and then you could freely use that value in the indicator.

    If you are looking for more information on indicators and how information gets plotted, I may suggest referencing the AddPlot() section of the help guide which demonstrates using AddPlot() and setting the plot's Value in OnBarUpdate(). I may also suggest referencing our open source indicators like the EMA as well for a simple example on an indicator that plots.

    AddPlot() - https://ninjatrader.com/support/help...us/addplot.htm

    If you would like further information on NinjaScripts and the basic methods used with strategies and indicators I may suggest viewing the NinjaScript Editor 401 tutorial.

    NinjaScript Editor 401 - https://www.youtube.com/watch?v=BA0W4ECyVdc

    The information provided is publicly available. If you have any additional questions, please let us know.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by terofs, Yesterday, 04:18 PM
    1 response
    21 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by CommonWhale, Today, 09:55 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by RookieTrader, Today, 09:37 AM
    2 responses
    13 views
    0 likes
    Last Post RookieTrader  
    Started by alifarahani, Today, 09:40 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X