## 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

### Re: Auto Trend Lines

can you create strategy based on trend line break.

superleo

Posts: 77
Joined: Mon Oct 17, 2011 5:45 am

### Re: Auto Trend Lines

Probably, can you define an algorithm that would be use by such strategy.

Apprentice
FXCodeBase: Confirmed User

Posts: 19000
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Auto Trend Lines

sir,
trend line break in trend direction as follows:

indicators:
1. ema period 34 , time frame H1
2. auto trend line indicator with default setting (fractal yes, price applied to high/ low, time frame m5)

buy:

price > ema 34,
price cross over upper trend line

sell:

price < ema 34
price cross under lower trend line

close buy:

price cross under lower trend line or
price cross under ema 34

close sell:

price cross over upper trend line or
price cross over ema 34

thank you sir.
Last edited by superleo on Wed Jan 04, 2012 7:56 am, edited 1 time in total.

superleo

Posts: 77
Joined: Mon Oct 17, 2011 5:45 am

### Re: Auto Trend Lines

Apprentice wrote:Probably, can you define an algorithm that would be use by such strategy.

when the trendline is above price and price rises to touch it, then enter short

when the trendline is lower than price and price falls to touch it, then enter long
mfoste1

Posts: 66
Joined: Thu Oct 21, 2010 6:55 pm

### Re: Auto Trend Lines

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

hi great work keep it up
can i apply this on the volume tick ???/ if not can you please code it
it will be really helpful
thanks
by
arindam roy
arindam89

Posts: 53
Joined: Mon Dec 12, 2011 5:39 am

### Re: Auto Trend Lines

Could you please add the ability to highlight lines that are close to 45 degree angles?

Even better would be if the closer they are to 45 degrees the darker red the line is and the further out the line is from 45 degrees, the lighter the color would be, thanks.
speakinmymind
FXCodeBase: Graduate

Posts: 307
Joined: Thu Feb 28, 2013 8:18 am

### Re: Auto Trend Lines

Hm ...
How to determine the 45 degrees on chart?
This may vary for different X / Y axis ratios.
Per period slope, Pips per period would be feasible.

Apprentice
FXCodeBase: Confirmed User

Posts: 19000
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Auto Trend Lines

You make a good point. I didn't think about that. I would be happy to use the method you came up with.
speakinmymind
FXCodeBase: Graduate

Posts: 307
Joined: Thu Feb 28, 2013 8:18 am

### Re: Auto Trend Lines

Apprentice wrote:
RSI.png

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

Auto Trend Lines Oscilator.lua

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.

Is there any chance this code could be developed further for speed and/or performance? It seems this indicator is the only cause of TS freezing on me, unfortunately I rely very heavily on this indicator.
speakinmymind
FXCodeBase: Graduate

Posts: 307
Joined: Thu Feb 28, 2013 8:18 am

### Re: Auto Trend Lines

Try Updated Version.
Will ask the development team to try to make TS integrated tool.

Apprentice
FXCodeBase: Confirmed User

Posts: 19000
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Indicators

### Who is online

Users browsing this forum: Bing [Bot] and 17 guests