> For the complete documentation index, see [llms.txt](https://docs.zeiierman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zeiierman.com/toolkit/buy-and-sell.md).

# Buy & Sell

The [Buy & Sell Toolkit](https://www.zeiierman.com/indicators/buy-sell-toolkit) is a versatile Pine Script designed to provide buy/sell signals, trend analysis, momentum detection, and take-profit strategies. It offers customizable settings that cater to different trading styles and market conditions, enhancing a trader's ability to analyze market trends and generate actionable signals.

{% embed url="<https://www.tradingview.com/script/mXFL6NuC-Buy-Sell-Toolkit-Expo/>" %}

#### Main Features

<figure><img src="https://1318101046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWum3bpTEdTgqoQfJJze1%2Fuploads%2FnNXQX04oqh2HP9goIfSS%2FBuy%20%26%20Sell%20Toolkit.png?alt=media&amp;token=f65dc832-8fd2-4fcd-8d22-7ce61f9fbc00" alt=""><figcaption></figcaption></figure>

* **Buy/Sell Signals:** Generates entry and exit points based on trend analysis.
* **Trend Analysis:** Identifies market trends using moving averages and trend indicators.
* **Momentum Detection:** Measures price momentum to detect strong price movements.
* **Contrarian Signals:** Identifies potential market reversals when trends show signs of exhaustion.

{% hint style="success" %}
**Signal Auto Optimization**

Enable the auto optimization feature, and the signals will automatically adjust for the best performance, highest win rate, or a combination of both. This ensures traders always have the most effective settings applied.
{% endhint %}

#### Trading Signals

* Buy Signal is triggered when a bullish trend is detected.
* Sell Signal is triggered when a bearish trend is detected.
* Contrarian Signal is triggered when potential reversals are identified to indicate overbought or oversold conditions.

#### Practical Applications

* **Trend-following:** The toolkit uses moving averages and trend lines to identify sustained market trends and signal entry/exit points accordingly.
* **Contrarian Strategies:** Helps identify overbought/oversold conditions by leveraging momentum indicators, providing entry signals when the market is likely to reverse.
* **Volatility Adaptation:** The toolkit incorporates volatility-based features, such as trailing stops, to adjust stop levels dynamically based on market volatility.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zeiierman.com/toolkit/buy-and-sell.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
