Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am just starting to learn ninjascript (unsuccessfully), I wonder if someone could help.
I am trying to make an indicator that will return the slope value of a EMA or ADX or whatever I define and only the slope value.
I will be using it in Market Analyzer and every slope indicator I have tried to use ends up just pulling in the price in analyzer table.
I did manage to get "SlopeSimple" to pull in just the slope, but it wasn't normalized across different tick sizes, so I had very different numbers depending on the instrument.
I haven't quite figured out the structure of a indicator script, so pasting full code would be super super awesome .
Can you help answer these questions from other members on NexusFi?
Not sure if you got what you wanted yet or not? If you want to try and code yourself what exactly are you having problems with? If this indicator I am posting below does what you want, and you need help getting the output into MarketAnalyzer, post back.
I tried to get the slope from MASlopeBoxMulti to show in Market Analyzer first thing last night, but all I could ever get it to output was the actual value of the MA, not the slope (in degrees). I would have loved to get it to work =//
do you get this working? i see the degree of the slope in the bottom right of the chart, but im not sure that its correct? you just put the same params of the ema/sma you are trying to find the slope of right?
dont believe anything you hear and only half of what you see
I spent some time trying to get this value into an exposed variable but coudln't figure it out with my limited knowledge.
The actual calculation is done in a function under the main body, and stored into a variable called 'degrees.' I was able to print the value of the degrees in the output window, but I coudln't capture it into a global variable so that I could make it available to Market Analyzer.
I tried declaring a global variable up top, then capturing that degree value in that function @ the bottom, which I thought would then make it accessible to Market Analyzer after declaring it as such in the properties.
Thanks for trying Forrestang. I will figure something else out with the Market Analyzer, trying to rig something up to save on screen real estate, which is a problem for me right now.