Supertrend Indicator
Author: Compaqster
Creation Date: 11/10/2010 5:02 PM
profile picture

Compaqster

#1
I would like to implement this indicator in WLD NET, but i can't find correct description.
profile picture

Eugene

#2
This thread might be a good starting point: Supertrend Indicator. However, I've seen different renderings on different sites and have yet to find a page with clear, unambiguous description (like for every other indicator in the world.)
profile picture

Eugene

#3
I'll add them to Community.Indicators in the upcoming release (2010.12).
profile picture

Compaqster

#4
Eugene.
Thank you very much
profile picture

odeedo

#5
A little bit off-topic question to your Code Eugene.

Why do you plot the dataseries before it is calculated?
It is confusing me.

Regards odeedo

PS: Why Do you start with calculation at ATRPeriod * 3 ?



profile picture

Eugene

#6
QUOTE:
Why do you plot the dataseries before it is calculated?

Because cosmetic functions like PlotSeries are applied after the strategy has finished calculating DataSeries, processing trading signals etc. Normally I'd put the call after the DataSeries is calculated as you suggest. However, since this code is dynamically changing the plot color from Green to Red, this has to be handled by placing the PlotSeries call above SetSeriesBarColor. In any case, PlotSeries should do its job but the point is to apply a dynamic color scheme to the result.
QUOTE:
PS: Why Do you start with calculation at ATRPeriod * 3 ?

Answered by: WealthScript Programming Guide (Help menu), Indicators > Stability of Indicators.
profile picture

Eugene

#7
Both SuperTrend indicators added to our Community Indicators library v2010.12.
profile picture

Eugene

#8
ruediger78 asked:
QUOTE:
Hello everyone,

I would like to use CMCSuperTrend-Indicator in a Strategy. But I cant find the syntax anywhere. Tried to use it this way:
DataSeries supertrend = CMCSuperTrend.Series(st2.ValueInt, st1.Value);

But that produces an error.

That's because a required parameter (Bars bars) is missing. Also, the 2nd parameter is double and 3rd is integer, so I believe this should be correct (st1/st2 are not too descriptive though):
CODE:
Please log in to see this code.
profile picture

Eugene

#9
Musashi1970 asked in a duplicate thread:

Hi
is it possible to see the code for the community indicator "cmcSuperTrend", or alternatively/additionally the exact rules for the calculation, pls.
Thx
profile picture

Eugene

#10
Like with all Community/TASC indicators, you can see the code after logging in to the Wiki and downloading the project:

Download Community Indicators Source Code
Download Other Projects' Source Code
profile picture

Eugene

#11
hefrei asked in a duplicate thread:

Where do I find documentation on Community Indicator MTSuperTrendSeries? The link in WealthLab does not seem to work and I can't find anything in Wiki or Forum.
profile picture

Eugene

#12
The link will not work, it points to a part of the old (wl4) forum that is no longer available. Simply google for "SuperTrend indicator" or "SuperTrend Olivier Seban" - there are really tons of articles on the 3rd party sites out there.
profile picture

hefrei

#13
Thank you.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).