Set Target Position

Questions about MultiCharts and user contributed studies.
momentum
Posts: 324
Joined: 23 Nov 2005
Has thanked: 9 times
Been thanked: 14 times

Set Target Position

Postby momentum » 26 May 2014

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?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Set Target Position

Postby TJ » 26 May 2014

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?
are you looking for one of these keywords?

SetDollarTrailing
SetPercentTrailing
SetProfitTarget


The definition and usage examples are in the wiki under
8 PowerLanguage Keyword Reference

momentum
Posts: 324
Joined: 23 Nov 2005
Has thanked: 9 times
Been thanked: 14 times

Re: Set Target Position

Postby momentum » 26 May 2014

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.

User avatar
MAtricks
Posts: 789
Joined: 09 Apr 2012
Has thanked: 286 times
Been thanked: 288 times

Re: Set Target Position

Postby MAtricks » 26 May 2014

. (misunderstood question)
Last edited by MAtricks on 27 May 2014, edited 1 time in total.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Set Target Position

Postby TJ » 26 May 2014

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.
Look up

GetPositionAveragePrice

momentum
Posts: 324
Joined: 23 Nov 2005
Has thanked: 9 times
Been thanked: 14 times

Re: Set Target Position

Postby momentum » 26 May 2014

MAtricks, that sets profit target of 100 on each individual entry.

TJ thanks. Haven't seen that before.


Return to “MultiCharts”