This is read-only version of AFL library entry. Ability to add user formulas
and comment is only available from members-only area.
Details:
Formula name:
Trend Detection
Author/Uploader:
Graham Kavanagh - gkavanagh [at] e-wire.net.au
Date/Time added:
2005-01-10 18:55:44
Origin:
Keywords:
Trends
Level:
medium
Flags:
indicator
DISCLAIMER: Most formulas present in AFL on-line library are submitted
by the users and are provided here on an "as is" and "as available" basis.
AmiBroker.com
makes no representations or warranties of any kind to the contents or the operation
of material presented here. We do not maintain nor provide technical support
for 3rd party formulas. Description:
Plots coloured bars for direction of current trend, green for rising, red for falling. Exploration included to find first bar of new direction.
Param included to vary the number of periods for detecting small to long term trends.
I am using beta version 4.66.2, but believe this will work with last offical version.
Graham Kavanagh gkavanagh [at] e-wire.net.au 2005-07-29 22:12:17
This published code comes from a more complex arranbgement that I personally use. Some lines I did not bother changing due to having to change the same variables through the code.
In the original PrdD and PrdL were separate values from when I was developing the system.
permax just stopped the results including anythin prior to the largest period so that my backtesting doid not include the first up signal, if the backtest include the chart beginning, which was just when the indicators kicked in with values.
If nothing else it gives you the arrangement to fiddle more easily with the code.
Ed Ramirez rprs530 [at] yahoo.com 2005-09-18 03:00:37
That Looks nice.What Code can I use if I would Like to see a line trend instead of the barchart output Method? Thanks.
Graham Kavanagh gkavanagh [at] e-wire.net.au 2005-09-18 22:11:16
change stylebar to styleline
Felix felixthang [at] gmail.com 2006-04-08 00:05:32
I am using 4.79 I got errors and not able to display the indicator. please help me.
Graham Kavanagh gkavanagh [at] e-wire.net.au 2006-04-08 02:47:01
check wordwrapping after you paste into editor
clicking Verify Syntax button should show which word is in wrong place
Thanks Graham,good work,but can you make the to work with the outomatic analysis please
Regards
AO hulksweider [at] verizon.net 2007-02-10 01:42:04
get the following error - have seen this in a few other files I have downloaded -
Unknown identifier at line 5, column 13:
function Rise
------------^
any help would be appreciated -
Dmitrii Zuzen mitrizze [at] d3z.com [at] d3z.com 2007-04-15 06:07:47
Ne nasovsem a navsegda
TP
2008-01-18 13:38:12
Funny, the turnig points almost coincide with Parabloc SAR signals.
Another Brian blog.tipster.ca 2008-03-05 11:49:27
When you use BUY / Sell, and plot the signals, the period is stuck at twelve. The buy / Sell signals do not occur at the same bar (or even close) to the red / green displayed on the screen.