Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2006, 02:58 PM
Junior Member
 
Join Date: May 2006
Posts: 9
eatrader is on a distinguished road
Need Help on Straddle advisor

The advisor does not put the Straddle (buy and sell) in at the proper time on InterbankFX charts. It was programmed it to put in a Buy Stop and Sell Stop simotaniously at the TimeAHour, TimeAMin. Can someone help with the problem?? I am willing to give the strategy once fixed I use to one who fixes it that I use live trading now averaging 15 pips per day.
Attached Files
File Type: mq4 News.mq4 (11.0 KB, 78 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-17-2006, 08:27 AM
igorad's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 820
igorad is on a distinguished road
Hi,
I have fixed your EA. Small bug was in spread calculation.
Try to test and any proposal please.

Igor
Attached Files
File Type: mq4 News_v1.mq4 (11.0 KB, 176 views)
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-11-2006, 02:24 PM
Junior Member
 
Join Date: Jul 2006
Posts: 5
hugobossv8 is on a distinguished road
How to use this?

Could you please post instructions on how to use this?

What Time frequency should it be used on? 1 min, 5 min?
What do the input parameters mean? Such as MagicNumber, TimaAHour, TimeAMin, GMTShift, LiveHour, LiveMin?

I'm sorry, I am new to using the Expert Advisors. I have successfully compiled and attached your EA to a chart, but I can't seem to get it to make any trades.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-11-2006, 04:21 PM
Junior Member
 
Join Date: May 2006
Posts: 9
eatrader is on a distinguished road
Hi Igor,

Sorry about the lag in testing it.
It works on the times but I tried when I had it built to not put in more than 1 Buy Stop and Sell Stop when the time is hit.

It puts in more when the S/L or T/P is hit or the pendings are deleted. I want it to put in 1 Buy Stop and Sell Stop at the time set then not put in anymore trades til the time comes around again.

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-13-2006, 02:49 AM
Member
 
Join Date: Aug 2006
Location: singapore
Posts: 40
eooojj is on a distinguished road
MQL programming help if possible

Quote:
Originally Posted by igorad
Hi,
I have fixed your EA. Small bug was in spread calculation.
Try to test and any proposal please.

Igor
Hi Igor,
Sorry to trouble you but i am reallly stuck in this MQL programming thing and hope if you can help.
How do i add a code into my MT4 EA if i only want the trades to be active for a certain time period of a day...say maybe only to trade from (broker time- 7pm to 9pm daily)?
Many thanks in advance if you are able to help...
Grateful,
Ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-13-2006, 08:13 AM
Administrator
 
Join Date: Sep 2005
Posts: 16,701
Blog Entries: 137
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by eooojj
Hi Igor,
Sorry to trouble you but i am reallly stuck in this MQL programming thing and hope if you can help.
How do i add a code into my MT4 EA if i only want the trades to be active for a certain time period of a day...say maybe only to trade from (broker time- 7pm to 9pm daily)?
Many thanks in advance if you are able to help...
Grateful,
Ed
You may use this code:

Code:
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
to be inserted after int
Code:
start()
For example:

Code:
int start()
{
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
And in the settings of EA type the following:

Code:
extern bool UseHourTrade = True;
extern int  FromHourTrade = 19;
extern int  ToHourTrade = 21;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-13-2006, 12:17 PM
Arthur_1_'s Avatar
Member
 
Join Date: Apr 2006
Posts: 60
Arthur_1_ is on a distinguished road
this is a good straddle EA.

i used it always on the 1min chart

the settings:

CTCBN = Numbers Candles to check Before News For determining High & Lows , when it is 1 it check 2 candles the current candle and the 1 last one

SecBPO = Seconds Before News Which EA Will Place Pending Orders

SecBMO = Seconds Before News Which EA Will Stop Modifying Orders

STWAN = Seconds To Wait After News to Delete Pending Orders

OCO = One Cancel The Other , will cancel the other pending order if one of them is hit

BEPips = Pips In profit which EA will Move SL to BE+1 after that



but i think the last version has a bug and you cant change the lot size in the EA. or you change the lot size it in the code at this place and compile it:

// lot at this point is number of standard lots
return(0.10);

maybe someone here who can fix it?
Attached Files
File Type: pdf Amazing_Forex_System.pdf (630.7 KB, 146 views)
File Type: mq4 AmazingEA-1.1.8.mq4 (21.8 KB, 101 views)

Last edited by Arthur_1_; 11-13-2006 at 12:20 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-13-2006, 03:09 PM
Member
 
Join Date: Aug 2006
Location: singapore
Posts: 40
eooojj is on a distinguished road
Quote:
Originally Posted by newdigital
You may use this code:

Code:
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
to be inserted after int
Code:
start()
For example:

Code:
int start()
{
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
And in the settings of EA type the following:

Code:
extern bool UseHourTrade = True;
extern int  FromHourTrade = 19;
extern int  ToHourTrade = 21;
Hi NewDigital,

I can't thank you enough! thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-16-2006, 02:42 PM
Member
 
Join Date: Aug 2006
Location: singapore
Posts: 40
eooojj is on a distinguished road
mins with hours

Quote:
Originally Posted by newdigital
You may use this code:

Code:
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
to be inserted after int
Code:
start()
For example:

Code:
int start()
{
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
And in the settings of EA type the following:

Code:
extern bool UseHourTrade = True;
extern int  FromHourTrade = 19;
extern int  ToHourTrade = 21;
Hi NewDigital,

Thanks for your help..
The example you gave is from 1900hrs to 2100hrs.
What if i would like to trade from 1930 to 2130hrs?
Thanks in advance....sorry if my post is dumb...cos i am new to mql.

warmest regards,
ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-04-2007, 04:37 PM
Member
 
Join Date: Aug 2006
Location: singapore
Posts: 40
eooojj is on a distinguished road
Favor needed

Hi NewDigital,

Thanks for your previous help again.
Would like to ask you a favor again as i could not find the code to include if i want to close all trades at the end of the day like at 2355hrs?
Thanks in advance.

warmest regards,
ed

Quote:
Originally Posted by newdigital
You may use this code:

Code:
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
to be inserted after int
Code:
start()
For example:

Code:
int start()
{
if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
And in the settings of EA type the following:

Code:
extern bool UseHourTrade = True;
extern int  FromHourTrade = 19;
extern int  ToHourTrade = 21;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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
Straddle OCO Money Duck Expert Advisors - Metatrader 4 9 05-02-2007 04:46 AM
straddle news releases crawfg75 Metatrader 4 5 08-25-2006 06:35 PM
straddle news releases crawfg75 General Discussion 1 08-24-2006 05:20 PM
What do you think about STRADDLE method? dellan General Discussion 6 08-18-2006 06:59 PM


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



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