Page 1 of 9

Auto Trend Lines

PostPosted: Thu Apr 15, 2010 3:51 am
by Apprentice
Auto Trend Lines.png
Auto Tend Lines


I give you, Auto Trend Lines Indicator.

Auto Tend Lines options.PNG
Auto Tend Lines options

The indicator has several options.

Tolerated - How many candles that does not respect the line is tolerated (predefined value 0)

Test whole - Test whole frame, do, the market respects the trend line.

Frame Size - How many periods before the last candle, indicator starts drawing the lines.

Fractal - As a starting point for the trend lines indicator use fractals, otherwise may use any candle.

Close or High and Low- Ignore the line if the High / Low value of the period exceeded the trend line, otherwise, it uses closing price, when checking.

Divergence / Convergence (0-100)
0 -The trend lines are moving away from the closing price
100 - The trend line are Convergencing

Recommendations, use fractals, fractals are simpler for the computer to calculate.

Suggestions are welcome, bugs, are possible.

Request
Please try out the options, share with us the settings that give you the best results,
so i could make a lite version, auto version.

Re: Auto Trend Lines

PostPosted: Fri Apr 16, 2010 3:11 am
by Apprentice
Auto Trend Lines.lua
Updated
(9 KiB) Downloaded 9923 times

Re: Auto Trend Lines

PostPosted: Fri Apr 16, 2010 3:20 am
by Apprentice
Thank you, Nikolay, on your help with code optimization, I would not succeed without you.

Especially for your help with the Update segment, probably would not have thought of that.
In Draw function, I have more or less adapted to your code or I thought to make something like that.

Re: Auto Trend Lines

PostPosted: Fri Apr 16, 2010 6:14 am
by Apprentice
RSI.png
Oscilator


Michael, as you requested, I have prepared Auto trend indicator which can be applied to oscillators, indicators.

Auto Trend Lines Oscilator.lua
Auto Trend Lines
(8.52 KiB) Downloaded 5917 times


I did not have time to fully adapt the code, yet.

The next task is obvious, Linking these two indicator in one, in order to obtain an indicator,
which shows the convergence and divergence between the indicators and the closing price.

Re: Auto Trend Lines

PostPosted: Wed Oct 20, 2010 2:24 am
by david.gol
Is it possible to extend the lines into past and future?
Thank you

Re: Auto Trend Lines

PostPosted: Wed Oct 20, 2010 3:40 am
by Apprentice
Added to developmental cue.

Re: Auto Trend Lines

PostPosted: Wed Oct 20, 2010 4:55 am
by DS0167
Hello,

Nice one, thank you.

But I provided a mq4 for translation into lua for Tom Demark Lines, could you please tell me (us) when you will find time to translate it ?

Thank you in advance.
Kind regards,
DS0167

Re: Auto Trend Lines

PostPosted: Wed Oct 20, 2010 6:10 am
by Apprentice
The indicator is in the developmental cue.
A colleague took this job.
Hopefully soon.

Re: Auto Trend Lines

PostPosted: Thu Oct 21, 2010 3:52 pm
by DS0167
Thank you Apprentice. I am so eager on Tom Demark lines :)

Meanwhile I am running with Auto Trend Lines and you did (again) a nice job on this one ;)

Thank you for all the hard work you are doing for us :)

Kind regards
DS0167

Re: Auto Trend Lines

PostPosted: Sun Oct 31, 2010 8:14 am
by cmsdeveloping
Hello,

My trading time frame is 4h / 30min ..how to set the best default "frame size" ?


thanks