Backtest is not using exit conditions
-
@Definedge Back test is not considering exit conditions. Could you please see this:
- My exit condition :

- Back tested with 3 months rebalance. So we can easily find stocks which go below 20 EMA in 3 months period.


- Look at stock PURVA in above backtest image "Exited Stocks" section.
Entry @ 520, exit @ 397. THis is during period 1-7-2024(entry) to 29-92024(exit).
Below image is PURVE chart.
Price went below 20 EMA on 19th July 2024. Below 20ema will be around 425. Instead of Considering 425 below 20 EMA, back test is considering 397 which is the price during rebalance day.
- My exit condition :