public trend algorithms rules-condition
Author: sccosmas
Creation Date: 3/14/2009 6:11 PM
profile picture

sccosmas

#1
I am new at Wealth Lab Pro. I have 5.3.44.0 thru Fidelity.
How can I add a trend condition thru the canned conditions or as a publicly-available C# code to use with my entry and exit rules?
profile picture

Eugene

#2
The question is too general, the choice of conditions is big, and the realization will depend on what trend condition do you prefer.
profile picture

TrendCatcher

#3
Hi Eugene,
You answer logically and you truly are an intellectual and helping in nature. Keep it up.
profile picture

sccosmas

#4
Eugene,
Thanx for your feedback. I will try and be more specific.
I want to use an indicator or write a C# program to identify if the last several time periods indicate an uptrend. The number of last several time periods is 5 to 20.
How can I implement it in WLP?
Thanks
profile picture

Cone

#5
That's a start. Now what, exactly, defines an uptrend? The one thing about programming is that it must be precise.
profile picture

sccosmas

#6
Cone,
my uptrend definition: higher highs and higher lows.
How many of each? it would be nice if it was selectable.
For starters, two each. thanks.
profile picture

Cone

#7
How do find your higher highs and higher lows? What's the method? What are the parameters? What indicators are used? Are there constraints? (i.e., a peak has to have at least 10 bars before the next peak)

Incidentally, the TrendB and TrendQ indicators (in Version 4, not yet available in the Version 5 TASC Indicator library) actually do a pretty good job of indicating a trend and its "quality". I need to add those to the "To Do" list.
profile picture

sccosmas

#8
Cone,
This was the basic question I had about WLP.
1. Are there any WLP indicators that can identify an uptrend as defined above?
should I assume the answer is no?

2. I heard that Tradestation offers such functionality which is associated with back-testing.
I am not a Tradestation user so I do not know for sure.
So I wanted to know what analogous capability WLP offers.

3. "What's the method?" I do not have one. I am looking for one.
profile picture

Cone

#9
Wealth-Lab is a technical analysis platform. It only does what you program it to do. Any indicator you can think of that can be programmed can be programmed in Wealth-Lab. Really there are no limits.

Of course there are about 150 or 200 indicators (standard and from TASC magazine) that come installed. More are added about every 2 or 3 months. You can mix them in a practically infinite number of ways to determine if there are trends. I'm trying to get you to tell me which one of these infinite number of trend indicators you're looking for. (See Eugene's first reply.)

Incidentally, any of the TA platforms offer pretty much have the same indicators, and, all have some way to program your own custom indicators. It's the other features and tools that cause you to decide to use one over the other.
profile picture

sccosmas

#10
Cone, thanks for the explanation.
Maybe I can ask my question in a different way.

Does WLP offer some "software routine" to identify the highest high in the last 20 time periods?

Yes, I can also write one myself (...after I grow my expertise with WLP of course).
profile picture

Eugene

#11
QUOTE:
my uptrend definition: higher highs and higher lows.
How many of each? it would be nice if it was selectable.
For starters, two each. thanks.


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

Eugene

#12
QUOTE:
Does WLP offer some "software routine" to identify the highest high in the last 20 time periods?

Of course: Highest.Series( Bars.High, 20 )[bar]

And while you're looking for a trend-identifying approach, here's a very simple one:

CODE:
Please log in to see this code.


Thankfully, in the market one doesn't have to be a quant to tell there's a trend. It's something that a 8-year old can say looking at a chart. ;)
profile picture

sccosmas

#13
Cone, thank you so much.
this is what I was looking for.
appreciate your help.
profile picture

Cone

#14
Sure thing, but it was Eugene who provided the code ;)
profile picture

sccosmas

#15
Eugene,
thank you for forwarding the routines to me.
I appreciate it.
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).