# Bollinger Band Trailing Stop Loss

**Sample AFL Code - Bollinger Band Trailing Stop Loss**

BBand TSL or Bollinger Band-based Trailing stop loss trading is once again a mechanical trend trading system for lower timeframes. The trailing stop-loss method is completely built using bollinger bands and completely fits for stop and reverse strategy.\
\
**Indications**\
1\) The green line indicates a trailing stop for long\
2\) The Red line indicates a trailing stop for shorts\
3\) The Green Arrow indicates long\
4\) The Red Arrow indicates shorts<br>

&#x20;<mark style="color:blue;">Download Sample Code</mark>

{% file src="/files/9aRAVJrg95XjZmYMUVEM" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.algomojo.com/algomojo/strategies/amibroker/bollinger-band-trailing-stop-loss.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
