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 pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    66 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    18 views
    0 likes
    Last Post benmarkal  
    Started by f.saeidi, Today, 01:38 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X