SetStopLoss Usage

Questions about MultiCharts and user contributed studies.
ctu1121
Posts: 135
Joined: 05 Jul 2012
Has thanked: 10 times
Been thanked: 4 times

SetStopLoss Usage

Postby ctu1121 » 01 Oct 2014

Hi,
I have A,B and C contract position as below:
A: P/L= -200
B: P/L=500
C: P/L=0

I write a signal code, involved SetStpoLoss(100);

May I know which of the following is correct:
(1)A+B+C lose more than 100, system will close A+B+C
(2)A+B+C lose more than 100, system will close C
(3)C lose more than 100, system will close C

Thanks for your help.

Charles

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: SetStopLoss Usage

Postby Henry MultiСharts » 01 Oct 2014

Hello Charles,

Do you have multiple entries for the same instrument or A, B, C are individual instruments?

ctu1121
Posts: 135
Joined: 05 Jul 2012
Has thanked: 10 times
Been thanked: 4 times

Re: SetStopLoss Usage

Postby ctu1121 » 01 Oct 2014

Sorry for my unclear message.

I have manually long A and B already.

And now I use Multicharts to trade C. I write signal for C only. I hope Multicharts will help me
to close C if I lose more than 100 from C only. I would like to confirm the usage of SetStopLoss.

Thanks.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: SetStopLoss Usage

Postby Henry MultiСharts » 01 Oct 2014

Please study the SetStopLoss reserved word description.
If your signal opens the C entry then you need to start the auto trading with the flat value (disregarding the 2 entries you have) in Format-> Strategy properties-> Auto trading-> Assign the initial market position at the broker setting->Do not show->Assume as flat.

If you enter C manually but want the auto trading to manage the stop loss then you need to go to Format-> Strategy properties-> Auto trading-> Assign the initial market position at the broker setting->Show the assign the initial market position at the broker dialogue-> Show always-> Ok. Upon starting the auto trading specify the C position size and it's entry price.


Return to “MultiCharts”