Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
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

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 09-14-2008, 12:06 AM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
Sorry, Here is mq4 file.
Attached Files
File Type: mq4 SlopeDirectionLine_v2.mq4 (10.8 KB, 164 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!
Reply With Quote
  #12 (permalink)  
Old 09-14-2008, 03:34 AM
Senior Member
 
Join Date: Nov 2006
Posts: 307
luxinterior is on a distinguished road
Quote:
Originally Posted by faizfakhirin View Post
is it has the ebook how to build EA?
Not quite sure what this has to do with this thread but what ebook are you referring too exactly?

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
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!
Reply With Quote
  #13 (permalink)  
Old 09-14-2008, 04:45 PM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 261
ajk is on a distinguished road
The slope direction line repaints at least 2 bars. Backtesting always
make it look pretty but in real life is limited at best in value.
I would add the slope out put to an ea not build around it.

Last edited by ajk; 09-14-2008 at 04:48 PM.
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!
Reply With Quote
  #14 (permalink)  
Old 09-14-2008, 10:40 PM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
Here is the improved version of "SlopeDirectionLine_EA".

This EA has many substantial changes.

1. Entry Logic has changed.
First of all. This EA enter the market only when signal changes.
(previous version enter the market anytime following the trend)
This change allow you to use any kind of Stop System (initial, trailing, period BreakOut, paraboric, etc.).

To tell the truth, I think that Entry Signal itself is not so important,
but considering the advice from Mr. ajk,
This EA uses 5 bars including current one (see the code if you want to know details).
I hope it works better in the real market.

But, as you know, what makes Trading System robust is not Entry Signal but Stop System --- How to Exit the market.

2. You can place initial stoploss (ATR Multiple, Fixed Pips, or No Stoploss)
Placing Initial stoploss allows you "Real" Position Sizing.

3. You can use Trailing Stop (ATR Multiple, Fixed Pips, Reserve Profit, or No Trailing).

4. You can use MA Filter.
If you use this filter, This EA enter the market only when MA direction and Signal direction is the same.
You can change MA Period and Method.

*All the function above can be turn off or change settings.
So you can test the System with various settings and you can see how it works.

Note that functions above does not always result good.
For example, using MA Filter may avoid false Signals, but it reduces your entry chances also.
Tight stoploss (initial or trailing or other stop method) may protect your equity
and secure your profit, but you may miss a rare Large Profit Trade.
Contraly, if you don't use these kind of stop systems or filters, you may meet unbearable large drawdown.

Balance with expectable Profit against (un)expectable Drawdown is what Trader must consider most.
You must find your best Risk / Return ratio yourself.

Anyway enjoy.

*To use this EA, you need a modified version of "SlopeDirectionLine" indicator.
Original indicator has an array named trend[] only used in culcuation procedure.
This value (1 or -1) directly represents trend.
I added a buffer to hold trend[] value so that EA can use this value.
You can see the value of latest 5 bars on the top left of the chart window.
Attached Files
File Type: mq4 SlopeDirectionLine_v3.mq4 (18.7 KB, 148 views)
File Type: mq4 Slope Direction Line Modified.mq4 (3.2 KB, 177 views)

Last edited by latimeria; 09-17-2008 at 10:52 AM.
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!
Reply With Quote
  #15 (permalink)  
Old 09-15-2008, 09:38 AM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
I found a bug in the EA I have posted last time.

EA ignores Exit Signal when trend has changed.
So I fixed it.
(You can replace it with any other stop system if you want.)

Also I added a small change.
You can choose microlot account from <Miscellaneous Settings>.

File name is the same. So Just overwrite it.
Attached Files
File Type: mq4 SlopeDirectionLine_v3.mq4 (18.9 KB, 175 views)

Last edited by latimeria; 09-15-2008 at 09:55 AM.
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!
Reply With Quote
  #16 (permalink)  
Old 09-15-2008, 11:18 AM
Junior Member
 
Join Date: Dec 2007
Posts: 2
extremfx is on a distinguished road
Thanks Latimeria for your EA !

Is it possible for you to create a new version to active order when price penetrated the SDL and add TakeProfit choice. I would use it on 15 min

Last edited by extremfx; 09-15-2008 at 11:20 AM.
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!
Reply With Quote
  #17 (permalink)  
Old 09-15-2008, 12:07 PM
Senior Member
 
Join Date: Mar 2006
Posts: 310
vladv is on a distinguished road
This is a very good idea of turning an indicator into an EA!I will try it with some of my own custom indies,too........
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!
Reply With Quote
  #18 (permalink)  
Old 09-19-2008, 01:18 AM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
Hi, extremfx and everyone.

According to extremfx's request, I made EAs for (maybe) short period Traders.

But It's a nothing but a test version.
So don't blame me even if it doesn't seem profitable.

I have not optimized any settings, so find better settings if you are intersted in.
These EAs are designed to be able to change many settings.
If you find settings and TimeFrame that work well, report here. It may be useful for someone.

notes:

1. Entry Signals
These EAs have 2 selectable different (or reversal) Entry System.
Entry Timing is the same. It's When Price crossed the Line(SDL or MA).
I'm not sure This is what extremfx meant or not.

System 1 uses the Line as BreakOut.
System 2 uses the Line as Resistance.
(see the code for details)

It means, 2 system bet on the opposite direction at the same timing.
So I named these EAs <Reversal>.
(You can use only 1 system at the same time. If you want to test both systems on several same symbol (currency pair) charts at the same time, change the MagicNumber.)

Anyway, You'll see what these EAs do if you test it.

2. Take Profit
I usually don't place takeprofit because it causes missing strong and continuous trend.
And I don't know any effective and reasonable logic to decide takeprofit target that is not obscure.
(If anyone knows, tell me)

But, anyway I added a function to place TakeProfit.
There are 4 TakeProfit Method.
No TakeProfit, Stoploss Multiple, Fixed Pips and S&R(*need another Custom Indicator).

Deciding TP target by S&R may be just a joke.
<Support and Resistance> Indicator looks good, but it uses iFractals
and It seems to took 2 or 3 bars to update S&R and seems unstable.
Regard it as Just a test.

3. Week End Close Function
This function allows you to close position at specified server time on Friday.
It may be useful for short period traders who don't want to hold any positions on WeekEnd.

4. Show Settings by Comment
I added a function to show Settings on the chart window.
These EAs have many settings.
So It will be very convenient when you examine settings.

5. MA version
Not only SDL version, I made a MA version.
You can modify MA settings to your heart's content.
Like this, You can replace entry logic with any kind of them.

6. These EAs open trade only bar opening also.
I just don't want to waste my time on tick by tick backtesting...that's why.

Any impressions are welcome.
enjoy.

< requirements (to make these EAs work) >
1. < Slope Direction Line modified 2 > Indicator
*One of the reason that makes using this Indicator troublesome on EA is
SDL value is housed in 2 different arrays.
So I modified it again (or waste author's effort to change color by trend...).
Now modified version of Indicator holds SDL value in an array(buffer 0) and easy to handle.

2. < Support and Resistance > Indicator
Indicator that shows recent High and Low.
Attached Files
File Type: mq4 SDLvsPrice_Reversal_v1.mq4 (28.2 KB, 95 views)
File Type: mq4 MAvsPrice_Reversal_v1.mq4 (27.6 KB, 89 views)
File Type: mq4 Slope Direction Line Modified 2.mq4 (2.9 KB, 132 views)
File Type: mq4 Support and Resistance.mq4 (1.5 KB, 90 views)

Last edited by latimeria; 09-19-2008 at 08:06 PM.
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!
Reply With Quote
  #19 (permalink)  
Old 09-21-2008, 09:31 AM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
I added some functions to "SDLvsPrice_Reversal" and this is the last version.

From the beginning, I see nothing special about this indicator called SDL (In my opinion, it is just as useful as many other popular indicators are).

I tried to make an EA just because this indicator changes color by trend and I have not handled that kind of indicator, and thought it to be helpful for someone who want to try EA with this indicator, that's all.

I got several new ideas while making these EAs and that makes me feel satisfied, but that's nothing to do with this indicator.
So, I'm sorry but I won't improve these EAs anymore.

Feel free to revise if you would like to.

It may not be useful for happy EA collectors just looking for EAs
that "seem profitable as it is" and "downloadable for free",
I think my EA can be fairly good basis of making robust Trading System.
(Entry Signals don't matter much as I said over and over, use your favourite ones)

enjoy.

last version note:

1. Profit Achievement Stop
This is a function to exit the market when profit reaches fixed percentage against your account balance.
This can be used as alternative Take Profit Method.
If your account balance is $10000 and achievement rate is 1.0, EA close position when current profit exceeds $100.

2. Trade time function
If you use this function EA only trade (enter the market) only in specified period of the day.
For example, if you don't want to enter the market on Asian session, you can avoid that period.
This kind of anomaly sometimes works.
Attached Files
File Type: mq4 SDLvsPrice_Reversal_v2.mq4 (32.5 KB, 100 views)

Last edited by latimeria; 09-21-2008 at 09:34 AM.
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!
Reply With Quote
  #20 (permalink)  
Old 09-23-2008, 09:53 AM
Junior Member
 
Join Date: Dec 2007
Posts: 2
extremfx is on a distinguished road
Thanks latimeria

I'll try this...
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!
Reply With Quote
Reply

Bookmarks

Tags
slope direction line expert advisor, SlopeDirectionLine_v3, TrendEnvelopes_v2, slope direction, slope direction line, expert advisor, slope direction line ea, forex


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 create Expert Advisor for this wonderful indicator torreseemee Setup Questions 3 07-24-2008 07:37 AM
How to make an expert advisor run other expert advisors in MQL4 activetc Metatrader 4 0 08-30-2007 05:29 AM
How to stop expert advisor from trading, when profit is made joko75 Expert Advisors - Metatrader 4 9 05-27-2007 01:16 PM
Need an indicator made hidethereal Indicators - Metatrader 4 12 09-28-2006 07:10 PM


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



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