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

Help Normalizing value

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

    Help Normalizing value

    Hi all, hope you're doing good, this is the thing, I have two volume sums running and want to merge them into one, but simply adding & dividing by two doesn't work, since their magnitudes are very different,

    eg:
    Indicator A Sum: 3 million
    Indicator B Sum: 100

    So the larger number pollutes the result overrepresenting itself, I don't care about the magnitudes, only about their respective shapes (vectors) and basically I want 50/50 representation of their mix together.

    The question: Can someone help with a math formula to replace their respective magnitudes, so their magnitudes are "X" while keeping their shapes?, I've looked around the web and tried different things but I'm sure doing something wrong, I'm still getting an overrepresentation of A (the larger value)

    Thank you very much in advance!


    Last edited by kabott; 03-02-2021, 04:21 AM.

    #2
    Hello kabott,

    Thanks for your post.

    I would suggest investigating statistical "z-score" as a way to normalize your data. I am not aware of a specific indicator for this but you may want to do an internet search for a z-score indicator for NinjaTrader8 or if you want to write your own, search for z-score definition.



    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Skifree, Today, 03:41 AM
    1 response
    2 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    23 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    23 views
    0 likes
    Last Post Pattontje  
    Working...
    X