PROTECTED SOURCE SCRIPT
Updated Money Management Backtest

This non-repaint script is to backtest some different money management strategies:
- Whether to enter immediately after a signal (shaved bar) fires or wait for pullback (market vs limit order)
- Move Stoploss to breakeven (with fee calculated in) right after position starts to have UnPnL
- Take Partial Profit
SL Cap is calculated from current price to decide where to put SL
SL Padding is to add some space above High for Short position or below Low for Long position
- Whether to enter immediately after a signal (shaved bar) fires or wait for pullback (market vs limit order)
- Move Stoploss to breakeven (with fee calculated in) right after position starts to have UnPnL
- Take Partial Profit
SL Cap is calculated from current price to decide where to put SL
SL Padding is to add some space above High for Short position or below Low for Long position
Release Notes
Added functionality for - Entering by Stop Order
- Filter for Entry Rules
- Backtest Sample Period
Release Notes
fix typosRelease Notes
SL can flip directionProtected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.