|
5 registered members (VoroneTZ, AndrewAMD, alibaba, 2 invisible),
5,417
guests, and 14
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Blame the manual
[Re: jcl]
#452598
06/18/15 15:13
06/18/15 15:13
|
Joined: Sep 2013
Posts: 504 California
GPEngine
User
|
User
Joined: Sep 2013
Posts: 504
California
|
TrailLock 'Locks' a percentage of the profit (default = 0 = no profit locking); has only an effect when Stop and Trail are set and the profit is above the trail distance. A stop loss is automatically placed at the given percentage of the current profit. Example: A long position is currently in profit by 10 pips. TrailLock = 80 would then place the stop loss at 8 pips above the entry price, thus locking 80% of the profit. TrailLock = 1 would set the stop loss at the entry price, i.e. at break even as soon as the profit reaches the Trail value. Using TrailLock is in most cases preferable to setting a profit target. So, which is it? Is TrailLock supposed to be a percentage [0,100] or a fraction [0,1]?
|
|
|
Re: Blame the manual
[Re: jcl]
#452615
06/19/15 12:51
06/19/15 12:51
|
Joined: Jun 2013
Posts: 1,609
DdlV
Serious User
|
Serious User
Joined: Jun 2013
Posts: 1,609
|
Thanks jcl. This has spawned some other thoughts: I gather, then, that 1 isn't specifically called out in the code - it's just that 1% (or other small %) of the profit normally calculates close enough to 0 that the result is the stop being at entry? Is this also taking into account Spread, etc.? I.e., in the example of 10 pips, that's 10 pips after costs, yes? And the TrailLock stop is placed at entry+costs+8pips? Also, is TrailLock a one-time thing or is it re-evaluated at every tick/bar? In the example, if profit subsequently increased to 20 pips, would the TrailLock stop be moved up to 16 pips? Thanks. P.S. - Does it work for TrailLock >100? Can I "lock" >100% of my profit?! 
|
|
|
|