Dual trailing stop?
  #1 (permalink)  
Old 12-14-2006, 04:45 PM
gazuz's Avatar
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 8 Times in 5 Posts
gazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to all
Default Dual trailing stop?

Is this possible? putting two trailingstops on one expert?

I know that I can put one on the actual MT4 platform but maybe i could code one as well? The reason for it is because I want to make different trailing stops that close different amount of lots..

Thanks
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
Reply With Quote
The following users have thanked gazuz for useful post above:
  #2 (permalink)  
Old 12-14-2006, 09:01 PM
Freshman
 
Join Date: Nov 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
trevman is on a distinguished road
Default

i'm fairly sure you could with one stop referenced to 1 order and the other stop to the other order
__________________
CodersGuru MQL4 course
Reply With Quote
  #3 (permalink)  
Old 12-15-2006, 01:45 PM
Ravique's Avatar
Super Moderator
 
Join Date: Sep 2004
Posts: 404
Thanks: 2
Thanked 1 Time in 1 Post
Ravique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to allRavique is a name known to all
Send a message via Yahoo to Ravique
Default

Yeah, but the thing is that the trailing stop for one order is needed. Two orders opened will not be euqual, some time will pas after opening the irst and the second one and the price ay change + the order execution time can be different.
__________________
Regards,
Ravique
Reply With Quote
  #4 (permalink)  
Old 12-15-2006, 04:33 PM
gazuz's Avatar
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 8 Times in 5 Posts
gazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to all
Default

I just meant a trailing stop to close part of one order. For example I go long on the EURUSD but the price falls, it closes 2 lots of that trade. Then if it keeps going down it will close the other lots or however many I chose but if it goes back up then the trailing stop will follow.

Its a sort of security thing, I calculate the lots so I can break even with the first trade and anything the rest of the lots is profit. You know, usually people say "I could've made this much if only I kept my position open but it pulled back on me", I want to see if I can actually make it
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
Reply With Quote
  #5 (permalink)  
Old 12-16-2006, 10:01 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,957
Thanks: 113
Thanked 380 Times in 151 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Let me check in MT... I never use partial close before.
Reply With Quote
  #6 (permalink)  
Old 12-17-2006, 06:25 AM
gazuz's Avatar
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 8 Times in 5 Posts
gazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to all
Default

I thought of a way to get around, it includes making multiple trades at the same time with different increment lots. The problem with that is the broker will most likely not execute all trades at the same time therefore most likely not same price giving it an offset that may be significant depending on our pip goals
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
Reply With Quote
  #7 (permalink)  
Old 12-17-2006, 07:18 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,957
Thanks: 113
Thanked 380 Times in 151 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

I think you can partially close a trade. I'm trying the coding but market is closed right now. It's not until Monday.
Reply With Quote
  #8 (permalink)  
Old 12-18-2006, 02:53 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,957
Thanks: 113
Thanked 380 Times in 151 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Great, you can partially close order, like closing half of the position, keeping another half. Modifying already coded trailing stop to partially close is very easy. Gaz, if you have the working code, I'll modify for you.

Updated: Make sure that the broker allows contract size of 0.1 lot (mini lot). Good thing is many brokers especially Alpari and InterbankFX allow that.

Last edited by scorpion : 12-18-2006 at 02:56 AM.
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trailing stop methods TraderSeven Trading Systems 6 11-09-2007 02:32 PM
Changing Trailing Stop tradetrade System Coding 1 08-07-2007 10:57 AM
Idea for trailing stop grantfx Indicator Coding 0 12-01-2006 09:48 PM
breakeven/trailing stop MuppetMan MetaTrader and ZeroCode 2 09-23-2006 07:22 AM
HELP! trailing stop for medium price giraia_br MetaTrader and ZeroCode 4 06-14-2006 05:45 AM


All times are GMT. The time now is 09:37 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast