Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
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
  #1531 (permalink)  
Old 07-20-2009, 07:47 AM
Junior Member
 
Join Date: Mar 2008
Posts: 4
indiatimes is on a distinguished road
Trade Open & Close Alert

Hi! Lux

Thank you very much for your quick reply. I found an EA called MailAlertOnOrderClose.mq4 which I have downloaded from forexfactory Forum and I am attaching it for your reference. I tried it just now by applying it on another chart of the same currency of my original EA and it is working but it gives me an alert on close of the trade only. Is there a possibility that it can be modified so that it gives alert for both open and close.
Or if you have any other EA or script which can do this, I shall be really greatful. I really appreciate your time.

Thanks

Sophia
Attached Files
File Type: mq4 MailAlertOnOrderClose.mq4 (3.3 KB, 6 views)
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
  #1532 (permalink)  
Old 07-20-2009, 07:55 AM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Quote:
Originally Posted by indiatimes View Post
Hi! Lux

Thank you very much for your quick reply. I found an EA called MailAlertOnOrderClose.mq4 which I have downloaded from forexfactory Forum and I am attaching it for your reference. I tried it just now by applying it on another chart of the same currency of my original EA and it is working but it gives me an alert on close of the trade only. Is there a possibility that it can be modified so that it gives alert for both open and close.
Or if you have any other EA or script which can do this, I shall be really greatful. I really appreciate your time.

Thanks

Sophia
I'm busy with paying clients at the moment but you can do it yourself with a little bit of effort. Use the link in my sig to learn the basics and then help file and looking at other EA's should help you with the rest.

Good luck

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
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
  #1533 (permalink)  
Old 07-20-2009, 08:11 AM
Junior Member
 
Join Date: Mar 2008
Posts: 4
indiatimes is on a distinguished road
Trade open & Close Alert

Thank You Very Much!
I hope you understand being a newbie I do not have enough confidence right now whether I will be able to do it or not. I appreciate you for encouraging me to try myself. I shall spend some time and try to figure out and if I will be able to do it I shall surely Send you a Thank you again or else I might trouble you if I am stuck anywhere. I hope you won't mind. And sure I do understand you need to prioritize the paid customer. I appreciate your professionalism.

Much Regards,

Sophia
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
  #1534 (permalink)  
Old 07-20-2009, 10:39 PM
Junior Member
 
Join Date: Mar 2008
Posts: 4
indiatimes is on a distinguished road
Free E Course

Hi! Lux
When I am trying to apply for the free e course at the link given by you, a GetResponse window appears which says "This account has expire limits. Please contact owner of this campaign."

Sophia
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
  #1535 (permalink)  
Old 07-20-2009, 11:51 PM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Thanks for the heads up. I've just raised an issue with GR's support so hopefully they'll fix the problem soon.

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
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
  #1536 (permalink)  
Old 07-22-2009, 03:11 AM
Junior Member
 
Join Date: Jul 2009
Posts: 3
LukeB is on a distinguished road
Elapsed Time Calculation

Well, I'm really new - started trying to write a 'learning' EA before I new there was a course - I've got one working, using some indicators etc. But, I must be making something much too hard..... This is what I want: int elapsedTimeInSeconds = ElapsedTime(datetime dateTime1, datetime dateTime2);
Well, heading off to look at the course....
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
  #1537 (permalink)  
Old 07-22-2009, 03:59 AM
Junior Member
 
Join Date: Jul 2009
Posts: 3
LukeB is on a distinguished road
Elapsed Time Calculation

I think I found my own answer in the date-time lesson. It assures that the time is in seconds since (some date in the past), so a simple subtraction will work. So, int elapsedTime = ElapsedTime (datetime dateTime1, datetime dateTime2) { int elapsedTime = dateTime1 -dateTime2; return(elapsedTime); } should give the results I'd like. I'll do some prints and see what I'm getting, as it doesn't seem right.
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
  #1538 (permalink)  
Old 07-26-2009, 07:20 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 845
increase is on a distinguished road
In an EA Is there any way to get the strategy tester to send emails? emails work in real time, but not in tester
__________________
New to Forex? Get all you need for Free at my site Click Here
You can also get my Hot Forex System (scroll to the bottom of the page): Click Here

Last edited by increase; 07-26-2009 at 07:27 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
  #1539 (permalink)  
Old 07-26-2009, 04:22 PM
Junior Member
 
Join Date: Mar 2009
Location: Slovenia
Posts: 11
Chistabo is on a distinguished road
Order of parameters in code

Ola!

Thanks, all you CodeMasters for your help.

One question:
is coding
{
OrderModify (OrderTicket(), OrderOpenPrice(), Bid - Point * TrailingStop, OrderTakeProfit(), 0, Green);
return(0);
}

same as coding
{
OrderModify (OrderTicket(), OrderOpenPrice(), Bid - TrailingStop * Point, OrderTakeProfit(), 0, Green);
return(0);
}
???
Does MQL calculates by written order or by mathematic logic - product (*) and divide (/) has priority before + and -?

Thank you,

Have fun,

Simon
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
  #1540 (permalink)  
Old 07-26-2009, 04:35 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 724
Kalenzo is on a distinguished road
Quote:
Originally Posted by Chistabo View Post
Ola!

Thanks, all you CodeMasters for your help.

One question:
is coding
{
OrderModify (OrderTicket(), OrderOpenPrice(), Bid - Point * TrailingStop, OrderTakeProfit(), 0, Green);
return(0);
}

same as coding
{
OrderModify (OrderTicket(), OrderOpenPrice(), Bid - TrailingStop * Point, OrderTakeProfit(), 0, Green);
return(0);
}
???
Does MQL calculates by written order or by mathematic logic - product (*) and divide (/) has priority before + and -?

Thank you,

Have fun,

Simon
If you are not sure you can allways code like this:

{
OrderModify (OrderTicket(), OrderOpenPrice(), Bid - (TrailingStop * Point), OrderTakeProfit(), 0, Green);
return(0);
}
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
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

Tags
forex, histogram, JMASlope, ToR 1.20, ZUP_v1.mq4


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


All times are GMT. The time now is 03:11 AM.



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