Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs 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
  #1311 (permalink)  
Old 09-16-2008, 07:24 AM
marcelcorzo's Avatar
Senior Member
 
Join Date: Oct 2007
Location: Colombia
Posts: 238
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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: 238
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, 10 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
  #1313 (permalink)  
Old 09-16-2008, 08:51 AM
bakhul's Avatar
Junior Member
 
Join Date: Jun 2008
Posts: 20
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, 21 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
  #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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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: 87
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #1318 (permalink)  
Old 09-18-2008, 05:02 PM
Senior Member
 
Join Date: Feb 2007
Posts: 986
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
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
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
  #1319 (permalink)  
Old 09-18-2008, 10:27 PM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!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 10:18 AM.



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