Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 (1) Thread Tools Display Modes
  #21 (permalink)  
Old 01-03-2008, 02:20 PM
killakx3 killakx3 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 9
killakx3 is on a distinguished road
buy and sell EA or Indicator

I was wondering if any of you forex gurus could lead me in the right path of getting a EA that would execute a buy and sell at the same time? Thanks in advance!

Very Respectfully,
killakx3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 02-01-2008, 12:21 PM
matrixebiz's Avatar
matrixebiz matrixebiz is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,039
matrixebiz is on a distinguished road
This EA isn't based on MACD correct? Just set time to open trades?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 02-01-2008, 02:53 PM
Bongo Bongo is offline
Senior Member
 
Join Date: Oct 2005
Posts: 281
Bongo is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
This EA isn't based on MACD correct? Just set time to open trades?
Yes, you are correct. Don't have nothing to do with MACD.
Only Time is important here.
B.
Attached Files
File Type: htm TimeBasedEA_BT.htm (23.5 KB, 60 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 02-07-2008, 08:53 AM
daet daet is offline
Member
 
Join Date: Jun 2006
Posts: 69
daet is on a distinguished road
Timebased EA

There seems to be a problem with this EA where the magic number setting does not work. I have it trading over mutipal pairs with different magic numbers but only one trade is taken on one pair. Can someone help..?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 03-04-2008, 09:06 PM
mina mina is offline
Junior Member
 
Join Date: Mar 2007
Posts: 16
mina is on a distinguished road
help getting rid of a function in skyline's "Daily Scalping EA"

I need some help modifying the ea to stop closing orders daily and/or weekly at a specific time
I just want it to close the trades only at TP or SL
this should be easy for a programmer but for a complete noob like me it's been like hell for the last 6 hours
any help please ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 04-08-2008, 08:25 PM
matrixebiz's Avatar
matrixebiz matrixebiz is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,039
matrixebiz is on a distinguished road
EA not working right, please check

Can someone take a look at this Time Based EA and figure out why most of the times it doesn't trade when you tell it to and some time it will initiate on one currency but not another. Weird

Thanks


EDIT: looks like if the time is not exactly then it doesn't trade. Using IBFX noticed that the time jumps and skips seconds. How can I fix this?
Attached Files
File Type: mq4 TimeBasedEA.mq4 (2.9 KB, 24 views)
File Type: mq4 Test TimeBasedEA.mq4 (3.0 KB, 22 views)

Last edited by matrixebiz : 04-08-2008 at 09:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 04-09-2008, 02:48 AM
ajk's Avatar
ajk ajk is offline
Senior Member
 
Join Date: Dec 2005
Posts: 211
ajk is on a distinguished road
I didnt write it but it takes your hour 1-24 multiples x 100 and adds your minute. one only knows what that totals.


ct = Hour() * 100 + Minute();

it also opens your buy at the open above the high/low.... not much for an ea.

Last edited by ajk : 04-09-2008 at 02:50 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 04-09-2008, 03:46 AM
matrixebiz's Avatar
matrixebiz matrixebiz is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,039
matrixebiz is on a distinguished road
Quote:
Originally Posted by ajk View Post
I didnt write it but it takes your hour 1-24 multiples x 100 and adds your minute. one only knows what that totals.


ct = Hour() * 100 + Minute();

it also opens your buy at the open above the high/low.... not much for an ea.
OK, thanks. All I want is an EA to open a trade at a specified time and thats it. Can you write one for me?
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 04-09-2008, 04:14 AM
Flying Fish Flying Fish is offline
Junior Member
 
Join Date: Sep 2007
Posts: 3
Flying Fish is on a distinguished road
How specific would you like it?

You could say..
Code:
if (Hour() == 5 && Minute() == 30)
{
 ...
}
or how about a 3 minute window?

Code:
if (Hour() == 5 && MathAbs(Minute() - 30 ) < 3)
{
 ...
}
You could also add Seconds() to the code, but I think that would be too restrictive since an EA only runs once per tick and you don't know when that tick will occur (during the slow times it may be awhile...)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 04-09-2008, 10:41 AM
matrixebiz's Avatar
matrixebiz matrixebiz is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,039
matrixebiz is on a distinguished road
Quote:
Originally Posted by Flying Fish View Post
How specific would you like it?

You could say..
Code:
if (Hour() == 5 && Minute() == 30)
{
 ...
}
or how about a 3 minute window?

Code:
if (Hour() == 5 && MathAbs(Minute() - 30 ) < 3)
{
 ...
}
You could also add Seconds() to the code, but I think that would be too restrictive since an EA only runs once per tick and you don't know when that tick will occur (during the slow times it may be awhile...)
What is this actually doing? I don't understand what this code is doing.
Thanks you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/8067-help-how-write-simple-ea-buy-sell-specific-time.html
Posted By For Type Date
درخواست Indicator و expert - صفحه 84 - Sarmaye Forums This thread Refback 03-23-2008 11:36 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting price trend independent of a specific time frame gee Metatrader 4 4 02-24-2007 04:53 PM
Anyone want to write a simple EA? Kaper Suggestions for Trading Systems 6 10-29-2006 10:36 PM
A Simple Buy/Sell Script excite2 Expert Advisors - Metatrader 4 8 07-18-2006 03:16 AM
Simple question of determining the time of day Fishtank Metatrader 4 2 04-04-2006 04:12 AM


All times are GMT. The time now is 09:45 AM.