Auto Trend Lines

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Auto Trend Lines

Postby Apprentice » Thu Apr 15, 2010 3:51 am

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.
Last edited by Apprentice on Fri Apr 16, 2010 3:34 am, edited 10 times in total.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto Trend Lines

Postby Apprentice » Fri Apr 16, 2010 3:11 am

Auto Trend Lines.lua
Updated
(9 KiB) Downloaded 9925 times
Last edited by Apprentice on Wed Jun 16, 2010 3:47 pm, edited 6 times in total.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto Trend Lines

Postby Apprentice » Fri Apr 16, 2010 3:20 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto Trend Lines

Postby Apprentice » Fri Apr 16, 2010 6:14 am

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 5921 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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto Trend Lines

Postby david.gol » Wed Oct 20, 2010 2:24 am

Is it possible to extend the lines into past and future?
Thank you
david.gol
 
Posts: 1
Joined: Wed Oct 20, 2010 2:23 am

Re: Auto Trend Lines

Postby Apprentice » Wed Oct 20, 2010 3:40 am

Added to developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto Trend Lines

Postby DS0167 » Wed Oct 20, 2010 4:55 am

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
DS0167
 
Posts: 86
Joined: Mon Aug 09, 2010 2:22 pm

Re: Auto Trend Lines

Postby Apprentice » Wed Oct 20, 2010 6:10 am

The indicator is in the developmental cue.
A colleague took this job.
Hopefully soon.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto Trend Lines

Postby DS0167 » Thu Oct 21, 2010 3:52 pm

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
DS0167
 
Posts: 86
Joined: Mon Aug 09, 2010 2:22 pm

Re: Auto Trend Lines

Postby cmsdeveloping » Sun Oct 31, 2010 8:14 am

Hello,

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


thanks
cmsdeveloping
 
Posts: 14
Joined: Wed Sep 08, 2010 10:18 am
Location: North Italy

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 48 guests