Forex



Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

 
 
Thread Tools
 
Old 01-25-2009, 06:44 PM
renegado's Avatar
Junior Member
 
Join Date: Jan 2009
Posts: 21
renegado is on a distinguished road
Lightbulb Support and resistance trendline trading

My idea is to build an EA that will take a user input for a resistance and a support trendline by either inserting 2 price & time points for each line or by simply drawing on the chart (if possible that would be absolutely awesome). If slopes are negative the algorithm would automatically go short when at or near resistance (user chooses actual number of pips or a percentage of the pip distance between resistance & support lines) and close that position at/near support, etc for uptrending/lateral markets.

I've been trading this strategy manually on the daily EUR/USD chart and have been quite satisfied with the results. The pain is having to be watching closely when close to those levels, so an algorithm would be a greatest hand. I'm a complete beginner with respect to coding, so I totally welcome your help.

I can see that the resistance/support inputting is going to be my greatest challenge, so if you have an idea of how to do that please let me know!

As soon as I have something coded I'll make sure to post it! (code included..!)

Last edited by renegado; 03-17-2009 at 06:21 PM. Reason: Correcting nomenclature
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 01-25-2009, 07:55 PM
renegado's Avatar
Junior Member
 
Join Date: Jan 2009
Posts: 21
renegado is on a distinguished road
wrong thread title

sorry for my incorrect nomenclature (and perhaps incompetence in being able to change a thread title) but the title should have actually been

"SIMPLE SUPPORT AND RESISTANCE TRENDLINE TRADING"

If an admin could do that I would appreciate it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 01-25-2009, 08:46 PM
Walander's Avatar
Senior Member
 
Join Date: Aug 2008
Posts: 577
Walander is on a distinguished road
The problem with methods is that the trendlines will always be subjective, unless you choose particular trend lines of certain distances from current Time[0]

If you want to even start this project, I suggest you extensively define your definition of trendlines, not just the most recent high high and low low or high low, and low high.
__________________
http://www.Vancouver-Forex.com

http://www.forex-tsd.com/general-dis...er-create.html

Want to ask a question about fundamental or technical trading? Shoot me a PM- but do your homework first.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 01-25-2009, 08:56 PM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 480
cockeyedcowboy is on a distinguished road
renegado

It may be possible to just draw the line on the chart at the points you like them and have the EA act upon it. The trick is to name the line to a name that the EA will look for and if it exist will then act upon it as you would like (that is, programed it to act).


Keit


Quote:
Originally Posted by renegado View Post
My idea is to build an EA that will take a user input for a resistance and a support line by either inserting 2 price & time points for each line or by simply drawing on the chart (if possible that would be absolutely awesome). If slopes are negative the algorithm would automatically go short when at or near resistance (user chooses actual number of pips or a percentage of the pip distance between resistance & support lines) and close that position at/near support, etc for uptrending/lateral markets.

I've been trading this strategy manually on the daily EUR/USD chart and have been quite satisfied with the results. The pain is having to be watching closely when close to those levels, so an algorithm would be a greatest hand. I'm a complete beginner with respect to coding, so I totally welcome your help.

I can see that the resistance/support inputting is going to be my greatest challenge, so if you have an idea of how to do that please let me know!

As soon as I have something coded I'll make sure to post it! (code included..!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 01-25-2009, 11:13 PM
renegado's Avatar
Junior Member
 
Join Date: Jan 2009
Posts: 21
renegado is on a distinguished road
Sure thing

Quote:
Originally Posted by Walander View Post
The problem with methods is that the trendlines will always be subjective, unless you choose particular trend lines of certain distances from current Time[0]

If you want to even start this project, I suggest you extensively define your definition of trendlines, not just the most recent high high and low low or high low, and low high.
But I don't want the trendline picking to be a mechanical process because I especially enjoy doing that part! I understand that it becomes a bit more complicated to be able to backtest, but I'm ok with that. :

Would you know anything about how the algorithm accesses the names of the the lines we draw and the values associated with it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 01-25-2009, 11:17 PM
renegado's Avatar
Junior Member
 
Join Date: Jan 2009
Posts: 21
renegado is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy View Post
renegado

It may be possible to just draw the line on the chart at the points you like them and have the EA act upon it. The trick is to name the line to a name that the EA will look for and if it exist will then act upon it as you would like (that is, programed it to act).


Keit
Would you happen to have any code examples or suggest some EAs? I'll go after them!

Otherwise, I would like to ask you the same I asked Walander: "Would you know anything about how the algorithm accesses the names of the the lines we draw and the values associated with it?"

Many thanks for the help, guys!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 01-26-2009, 04:20 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 480
cockeyedcowboy is on a distinguished road
renegado


start by learning goto the dictionary and read about object funtions and pay mind to the object find function.. when you draw a line on the chart just call it by a name that your ea will be looking for. any ways read and you'll get the idea of what needs done.

CockeyedCowboy
Attached Images
File Type: gif Clipboard02.gif (96.0 KB, 1131 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 01-26-2009, 04:28 AM
renegado's Avatar
Junior Member
 
Join Date: Jan 2009
Posts: 21
renegado is on a distinguished road
Thank you bunches!

Quote:
Originally Posted by cockeyedcowboy View Post
renegado


start by learning goto the dictionary and read about object funtions and pay mind to the object find function.. when you draw a line on the chart just call it by a name that your ea will be looking for. any ways read and you'll get the idea of what needs done.

CockeyedCowboy
Keit, I've actually JUST found some related code and am really excited about devouring it (I'll do it after reading about objectfind) tonight.

When I end my research can/should I cite my sources (I don't wanna get banned!) or just post the original EA codes?

Thank you once again for the help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 02-25-2009, 07:11 AM
renegado's Avatar
Junior Member
 
Join Date: Jan 2009
Posts: 21
renegado is on a distinguished road
Research results

I ended up finding a ton of material (see attachment!), but also quit this project for now as I have become more interested in learning other systems.

Included are:


Scorpion's TrendlineOrder - emmits alert only.mq4
Trendcapture.mq4
trendlineAlerter1.0.mq4
TrendMeLeaveMe.mq4
Manual Trendline Trader.mq4
Trendline Trader.mq4
(and 2 different versions of it!)


If you don't know how those EAs operate, simply google their file names and you'll find the relevant documentation.

Many thanks to all for the support in the thread, and may the probability gods of trading be on your side!

Renegado
Attached Files
File Type: rar Trendline trading EAs.rar (19.4 KB, 151 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 03-09-2009, 12:25 PM
ooandajb's Avatar
Member
 
Join Date: Dec 2008
Posts: 55
ooandajb is an unknown quantity at this point
Instead of posting content I am posting the URL of the source that clarify your doubts about the Supports and Resistance Trading..
Using Support and Resistance in Forex Trading

Happy Trading
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 

Bookmarks

Tags
support and resistance
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Support and Resistance Effectively newdigital General Discussion 757 11-14-2009 09:34 PM
MTF support/resistance indicator RickW00716 Indicators - Metatrader 4 16 06-24-2009 05:03 AM
Yearly Support and Resistance+ Pivot pfxgroup Metatrader 4 6 12-30-2007 03:01 PM


All times are GMT. The time now is 11:34 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.