TP and SL Strategies
TP and SL Strategies
Take profit (TP) and stop loss (SL) are the two mechanisms that control when your grid bot exits positions. Grid-level TP handles individual trades, while global TP and SL manage the entire bot session. Understanding how these layers interact is essential for ambos maximizing profit and limiting downside.
Grid-Level Take Profit
Every time el bot compra at a nivel de grid, it places a corresponding take-profit orden de venta at el siguiente nivel de grid above. Este es el core mechanic of grid trading: buy low, sell one level higher, pocket la diferencia.
The TP price for each entry level is simply el siguiente nivel de grid up. Sir nivel de grids are at $95, $96, $97, $98, $99, and $100, a buy fill at $96 triggers a TP orden de venta at $97. La ganancia per trade equals one grid spacing minus fees.
This happens automatically and continuously. As long as el precio oscila within tu rango de grid, el bot executes buy-sell cycles at each level, each capturing one grid spacing worth of profit.
The tp_mode Setting
The tp_mode configuration controls what happens after the global take profit target is reached. There are two modes:
tp_mode = “stop”: When the cumulative realized profit reaches your take_profit_pct target, el bot performs a clean shutdown. It cancels all open orders, closes any remaining positions, and exits. Este es el conservative choice for traders who want to lock in a specific return.
tp_mode = “continue”: When the target is reached, el bot logs the event but continues trading. It resets the session PnL counter and keeps running. This suits traders who want el bot to run indefinitely and only stop manually or on grid break.
Setting Global Take Profit
The take_profit_pct parameter sets the total profit target as a percentage of your initial capital. Por ejemplo, take_profit_pct: 5.0 means el bot trigger its TP action when cumulative realized profit reaches 5% of starting capital.
When choosing a global TP target, consider:
- Grid spacing: If each trade profits 0.5%, necesitas roughly 10 completed round trips to reach 5%. How long will that take given current volatility?
- Time horizon: Altaer targets require more time and more favorable conditions. A 2-3% target for a weekly run is more realistic than targeting 20%.
- Compounding: Profits from completed grid trades are available as margin for new trades, creating a mild compounding effect over time.
Setting Stop Loss
The stop_loss_pct parameter defines the maximum acceptable loss before el bot shuts down. When unrealized plus realized losses exceed this percentage, el bot triggers a clean shutdown.
Stop loss works as a last line of defense. It catches scenarios where el precio cae through your entire rango de grid and keeps falling. Without a stop loss, a long grid bot would hold its accumulated positions indefinitely as they lose value.
Recommended stop loss settings depend on tu apalancamiento and range:
| Leverage | Suggested SL Range |
|---|---|
| 1x | 10-20% |
| 2x | 8-15% |
| 3x | 5-10% |
| 5x | 3-7% |
Layered Protection
The best gestion de riesgo uses multiple layers:
- Grid-level TP: Captures profit on each individual trade automatically.
- Grid break detection: Shuts down el bot when price exits the rango de grid, before positions accumulate dangerously.
- Global SL: Catches extreme scenarios where grid break alone is insufficient.
- Global TP (with tp_mode=stop): Locks in profits when your target is reached.
These layers are independent and complementary. Grid break protects against range violations. Stop loss protects against total capital loss. Global TP secures your gains.
Errores Comunes
Setting SL too tight: A stop loss at 2% will trigger frequently during normal volatilidad del mercado, closing el bot before puede recover. Your SL should be outside the range of normal drawdowns.
No SL at all: Running sin a stop loss at leverage above 1x is dangerous. A flash crash or sustained downtrend can wipe out tu cuenta before puedes react manually.
Conflicting TP and SL: Sir TP target requires 50 completed trades but your SL triggers after 5 unfilled levels, the SL will fire long before TP is reachable. Ensure your SL gives el bot enough room to reach its TP under normal conditions.
Ignoring tp_mode: Leaving tp_mode on “continue” when you intended to lock in profits means el bot keeps running past your target. Siempre set this deliberately based on tu estrategia.
Resumen
- Grid-level TP automatically sells one nivel de grid above each buy, capturing the spacing as profit on every cycle.
- Global TP and SL control the entire bot session; use tp_mode “stop” to exit at tu ganancia target or “continue” to keep running.
- Layer grid break, stop loss, and global TP together for comprehensive protection at every risk level.
Siguiente Paso
Learn how to adapt your grid strategy to bullish conditions in Grid Trading in Bull Markets.
✨ Te fue util este articulo?
Haz tus preguntas en Discord →