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)
Mike - just adding my thanks to this old thread - I was able to get a Supertrend function up and running in MC with this post. It's my favourite indicator from a prorealtime past so v grateful for this.
Can you help answer these questions from other members on NexusFi?
to check for a crossing is quite easy in EasyLanguage.
For an upcross you can do it like this:
or like this:
or
depending on what you want.
For your code it makes a difference on the variable you want to use. Both sTrend and vSuperTrend are able to accomplish the task.
If you want to use vSuperTrend, then check for the cross. With sTrend you simply need to check for
The vSuperTrend carries the value of the Supertrend and sTrend carries the direction of the Supertrend indicator.
This will become clear if you plot both variables. On this image the blue line is vSuperTrend and the red line is displaying the value of sTrend.
You don't need it. The easiest thing is to just leave it in there, if you don't want to use it. You just have to use it as input of the function.
Otherwise delete the input and get rid of it within the code. This will leave you with the three ATR inputs to the function.