logo
logo
Products 

Backtest Trading Strategies Free India | AlgoTest India

avatar
AlgoTest India
collect
0
collect
0
collect
3
Backtest Trading Strategies Free India | AlgoTest India

Building block 1 – Square off

Before we understand Trail SL to BE, we must first understand the Square off option available on algotest.in.

Let’s say we are short a 920straddle with a stop loss on each leg at 20%, and “Square off: Partial” selected. A large market move in one direction will lead to one leg’s SL being hit. In this scenario, we will only exit that leg and continue to hold the position of the other leg. For example – if my call and put entry prices were both Rs 100, then my SL for each leg is Rs 120. Most likely the call SL will get hit first if the market goes up first. In this scenario, the put will continue to be in the market, with its stop-loss unchanged at Rs 120. A similar scenario unfolds if the market goes down first, in which case your put SL will be hit while the call stays in the market.

What happens in the case of “Square off: Complete”? In this case, when either the put or the call SL is hit, the entire position will exit. So unlike above, any leg’s stop loss will lead to the strategy exiting completely when Square off: Complete is selected.


Trail Stop Loss to Break-even – Intro example

What happens if a user selects “Square off: Partial” and “Trail Stop Loss to Break-Even” in the above example?

In this case, if the SL of the call gets hit, the SL of the put is adjusted from Rs 120 to Rs 100. This Rs 100 is the entry price of the put option. Now if the market starts going back down, our put price will start increasing. In this case, we will exit the trade once the put price reaches 100. At Rs 100, our put exit price will equal the put entry price, so this becomes our “Break even”. Hence for this trade, we have “trailed our SL to break-even price feature”

Building block 2 – Iron Condor

The next building block towards understanding algotest.in’s Trail Stop Loss to Break-Even is to read this blog entry about a short iron condor strategy which we shared a few days ago. To summarize, we have two short legs and two long legs in this strategy. The short legs each have a stop loss of 50 points. The long legs have no stop loss associated with them.


Visit Us:- https://algotest.in/blog/trail-stop-loss-to-break-even-price-when-backtesting/



collect
0
collect
0
collect
3
avatar
AlgoTest India