Set Target Position
Set Target Position
Is there a way or word to enable a target to be set per position rather than each individual entry when there are more than one entries in the same direction. There is SetStopPosition for stop losses on multi entries but is there a way to achieve a single "averaged" target on profitable multi entry exits?
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Set Target Position
are you looking for one of these keywords?Is there a way or word to enable a target to be set per position rather than each individual entry when there are more than one entries in the same direction. There is SetStopPosition for stop losses on multi entries but is there a way to achieve a single "averaged" target on profitable multi entry exits?
SetDollarTrailing
SetPercentTrailing
SetProfitTarget
The definition and usage examples are in the wiki under
8 PowerLanguage Keyword Reference
Re: Set Target Position
No, I have those. I'm looking for a way to exit two or more entries at different prices with an "average" profit target. Eg, if Entry 1 is @ 21 and entry 2 is @ 24 and I want to exit the POSITION at a profit of 2 then I need something that takes the 21 + 24 and sets a profit target of 24.5 just as SetStopPosition averages those entries with a single average stop loss.
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Set Target Position
Look upNo, I have those. I'm looking for a way to exit two or more entries at different prices with an "average" profit target. Eg, if Entry 1 is @ 21 and entry 2 is @ 24 and I want to exit the POSITION at a profit of 2 then I need something that takes the 21 + 24 and sets a profit target of 24.5 just as SetStopPosition averages those entries with a single average stop loss.
GetPositionAveragePrice