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 have a question for those amongst us that understand indicator code (I'm not too good at this yet) in order to access indicators in a strategy.
A nice example is the attached MASlopeBoxMulti indicator, which can display the slope of any of a good selection of moving average indicators.
My question is: how can the slope that is displayed on the chart be used as an entry or exit trigger in a strategy? How can we code for this in a strategy?
Cheers,
Nano
Can you help answer these questions from other members on NexusFi?
In your .zip, a DataSeries is used to store the slope, but it's not always needed.
You can just use a variable, which stores the current slope, computed using the 3 previous values of the "thing" you want to apply/compute the slope.
For example, the slope of a EMA(20), in degrees: