|
Global TrailingStop Strategy |
Eric
|
Post subject: Global TrailingStop Strategy |
Post rating: 0
|
Posted: Wed 25 Sep, 2013, 08:27
|
|
User rating: 0
Joined: Tue 24 Jul, 2012, 12:38 Posts: 41
|
Hello to all,
I tried to find a Global Trailing Stop strategy with no success. If someone could point me in the right direction ...
My need is something like this:
When the profit (USD) of ALL opened positions reach a user defined amount (USD), the trailing start and set a variable to a user defined amount (USD) below the current profit.
Then when the profit continues going up by an user defined step, the variable is updated.
In fact, this is the same principle than a standard trailing but in my case it is for all opened orders and instead of updating the order SL, we set a variable which we will use to close ALL opened positions when the global profit reverse back on it.
Example (trailing start $100, step $25, Trainling stop $50):
1/ There are 5 opened positions (multiple pairs) 2/ Global profit reach $100 3/ TS variable is then set to $50 4/ Global profit reach $125 5/ TS variable is then set to $75 6/ Global profit revert back to $75, so ALL opened positions are closed
Thank you for your help in finding/creating this tool.
Best regards, Eric
|
|
|
|
 |
hyperscalper
|
Post subject: Re: Global TrailingStop |
Post rating: 1
|
Posted: Thu 26 Sep, 2013, 18:32
|
|
User rating: 98
Joined: Mon 23 Jul, 2012, 02:02 Posts: 656 Location: United States, Durham, NC
|
You'll need to write a Strategy to monitor and do what you are requesting, to your precise requirements.
There are guys/gals in this forum who could do that for you, providing you can accurately "spec" what you need.
HyperScalper
|
|
|
|
 |
Eric
|
Post subject: Re: Global TrailingStop |
Post rating: 0
|
Posted: Fri 27 Sep, 2013, 00:16
|
|
User rating: 0
Joined: Tue 24 Jul, 2012, 12:38 Posts: 41
|
Thank you HyperScalper.
Yes it was my thought but my post was moved here. It was first in the coding part of the forum !
I think that I provided all needed details. If some are missing, let's discuss.
|
|
|
|
 |
Eric
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 0
|
Posted: Wed 02 Oct, 2013, 01:30
|
|
User rating: 0
Joined: Tue 24 Jul, 2012, 12:38 Posts: 41
|
I would greatly appreciate if an admin could move this thread where all the strategies requests are.
Thank you very much.
|
|
|
|
 |
tcsabina
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 2
|
Posted: Wed 02 Oct, 2013, 12:04
|
|
User rating: 164
Joined: Mon 08 Oct, 2012, 10:35 Posts: 676 Location: NetherlandsNetherlands
|
Hi, What exactly are you planing to do? 1) create the strategy on your own 2) wait for someone to create it for you If 1), then start coding  , and feel free to fire your question and problems. At first you must create a strategy that lists all your opened positions. If that is done, we can think of the next step. If 2), then I suggest to hire a programmer instead of waiting for someone...
|
|
|
|
 |
Eric
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 0
|
Posted: Wed 02 Oct, 2013, 12:34
|
|
User rating: 0
Joined: Tue 24 Jul, 2012, 12:38 Posts: 41
|
Thank you Tcsabina for your suggestions.
I am not so good at coding for JForex. I will try at least to start something ... and will be back if I need help.
|
|
|
|
 |
neuralFX
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 2
|
Posted: Sun 06 Oct, 2013, 13:45
|
|
User rating: 3
Joined: Sun 06 Oct, 2013, 10:57 Posts: 2 Location: Austria, vienna
|
Eric wrote: Hello to all,
I tried to find a Global Trailing Stop strategy with no success. If someone could point me in the right direction ...
My need is something like this:
When the profit (USD) of ALL opened positions reach a user defined amount (USD), the trailing start and set a variable to a user defined amount (USD) below the current profit.
Then when the profit continues going up by an user defined step, the variable is updated.
In fact, this is the same principle than a standard trailing but in my case it is for all opened orders and instead of updating the order SL, we set a variable which we will use to close ALL opened positions when the global profit reverse back on it.
Example (trailing start $100, step $25, Trainling stop $50):
1/ There are 5 opened positions (multiple pairs) 2/ Global profit reach $100 3/ TS variable is then set to $50 4/ Global profit reach $125 5/ TS variable is then set to $75 6/ Global profit revert back to $75, so ALL opened positions are closed
Thank you for your help in finding/creating this tool.
Best regards, Eric hi eric, i fully understand what you're looking and that this stuff would be a pretty convenient tool, but i do doubt that it makes sense from the strategic point of view. the point is that you basically make the decision to close a specific contract dependent upon the development of another contract/other contracts. i don't think you should do that. example: you are in 5 contracts and one of them skyrockets by 150 pips. your trail comes to work and moves the s/l upward. the quote comes back down by 75 pips and - let's assume your model works - you now close out all 5 positions. why should you do that? you might have lots of profit potential in the other 4 quotes - because if you didn't you wouldn't have entered the positions in the first place, right? in my opinion there's no reason at all to close the other 4 or any of the 4. well, as i said: i think it would be a strategic mistake. cheers juergen
|
|
|
|
 |
Eric
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 0
|
Posted: Mon 07 Oct, 2013, 07:49
|
|
User rating: 0
Joined: Tue 24 Jul, 2012, 12:38 Posts: 41
|
neuralFX wrote: in my opinion there's no reason at all to close the other 4 or any of the 4. well, as i said: i think it would be a strategic mistake. Thank you Juergen for your thought ... However, this tool is essentially to manage a whole basket ... so that makes a lot of sense ... at least to me!
|
|
|
|
 |
neuralFX
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 1
|
Posted: Tue 08 Oct, 2013, 07:24
|
|
User rating: 3
Joined: Sun 06 Oct, 2013, 10:57 Posts: 2 Location: Austria, vienna
|
Eric wrote: neuralFX wrote: in my opinion there's no reason at all to close the other 4 or any of the 4. well, as i said: i think it would be a strategic mistake. Thank you Juergen for your thought ... However, this tool is essentially to manage a whole basket ... so that makes a lot of sense ... at least to me! hi eric, try the following: let's assume you have a 100k account and trade 5 pairs. your overall risk exposure per day shall be 2%. this means you can allocate 0.4% or €400 to each contract. now you simply set s/l for each pair to €400 and also use a trailing stop. this way you can let winners run without having to close them down because another pair got killed. you will have to play around with different leverage values and s/l distances for the pairs depending on average volatility but once you have that it's a simple process. i'm doing this shit with 10 currencies at the moment and it works fine. cheers juergen
|
|
|
|
 |
Eric
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 0
|
Posted: Tue 08 Oct, 2013, 07:38
|
|
User rating: 0
Joined: Tue 24 Jul, 2012, 12:38 Posts: 41
|
neuralFX wrote: hi eric,
try the following: let's assume you have a 100k account and trade 5 pairs. your overall risk exposure per day shall be 2%. this means you can allocate 0.4% or €400 to each contract. now you simply set s/l for each pair to €400 and also use a trailing stop. this way you can let winners run without having to close them down because another pair got killed. you will have to play around with different leverage values and s/l distances for the pairs depending on average volatility but once you have that it's a simple process. i'm doing this shit with 10 currencies at the moment and it works fine.
cheers juergen There's a misunderstanding. I am trading the whole basket like if it was a single order. All orders are opened and closed at the same time. The important thing is the equity. While the equity is increasing, a virtual SL (equity locked) increase. When the equity retrace back to the SL (equity locked), all positions are closed. BTW, I found the way to code it with some help in the Knowledge forum. Thank you again Juergen for your answers. Eric
|
|
|
|
 |
Chubbly
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 1
|
Posted: Fri 18 Oct, 2013, 06:52
|
|
User rating: 3
Joined: Sat 04 May, 2013, 03:34 Posts: 33 Location: CanadaCanada
|
|
|
|
 |
Chubbly
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 1
|
Posted: Fri 18 Oct, 2013, 06:54
|
|
User rating: 3
Joined: Sat 04 May, 2013, 03:34 Posts: 33 Location: CanadaCanada
|
Eric wrote: neuralFX wrote: in my opinion there's no reason at all to close the other 4 or any of the 4. well, as i said: i think it would be a strategic mistake. Thank you Juergen for your thought ... However, this tool is essentially to manage a whole basket ... so that makes a lot of sense ... at least to me! Yes, I do the exact same thing. i treat a bunch of trades as a basket. I wrote a Strategy to close all orders once they reached a TP level have a look here viewtopic.php?f=65&t=50121
|
|
|
|
 |
Eric
|
Post subject: Re: Global TrailingStop Strategy |
Post rating: 0
|
Posted: Fri 18 Oct, 2013, 07:03
|
|
User rating: 0
Joined: Tue 24 Jul, 2012, 12:38 Posts: 41
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|