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)
This is an example of one form that I picked up from a strategy posted by wh. This example is for the 20 simple moving average. You can substitute any series based value for SMA(20) whether it be a standard NT indicator or a custom indicator. The TickSize will modify the scale for the instrument of the chart.
include the following in the variables section:
privatedouble radToDegrees = 180/Math.PI;
privateint sma20slope = 0;
I have just started using it so I can't comment on how well it works, but you could use a series for the slope result instead of an integer and plot it in a panel for testing. Please report back on your findings.
this is the common formula with two enhancements.
- the usage of two older Values (like a "mini" Moving Average) results in a more stable Slope-Calculation
- consider the Ticksize try to standardize price-skales with different amount.
The Snippet DID NOT WORK on Indikators, which oszillate between positiv and negativ Values.
The Ticksize Standardization is imprecise, because it gives us no adjustment if you switch between a 1Minute and 10 Minute Timeframe, and it also did not differenciate between price-data and indicator-data (i.e. from -1 to +1).