Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
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
  #1 (permalink)  
Old 04-18-2007, 04:21 PM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 394
WNW is on a distinguished road
Minimum Trailing Stop?

Hello all,
Since MT only accepts a manual trailing stop of 15, if I code a TS in an EA for less than 15 will it be accepted?
Thanks.
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
  #2 (permalink)  
Old 04-18-2007, 05:43 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 723
Kalenzo is on a distinguished road
Quote:
Originally Posted by WNW
Hello all,
Since MT only accepts a manual trailing stop of 15, if I code a TS in an EA for less than 15 will it be accepted?
Thanks.
I think you should use MarketInfo function with MODE_STOPLEVEL switch to check what is the minimum stop on current cross.
__________________
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
  #3 (permalink)  
Old 04-18-2007, 05:54 PM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 394
WNW is on a distinguished road
Thanks for the reply, but I'm not a programmer and I have no idea how to do that...
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
  #4 (permalink)  
Old 04-18-2007, 09:53 PM
Junior Member
 
Join Date: Aug 2006
Posts: 14
ThomasB is on a distinguished road
It will accept a TS as small as the smallest allowed SL. If you do it manually (in your code, so your code closes the trade based on loss, not by the SL) it will allow it as small as you want.
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
  #5 (permalink)  
Old 04-19-2007, 09:59 AM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 723
Kalenzo is on a distinguished road
Quote:
Originally Posted by ThomasB
It will accept a TS as small as the smallest allowed SL. If you do it manually (in your code, so your code closes the trade based on loss, not by the SL) it will allow it as small as you want.
Ture, but you can get REQUOTE info from your brooker, or when modifying order sl you can get error : INVALID STOPS.

And here is an example how to check minimum SL:
Comment("Minimum SL for "+Symbol()+" is "+MarketInfo(Symbol(),MODE_STOPLEVEL));

Put this line in any indicator that works, at the beginning of the start function and you will see what will happen .
__________________
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
  #6 (permalink)  
Old 04-19-2007, 04:00 PM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 394
WNW is on a distinguished road
Thanks much, I'll give it a try.
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
  #7 (permalink)  
Old 05-04-2007, 01:53 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Can someone explain to me how Trailing stop works.
Thanks
I just understand Trailing Stops yet.
If I have a trade with a TP=15 SL=15 and TS=6
How does the TS of 6 effect this trade? TS doesn't override TP does it?
If the price moves in my favor 6 pips does it move my SL up to it now so if my TP of 15 isn't hit at least I'll still break even with a TP of 6? is that right?
I've read elsewhere that it just moves the SL up 6 pips.
Thanks
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
  #8 (permalink)  
Old 05-04-2007, 02:08 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 723
Kalenzo is on a distinguished road
[mistaken here, look at the message above]
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................

Last edited by Kalenzo; 05-04-2007 at 02:33 PM.
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
  #9 (permalink)  
Old 05-04-2007, 02:22 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by Kalenzo
No.
It will work like that:

When order will be sent lets say that the price will be 1.2000 and you trade long.
your tp level will be 1.2015
your stop 1.1985

YOUR TRAILING IS 6, so that means that you will be trailing the stop loss level by 6 pips, so when you will be at 1.2007 you will move stop loss to 1.1986 and so on, so to gain 6 pips (exit with 6 pips on stop) you need to have price on 1.2012, then your sl will be moved to 1.2006.

Of course you need to add spread to this and so on... But the basic idea of trailing stop is like above.
Ok, why you say when price gets to 1.2007 SL only moved up 1pip to 1.1986? did you mean to say that when TS is hit (1.2006) SL will move up 6pips to 1.1991? not understanding when you say when price is at 1.2012 SL moved up 21pips to 1.2006 ?? soory, trying to get it
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
  #10 (permalink)  
Old 05-04-2007, 02:32 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 723
Kalenzo is on a distinguished road
Quote:
Originally Posted by matrixebiz
Ok, why you say when price gets to 1.2007 SL only moved up 1pip to 1.1986? did you mean to say that when TS is hit (1.2006) SL will move up 6pips to 1.1991? not understanding when you say when price is at 1.2012 SL moved up 21pips to 1.2006 ?? soory, trying to get it
HM.... I think I made a mistake here, and get you wrong, probably because I just got up... and I'm a little sleepy yet.

Lets see how usual traling stop works.
Examples again long, at 1.2000

Lets say that we will be using trailing stop provided by metatrader.
The minimum value of such stop is 15 pips (in the platform).

And it works like that:

When you will reach +1 pip profit above your trailing target then it will move your stop loss by the amount that you specified as trailing stop. So if you will reach +16 pips profit then your stop loss will be moved to Bid-trailingstop and it will be break even in this case so +1 pips so 1.2001, otherwise it will stay where it was put before.

So eg. if you start with 1.2000 long and TP=50 SL = 50 ts = 15 then when the price will be at 1.2016 your stop will be moved from 1.950 to 1.2001

Until that he will stay at 1.1950.


BUT


You can also implement your own trailing stop, which will work immediately, without waiting till the price will go above your trailing target (15 pips+) and if you do, then it will work like that:

LONG, TP=50,TS=15,SL=50 at 1.2000

Your stop will be put at 1.950, then lets say that the price went to 1.2001, your stop was moved to 1.986 (Price - traling stop level), and so on.

Got it now?
__________________
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


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATR Trailing Stop - Help Boiseboy Indicators - Metatrader 4 59 11-06-2009 02:24 PM
Trailing Stop EA newdigital Expert Advisors - Metatrader 4 68 11-01-2009 09:32 AM
How to set a trailing stop??? theolive9 Metatrader 4 1 12-06-2006 12:12 AM
EA trailing stop JoZo Metatrader 4 6 11-10-2006 02:34 PM


All times are GMT. The time now is 11:01 PM.



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