Forex



Go Back   Forex Trading > Discussion Areas > 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
  #1 (permalink)  
Old 07-05-2007, 12:34 AM
Member
 
Join Date: Sep 2006
Posts: 85
fxwealth is on a distinguished road
EA Needed

Hi, I need an EA to place a trade when the price reaches a particular level for buy and sell. Example, if the price is now 1.9700 I would need to tell the ea to place an instant order if the price reaches or is 1.9723 for a buy and if price reaches 1.9690 for a sell. I must be able to type in the price in the inputs section of the ea. Any help appreciated
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 07-05-2007, 01:06 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
Why not set BuyStop or SellStop instead? This way you won't get a re-quote.
__________________
MQL4 programming is easy ^^
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 07-05-2007, 02:04 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
Anyways there you go.
I'm surprised noone made it yet.
Use BuyPrice to set price at which to enter. Same for SellPrice. 0 by default.
BuyShift-SellShift - How high from the actual price we can go and still open a trade? For example BuyPrice = 1.3552 and last price jumped from 1.3551 to 1.3553. In normal conditions an order won't be opened. But in this way order will be opened if BuyShift was at least 1. 3 by default.
TP = takeprofit. 1000 by def
SL = stoploss. 1000 by def
TS = trailing stop. 0 by def. 0 means don't use at all. Starts trailing as soon as we move high enough to move the SL, doesn't wait till we get into profits.
Type - 0 for opening market orders by Bid and Ask. 1 - for stop orders. (buystop)
MMformula - formula for MoneyManagement, see comments.
BasicLot - if MMformula = 0, we only use this value.
MMRiskFactor - if MMformula = 1, we use this value. 0.1 means 0.1 of the balance.
LotPrecision -numbers after decimal for lots. I have 0.01 lots so its 2 by default.
Magic - magic number. Make sure its not the same as other experts

Orders are opened based on the day of year. So if your position lives for more than a year, in the same day of year as the day it was opened it will stop another position from being opened. I haven't seen that once though.

It won't report if there are any errors, so be careful. It won't retry opening orders if you get a re-quote. I don't use those things.
It will try to open order if there is no such order opened.
Oh and if you use it for different currencies, change magic number.

I'm surprised noone helped you yet...
Attached Files
File Type: mq4 BuyerSeller.mq4 (6.8 KB, 96 views)
__________________
MQL4 programming is easy ^^
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 07-05-2007, 03:11 AM
Member
 
Join Date: Nov 2006
Posts: 39
arecent is on a distinguished road
Quote:
Originally Posted by Shinigami View Post
Anyways there you go.
I'm surprised noone made it yet.
Use BuyPrice to set price at which to enter. Same for SellPrice. 0 by default.
BuyShift-SellShift - How high from the actual price we can go and still open a trade? For example BuyPrice = 1.3552 and last price jumped from 1.3551 to 1.3553. In normal conditions an order won't be opened. But in this way order will be opened if BuyShift was at least 1. 3 by default.
TP = takeprofit. 1000 by def
SL = stoploss. 1000 by def
TS = trailing stop. 0 by def. 0 means don't use at all. Starts trailing as soon as we move high enough to move the SL, doesn't wait till we get into profits.
Type - 0 for opening market orders by Bid and Ask. 1 - for stop orders. (buystop)
MMformula - formula for MoneyManagement, see comments.
BasicLot - if MMformula = 0, we only use this value.
MMRiskFactor - if MMformula = 1, we use this value. 0.1 means 0.1 of the balance.
LotPrecision -numbers after decimal for lots. I have 0.01 lots so its 2 by default.
Magic - magic number. Make sure its not the same as other experts

Orders are opened based on the day of year. So if your position lives for more than a year, in the same day of year as the day it was opened it will stop another position from being opened. I haven't seen that once though.

It won't report if there are any errors, so be careful. It won't retry opening orders if you get a re-quote. I don't use those things.
It will try to open order if there is no such order opened.
Oh and if you use it for different currencies, change magic number.

I'm surprised noone helped you yet...
do u have EA base on FX chaos?i search everywhere but can't find 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!
Reply With Quote
  #5 (permalink)  
Old 07-05-2007, 04:15 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 820
wolfe is on a distinguished road
Quote:
Originally Posted by arecent View Post
do u have EA base on FX chaos?i search everywhere but can't find it
It's ALL chaos my friend
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 07-05-2007, 06:03 AM
Member
 
Join Date: Nov 2006
Posts: 39
arecent is on a distinguished road
Quote:
Originally Posted by wolfe View Post
It's ALL chaos my friend
do u have FX chaos 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
  #7 (permalink)  
Old 07-05-2007, 11:31 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
I don't have it. I make my own EAs.
__________________
MQL4 programming is easy ^^
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 07-05-2007, 01:25 PM
Member
 
Join Date: Sep 2006
Posts: 85
fxwealth is on a distinguished road
Hi Shinigami, Thank you so much for the EA. It is truly appreciated. The reason I cannot use Buy/Sell Stop is because with my broker the price needs to be a minimum of 10pips away and sometimes I'm already within that range.

Thanks once again
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 07-05-2007, 01:35 PM
Member
 
Join Date: Sep 2006
Posts: 85
fxwealth is on a distinguished road
Hi Shinigami

I just tried ot the ea. I set a Buyprice at 2.0186 and a Sellprice at 2.0177. The EA opened a BUY and a SELL order at 2.0186. It was only meant to open the Buy. Could u please have a look at this. Many thanks
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 10-30-2007, 10:45 PM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 394
WNW is on a distinguished road
This does not work at all for me, no market or stop orders.
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
3xMAs#2 indicator ddoc Metatrader 4 19 10-31-2009 02:23 PM
Help Needed for EA Kntcbw General Discussion 1 02-08-2007 11:05 AM
help needed iliaazshareef Suggestions for Trading Systems 2 05-01-2006 07:27 AM
RSI - help needed Pyramid Suggestions for Trading Systems 20 04-30-2006 08:06 PM


All times are GMT. The time now is 02:26 AM.



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