Forex
Google
New signals service!

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions


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 (2) Thread Tools Display Modes
  #1311 (permalink)  
Old 09-16-2008, 07:24 AM
marcelcorzo's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Colombia
Posts: 119
marcelcorzo is on a distinguished road
adding trailing stop to a pending orders script

I have the pending orders script attached below, but I don't know how can I attach the trailing stop function. Please help me.
The script creates 2 group of pending orders, each one has its own parameters. I want to put fixed trailing stop to the second group, because I'm tired to do this manually.
I don't want to use a trailingstop EA. just the modification of the script or another script.

My system is explained here, if someone is interested on it:
Pending grid system
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1312 (permalink)  
Old 09-16-2008, 07:52 AM
marcelcorzo's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Colombia
Posts: 119
marcelcorzo is on a distinguished road
Sorry, forgot to upload script
Attached Files
File Type: mq4 Pending_grid_multiple_1.0.mq4 (4.6 KB, 2 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1313 (permalink)  
Old 09-16-2008, 08:51 AM
bakhul's Avatar
Junior Member
 
Join Date: Jun 2008
Posts: 6
bakhul is on a distinguished road
need help

Please someone help me to make EA basic from this indicator.The order for buy or sell are in the next opencandle after the cycleidentifier was confirmed.Thank`s
Attached Files
File Type: mq4 CycleIdentifier.mq4 (12.6 KB, 8 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1314 (permalink)  
Old 09-18-2008, 01:44 PM
Junior Member
 
Join Date: Sep 2006
Posts: 2
evroza is on a distinguished road
How to send e-mail when TP or SL are reached

Hello to all. I have a question about sending e-mail through metatrader trading platform.
I have wrote an EA which send me mails when it OPEN buy or sell order with TP and SL predefined. But, I don't know how to send mail when TP or SL are reached.
Does Metatrader have an option about sending mails when it happens.
Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1315 (permalink)  
Old 09-18-2008, 03:37 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by evroza View Post
Hello to all. I have a question about sending e-mail through metatrader trading platform.
I have wrote an EA which send me mails when it OPEN buy or sell order with TP and SL predefined. But, I don't know how to send mail when TP or SL are reached.
Does Metatrader have an option about sending mails when it happens.
Thanks in advance.
Assuming you know the ticket number of the open order, just use the EA to detect when the order closes - OrderCloseTime() function will return a non-zero value when this occurs - then send the email as normal...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1316 (permalink)  
Old 09-18-2008, 04:18 PM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 83
tcl is on a distinguished road
Question hi All...

I'm really new in mql4, and trying to make an EA.

but, there is something bother me...

at the end of my testing, in the TYPE column said that the position "CLOSE AT STOP", what this mean?? is it a problem??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1317 (permalink)  
Old 09-18-2008, 04:56 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by tcl View Post
I'm really new in mql4, and trying to make an EA.

but, there is something bother me...

at the end of my testing, in the TYPE column said that the position "CLOSE AT STOP", what this mean?? is it a problem??
No problem, it just means the backtester has closed out any open orders that may exist, so that any open profits/losses are included in the final account-balance results...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1318 (permalink)  
Old 09-18-2008, 05:02 PM
Senior Member
 
Join Date: Feb 2007
Posts: 947
FerruFx is on a distinguished road
Quote:
Originally Posted by tcl View Post
I'm really new in mql4, and trying to make an EA.

but, there is something bother me...

at the end of my testing, in the TYPE column said that the position "CLOSE AT STOP", what this mean?? is it a problem??
When the test is finished, the tester have to close the opened order where it is.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!!
Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM
NEW: video presentation of the Probability Meter ... 24hrs action on the website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1319 (permalink)  
Old 09-18-2008, 10:27 PM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 83
tcl is on a distinguished road
Cool

Quote:
Originally Posted by FerruFx View Post
When the test is finished, the tester have to close the opened order where it is.

FerruFx
Quote:
Originally Posted by omelette View Post
No problem, it just means the backtester has closed out any open orders that may exist, so that any open profits/losses are included in the final account-balance results...
wow... hi FerruFx and omelette, thanks for yours quickly reply
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1320 (permalink)  
Old 09-19-2008, 07:33 AM
Junior Member
 
Join Date: Sep 2006
Posts: 2
evroza is on a distinguished road
Thanks omelette

Quote:
Originally Posted by omelette View Post
Assuming you know the ticket number of the open order, just use the EA to detect when the order closes - OrderCloseTime() function will return a non-zero value when this occurs - then send the email as normal...
Thank You. Now I see what experience means.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
histogram, forex, ZUP_v1.mq4

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
Posted By For Type Date
OzFx System:) - Page 639 This thread Refback 06-21-2008 10:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 12:46 PM


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



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