Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent 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
  #1 (permalink)  
Old 04-01-2007, 11:41 AM
Member
 
Join Date: Jan 2006
Posts: 48
lmx2000 is on a distinguished road
Good idea to create an EA for everybody

Hi all:

I have an good trading idea, I follow it manually and it is profitable/stable. I want to share the idea to everyone here, I hope the coding expert can write an EA for this idea and share the source code to everyone in this forum for future improvement. Not only the EX4 file but the mq4 file!

And hope everyone can give you suggest to my idea,any suggestion is welcome!

Now the first version EA comes,please help me to test it!

Thank a lot!
Attached Files
File Type: mq4 Liu2.mq4 (16.6 KB, 99 views)

Last edited by lmx2000; 04-25-2007 at 04:51 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
  #2 (permalink)  
Old 04-01-2007, 05:52 PM
Senior Member
 
Join Date: Jun 2006
Location: Italy
Posts: 187
w4rn1ng is on a distinguished road
Hi, i can write your EA, let me know..
Bye
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
  #3 (permalink)  
Old 04-05-2007, 03:18 PM
Member
 
Join Date: Jan 2006
Posts: 48
lmx2000 is on a distinguished road
Hi everyone,write the idea into english is a difficult thing,cost me time,but
as promised,please have a look:

My idea is some kind of hedge,use long/sell orders to take profit from
both side of the market.This idea use the method "grid+take interest".
Detail as below:


1.We just take the example by using EUR/USD.

2.We do not care now the price is what,for example the price is 1.3350.
We send the BuyStop and SellStop orders like this,
BuyStop 1.3355,1.3380,1.3405,13430,1.3455,1.3480,1.3505,1. 3530
SellStop 1.3345,1.3320,1.3295,1.3270,1.3245,1.3220,1.3195,1 .3170

Which means we opened a grid with BuyStop and SellStop with bothside 8 levels.You can see the BuyStop always start from the position 05.And the SellStop always start from the position 95.The Step is 25 pips.At the same time place8 buystop and 8 sellstop orders.And every minute the EA will check are there any orders has been executed? if one happened,just place a new buystop/sellstop order at the higher/lower position to ensure there are at least 16 pending orders.Of course pending orders will be more than 16,I will explain later.For example, the buystop order in 1.3355 has been executed, the EA will place a new buystop order in 1.3555(higher place).Why I choose to place 8 levels buystop/sellstop orders is the prevent the suddenly price move such as "Nonfarm Employment Change".

The step should be devided into 2 parameters.The first one is for the long side
(we can call it buystep). The second one is for the short side(we can call it sellstep). These 2 parameters can been changed in the EA's parameter, from 10---200.Use this funtion,we can keep the uncloed orders to earn interest.
For example,we set the buystep=25,set the sellstep=50.We trade gbp/jpy.
Then in any time we always have the unclosed GBP/JPY orders as the ratio 2:1. Buy order numbers always double than sell orders numbers.Then we always earn interest from the unclosed orders.

3.After one buystop/sellstop has been executed,place an reverse stop order at the same position.For example, buystop EUR/USD at 1.3355 executed.
Now price is 1.3365. Should place an Sellstop at the position 1.3345 at once. The same theory for the short side and the long side.From now you can understand the max pending order will more than 16.

4.Ea should has the funtion to protect the MIN profit. We can call this parameter MinProfit,this funtion can insure us to earn the setting
profit when the price begin to go against us after we already have some profit.

5.Ea should has the funtion "moveing/trailing stop",to insure we can catch the big move.

6.The every important point is to prevent from reopen orders at the same position. For example, buystop EUR/USD at 1.3355 executed,then place Sellstop at the position 1.3345,before send this order,the EA should check is there already one sell order executed at this positon and has not been closed?If so,do not send the Sellstop order.The EA should also check is there already one sellstop order has been sent?

7.The EA should has the parameter "lots",permit the lots from 0.01 to larger numbers, in order to use with InterBank FX.

8.The EA should can deal with the symbol like "EURUSDm",this kind of symbol exist in the InterBank FX mini account.

9.There are other parameters can be used,I will also give you a similar EX4 file,you can study it.

10.And there is an demo account running that EX4 file,you can go to look it's trading record.The account is "Login : 1414788 Investor : bho6fzo (read only password) " in InterBank FX.
Attached Files
File Type: ex4 BSSS.ex4 (8.7 KB, 83 views)

Last edited by lmx2000; 04-05-2007 at 03:23 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
  #4 (permalink)  
Old 04-05-2007, 03:22 PM
Member
 
Join Date: Jan 2006
Posts: 48
lmx2000 is on a distinguished road
You can see someone already write the EA, but he do not share the source code.I post the idea,hope the expert write out the EA and share to everyone,so we can listen the suggestion from lots of people and improve the EA.
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
  #5 (permalink)  
Old 04-05-2007, 03:24 PM
Member
 
Join Date: Jan 2006
Posts: 48
lmx2000 is on a distinguished road
Quote:
Originally Posted by w4rn1ng
Hi, i can write your EA, let me know..
Bye
Hi w4rn1ng:

Sorry not to answer you for so long time,above is the idea.
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
  #6 (permalink)  
Old 04-05-2007, 04:27 PM
Senior Member
 
Join Date: Mar 2006
Posts: 137
criss73 is on a distinguished road
i attached the EA to a chart and i get an alert saying "zero divide" why?
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
  #7 (permalink)  
Old 04-05-2007, 05:09 PM
Member
 
Join Date: Jan 2006
Posts: 48
lmx2000 is on a distinguished road
Quote:
Originally Posted by criss73
i attached the EA to a chart and i get an alert saying "zero divide" why?
Hi criss73:

Somebody also said for the "zero divide" problem,but I have not see this problem when I run the EA.Because I do not have the source code.So.....I don't know how to fix the problem. By the way,Can you help to create the EA?
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
  #8 (permalink)  
Old 04-05-2007, 09:19 PM
Senior Member
 
Join Date: Jun 2006
Posts: 278
giapel is on a distinguished road
test

hi, w4rn1ng
i attach ea but gives me error :zero divide.

giapel
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
  #9 (permalink)  
Old 04-05-2007, 09:41 PM
Senior Member
 
Join Date: Mar 2006
Posts: 137
criss73 is on a distinguished road
"By the way,Can you help to create the EA?"


unfortunately i dont how, sorry
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
  #10 (permalink)  
Old 04-08-2007, 01:53 AM
Junior Member
 
Join Date: Apr 2007
Posts: 1
richardyu is on a distinguished road
Lightbulb Interested with your idea

I am an experienced programmer but now just get started to write EA with MQL4. I have written an EA similar to your idea which I developed the strategy by myself, however the backtest was not good. I would like to discuss with you about your idea and create an EA for it based on my old EA, please let me know your contact info if you too are interested with my suggestion.
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


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
Help to create EA using this system ! ivanencinas Expert Advisors - Metatrader 4 4 05-23-2007 12:57 AM
Please create an EA matrixebiz Expert Advisors - Metatrader 4 0 11-28-2006 08:19 PM
Create an Auto EA matrixebiz Metatrader 4 2 11-24-2006 05:23 PM


All times are GMT. The time now is 08:07 AM.



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