Here is the code
  #21 (permalink)  
Old 12-15-2007, 08:51 AM
Freshman
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Jovager is on a distinguished road
Default Here is the code

Thanks Bossxero for your interest.

What I want it is a stop when the trade goes against me, i.e. when the conditions become the conditions opposite of the opening of the trade.
Best, if it's not too much workis would be a stop and reverse.

Thanks again.

Jo
Attached Files
File Type: mq4 Jovager.mq4 (9.4 KB, 31 views)
Sponsored Links EA Shark +1064% Return
Stock Market Crash? No Problem!
We Are Making Profits As Usual. More Info
Reply With Quote
  #22 (permalink)  
Old 01-20-2008, 05:42 AM
Freshman
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
lotuscapital is on a distinguished road
Default

Hi, I am looking for a really efficient expert advisor, maybe I can find it in the Fisherman. Is this web name related with Fisher Transform?
Reply With Quote
  #23 (permalink)  
Old 10-11-2008, 03:27 PM
Freshman
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
karama is on a distinguished road
Default

Quote:
Originally Posted by scorpion View Post
Somebody has coded an online version of auto mql builder for mt4. Check it out at Expert Advisor Builder for MetaTrader 4

Is online version easier to use?

Hi Scorpion,

I have use the EAbuilder and I find it very usefull indead but I have these 2 problems:

FIRSTly
SETUPS: If current bar is higher than previous bar then buy..

PROBLEM: The order will not be executed until the current bar is closed.
This makes my strategy redundant.(It must execute the trade
immediately the condiotion is fulfilled).
Secondly
I'll use an example in this one.(MACD CROSSING)
SETUPS: Buy when MACD is above signal line and I set my take profit to
30pips.
PROBLEM: The order is executed promptly(after the close of the current bar) and when I hit my 30 pips profit, a new position is opened which is not what I want.

I hope u understand me scorpion
Please help me on this coz I really like this EA builder but I am really stuck here!!!


Karama
Reply With Quote
  #24 (permalink)  
Old 10-12-2008, 06:47 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Karama, I can't help you. Simply because the product you're talking about is not under my control and development.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
Order Reliable
  #25 (permalink)  
Old 10-13-2008, 05:43 PM
Sophomore
 
Join Date: Jul 2006
Posts: 44
Thanks: 2
Thanked 4 Times in 3 Posts
Bill R is on a distinguished road
Default Order Reliable

Scorp - have you ever used the Order Reliable routines? Do you think the extra logic is worth it? I've missed some trades on IBFX with 146 trade context busy. Do you program for this, like put your trade in a loop while this condition is true?
Attached Files
File Type: mqh OrderReliable_V1_1_1.mqh (48.1 KB, 6 views)
Reply With Quote
  #26 (permalink)  
Old 10-17-2008, 12:34 PM
Freshman
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
almansor123 is on a distinguished road
Default

Hello. Im almansor form Malaysia.
Reply With Quote
  #27 (permalink)  
Old 10-17-2008, 03:42 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Quote:
Originally Posted by Bill R View Post
Scorp - have you ever used the Order Reliable routines? Do you think the extra logic is worth it? I've missed some trades on IBFX with 146 trade context busy. Do you program for this, like put your trade in a loop while this condition is true?
I've never used that. But all my EAs gracefully handle the busy context by using Sleep(10000) to give MetaTrader 10 seconds before allowing new order.

I suggest you don't put OrderSend() in a loop. It's useless, since price will have changed already when trade context becomes available. You will then get misquote errors. What you need to do is add Sleep(10000) after each and every OrderSend(), OrderModify(), and other order-related functions. Your EA will automatically retry itself.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
Why?
  #28 (permalink)  
Old 10-18-2008, 08:10 AM
Sophomore
 
Join Date: Jul 2006
Posts: 44
Thanks: 2
Thanked 4 Times in 3 Posts
Bill R is on a distinguished road
Default Why?

OK, but why would it automatically retry just because it waited 10 seconds? Is that documented somewhere, or did you find it out by trial and error?
Reply With Quote
  #29 (permalink)  
Old 10-18-2008, 04:34 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Most standard EAs will retry because it evaluates the order logics on every new tick, as MetaTrader executes the Start() method every tick.

The Sleep(10000) simply tells MetaTrader to pause executing the Start() method for 10 seconds. If ordering-related procedure is execute again within 5 seconds, MetaTrader will throw "too frequent" and "trade context busy" error.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #30 (permalink)  
Old 10-19-2008, 06:16 AM
Sophomore
 
Join Date: Jul 2006
Posts: 44
Thanks: 2
Thanked 4 Times in 3 Posts
Bill R is on a distinguished road
Default

Makes sense - I needed to change the reverse logic which said: if there's a signal and a position then delete the position and take a new one the opposite way - I pulled the delete and thake position apart, so it deletes the first time, but keeps trying to take the new position on every tick while the signal is hot, like you described. This is better logic - should have thought of that possibility myself. Thanks - Bill
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ZeroCode Sample: Create "10-Minute" Strategy Expert scorpion Tutorials, Tips & Tricks 16 04-14-2008 12:29 AM
ZeroCode Expert Running 3 Majors (?) Scicronys MetaTrader and ZeroCode 8 12-12-2007 09:58 AM
Support and Resistance Expert Advisor suffic369 Classified Ads 2 07-03-2006 07:57 AM
Calling out an expert gazuz MetaTrader and ZeroCode 1 10-21-2005 08:48 AM
Can not get the Expert to work...Help! jimbo61 MetaTrader and ZeroCode 2 08-19-2005 04:57 AM


All times are GMT. The time now is 06:38 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast