Size:
Color:
Size:
Color:
Size:
Color:
Check out the 2nd link in my reply.
Size:
Color:
Size:
Color:
This code should match the WL4 indicator:
CODE:
Please log in to see this code.
Size:
Color:
Size:
Color:
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
Size:
Color:
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):
TrendStrengthATrendStrengthB
Size:
Color:
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?
Size:
Color:
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).
Size:
Color:
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?)
Size:
Color:
When you use Synchronize, it's better defined as a DataSeries object:
CODE:
Please log in to see this code.
Size:
Color: