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

Postby superleo » Tue Jan 03, 2012 3:58 am

can you create strategy based on trend line break.
User avatar
superleo
 
Posts: 91
Joined: Mon Oct 17, 2011 5:45 am

Re: Auto Trend Lines

Postby Apprentice » Wed Jan 04, 2012 7:09 am

Probably, can you define an algorithm that would be use by such strategy.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto Trend Lines

Postby superleo » Wed Jan 04, 2012 7:43 am

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.
User avatar
superleo
 
Posts: 91
Joined: Mon Oct 17, 2011 5:45 am

Re: Auto Trend Lines

Postby mfoste1 » Wed Jan 04, 2012 7:47 am

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

Postby arindam89 » Fri Aug 31, 2012 1:53 am

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

Postby speakinmymind » Sun Jun 30, 2013 8:34 pm

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: 320
Joined: Thu Feb 28, 2013 8:18 am

Re: Auto Trend Lines

Postby Apprentice » Wed Jul 03, 2013 2:36 am

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

Re: Auto Trend Lines

Postby speakinmymind » Wed Jul 03, 2013 6:59 am

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: 320
Joined: Thu Feb 28, 2013 8:18 am

Re: Auto Trend Lines

Postby speakinmymind » Sat Jul 20, 2013 3:41 pm

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: 320
Joined: Thu Feb 28, 2013 8:18 am

Re: Auto Trend Lines

Postby Apprentice » Mon Jul 22, 2013 4:14 am

Try Updated Version.
Will ask the development team to try to make TS integrated tool.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: ahmedalhosenyy and 49 guests