TrendStrength Indicators
Author: Compaqster
Creation Date: 2/3/2011 2:53 AM
profile picture

Compaqster

#1
Where can I find this indicator or information about it?
http://store.activetradermag.com/trendstrengthindicator-1.aspx
profile picture

Eugene

#2
On the old site:

ChartScript Search Page
WealthScript Code Library

Look for "strength" or "TrendStrength".
profile picture

Compaqster

#3
profile picture

Eugene

#4
Check out the 2nd link in my reply.
profile picture

Compaqster

#5
I'm getting some strange results
http://wl4.wealth-lab.com/cgi-bin/WealthLab.DLL/libraryview?item=396
CODE:
Please log in to see this code.
profile picture

Eugene

#6
This code should match the WL4 indicator:
CODE:
Please log in to see this code.
profile picture

Compaqster

#7
I hope i wrote it right =)
http://wl4.wealth-lab.com/cgi-bin/WealthLab.DLL/libraryview?item=395
CODE:
Please log in to see this code.
profile picture

Compaqster

#8
profile picture

Eugene

#9
In your TrendStrengthB, this line isn't correct:
CODE:
Please log in to see this code.

Replace with:
CODE:
Please log in to see this code.
profile picture

Eugene

#10
Either Jose made a mistake or it was by design, but his moving average calculation is different across TrendStrengthB and TrendStrengthD:
CODE:
Please log in to see this code.
I don't know whether he supposed them to be the same or not, but these lines of code are not interchangeable and will produce different numbers. Not "wildly" different because neither the shape of the indicator nor the position relative to the zero line changes but the numbers do.
profile picture

Eugene

#11
I thought, why not have them in Community.Indicators so TrendStrength A through D will appear in the upcoming release.

No time for the E and F though but they will be accepted should some Wealth-Lab community member decide to share their code.
profile picture

swuzy

#12
I'd like to give TrendStrengthA and TrendStrengthB a try, but do not see any WL6 examples.


http://www2.wealth-lab.com/WL5Wiki/TrendStrengthA.ashx

http://www2.wealth-lab.com/WL5Wiki/TrendStrengthB.ashx


The previously referenced links in the thread above have been deleted obsoleted by version change.

Can you provide WL6 coding example(s) please?

profile picture

Eugene

#13
The Wiki description is pretty clear stating that application of all the oscillators is as simple as checking for their value above/below a threshold. Therefore you should have no trouble taking examples from other indicators like RSI. Nevertheless, I've created simple examples and updated the Wiki (the "C" and "D" indicators do not require their own examples):

TrendStrengthA
TrendStrengthB
profile picture

swuzy

#14
Thank you.

Being a data series, I tried to "Synchronize" it, but that flags an error.
It does not require synchronization, or is there a different way to synchronize it?
profile picture

Eugene

#15
Or you're doing it incorrectly. Which can be determined after providing the exact error message text, your code line if it's a compile error, and data loading settings (symbols, range, bar scale).
profile picture

swuzy

#16
I have,

CODE:
Please log in to see this code.


and ...

CODE:
Please log in to see this code.


Without the synchronize line it compiles, runs and generates trades, etc.
With the synchronize line it says

QUOTE:
error CS0266 @(145,11): Cannot implicitly convert type 'WealthLab.DataSeries' to 'Community.Indicators.TrendStrengthA". An explicit conversion exists (are you missing a cast?)
profile picture

Eugene

#17
When you use Synchronize, it's better defined as a DataSeries object:

CODE:
Please log in to see this code.
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).