How to trail stop a fraction of position?

Questions about MultiCharts and user contributed studies.
2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

How to trail stop a fraction of position?

Postby 2haerim » 14 Jan 2010

SetTrailingStop can be used to close all positions when the trail condition is met.

Is it possible to close only a half of open contracts when the trail condition is met?

User avatar
Bruce DeVault
Posts: 438
Joined: 19 Jan 2010
Location: Washington DC
Been thanked: 2 times
Contact:

Postby Bruce DeVault » 25 Jan 2010

Sure - just use an "if currentcontracts = entrysize then sell ("LX-Half") entrysize / 2 contracts next bar at X stop" statement, where entrysize is the size you originally bought, and set X to the best price less whatever your trail distance is.


Return to “MultiCharts”