Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
7 registered members (clonman, TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 18,869 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can TrailLock be adjusted in a TMF? #437683
02/22/14 18:09
02/22/14 18:09
Joined: Jul 2013
Posts: 522
D
dusktrader Offline OP
User
dusktrader  Offline OP
User
D

Joined: Jul 2013
Posts: 522
I'm trying to set and unset TrailLock in a TMF, but it doesn't seem to be working the way I want.

Perhaps it is not even possible to set TrailLock after you're already in a trade?

The initial trade is opened without a TrailLock setting (ie default 0) but in my TMF, if the profit level reaches a threshold, I want to set TrailLock to both a) lock a majority of the existing profit; and b) still allow the trade to run if it is currently experiencing strong momentum.

If TrailLock cannot be selectively set/changed inside a TMF, then does that mean I have to essentially calculate the TrailLock percent manually inside the TMF and use a hard stop level?

Is there an easier way to accomplish this?
Thanks

Re: Can TrailLock be adjusted in a TMF? [Re: dusktrader] #437693
02/23/14 09:33
02/23/14 09:33
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
I am pretty sure that TrailLock, Stop and so on are only for entering a new trade and don't change already open trades.

Quote:
All entry and exit parameters must be set before calling enterLong / enterShort. They have no effect on already entered trades. For changing a stop or profit target of a particular trade after it has already been opened, use either a TMF, or call exit with the new target



Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1