SetStopLoss

Questions about MultiCharts and user contributed studies.
LMC1
Posts: 50
Joined: 28 Apr 2013
Has thanked: 29 times
Been thanked: 1 time

SetStopLoss

Postby LMC1 » 04 Feb 2017

Hi,

I want to set stop loss at 5% of entry price and tried the following codes but did not work, all trade entries exited at the entry price.

vars: LossMax(0);

LossMax = EntryPrice * 0.05 * CurrentShares;

SetStopLoss(LossMax);

Please help. Thanks

LMC

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

Re: SetStopLoss

Postby TJ » 04 Feb 2017

See post #1 & #2
viewtopic.php?t=11713


Return to “MultiCharts”