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 06-08-2007, 10:28 AM
icek's Avatar
Member
 
Join Date: Dec 2006
Posts: 43
icek is on a distinguished road
Sleep function in EA between orders

Hi,

I'm trying to modify an EA. The conditions to close the trade are various in this EA but i need help on 1 case ONLY.

How to dow to make a pause of 10mn when a trailingstop is reached, to avoid the EA to take again a new position immediately after ?

I don't want the EA to make a pause for all the stops but ONLY if the trailingstop is reached.

If anyone has an idea or a sample of code... thanks a lot.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-11-2007, 03:56 PM
Junior Member
 
Join Date: Jan 2007
Posts: 26
echnaton is on a distinguished road
you can also easy build a variable in a if() question that will change after a event, easy
__________________
Excused my bad English
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-11-2007, 04:10 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,268
Blog Entries: 106
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
Just found this thread http://www.forex-tsd.com/metatrader-...-function.html
May be it will help.
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
modify orders and close pending orders bkgridley Questions 8 05-23-2007 09:49 PM
Programming question - sleep after a loss trade. aleksd Expert Advisors - Metatrader 4 12 08-12-2006 03:42 AM
problem with sleep() function smoisb Metatrader Programming 3 05-20-2006 04:40 AM
Function to effectively close all orders. christan Questions 1 01-02-2006 05:26 PM


All times are GMT. The time now is 10:39 PM.



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