how GenerateStopLoss works?

Questions about MultiCharts .NET and user contributed studies.
shane
Posts: 1
Joined: 06 Jan 2015

how GenerateStopLoss works?

Postby shane » 05 May 2015

Program:
GenerateStopLoss(Bars.Close[0]*StopRatio/100*Bars.Info.BigPointValue);
GeneratePercentTrailing(Bars.Close[0]*TrailingProfitPerc/100*Bars.Info.BigPointValue,TrailingBackPerc);

I use stoploss and PercentTrailing function in MC.NET, but that seems work unreasonable.

Case1:
I use daily data here, buy at 9.27, the stop percentage is 5%, it means when the price descend to 9.27*(1-5%)=8.8065, it will generate the “Stop Loss“ Signal. But it generated the signal on 2012/5/31, much late than expected.

If comparing Bars.Low and Bars.Close with the buy price, the signal should generate on 2012/5/25, the low price that day is 8.77 and close price is 8.79;

Case2:
The entry buy at 9.91, the stop percentage is 5%, it means when the price descend to 9.91*(1-5%) = 9.4145, it will generate the “Stop Loss“ Signal.

It generated the signal on 2012/5/31 while the low price that day is 9.42, sell price is 9.43, both higher than 9.4145.

Thus, I am much confused about how stoploss works? how these two functions caculated the sell price when using daily data?
Attachments
description.rar
(28.07 KiB) Downloaded 626 times

Return to “MultiCharts .NET”