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 05-16-2007, 09:01 PM
Senior Member
 
Join Date: Feb 2007
Posts: 175
Flytox is on a distinguished road
Virtual StopLoss

Hello traders,
i wanted to know if there is any EA to put sl only when the level is reached not before. I'am aware of stop hunting. It's not so easy, because during high volatility, the stop order could be not executed if there is no counterpart, at this moment the EA have to close at the market price .
Any solution ??
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-17-2007, 01:43 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 704
wolfe is on a distinguished road
I use some type of code like this:

if(OrderSelect(ticketa,SELECT_BY_TICKET)==true)
{
if(OrderOpenPrice()-sl1*Point>Bid)// sl1=stop loss in pips
{
OrderClose(OrderTicket(),OrderLots(),MarketInfo(Or derSymbol(),MODE_BID),999,Red);
}
}

Maybe a bad example, but yes it is possible.
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
autotrade - stoploss sminic Metatrader 4 1 02-05-2007 10:05 AM
Variable Stoploss gkozlyk Expert Advisors - Metatrader 4 2 06-06-2006 12:34 PM


All times are GMT. The time now is 02:57 PM.



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