> For the complete documentation index, see [llms.txt](https://docs.pinescriptstrategy.com/tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pinescriptstrategy.com/tools/setup-instructions/generate-trading-signals.md).

# Generate Trading Signals

In this section we'll cover how to set up a signal generator (it's easy!).

The PSStrategyX tool does not work alone. Well it does, but it doesn't do anything. Just like a vehicle, it's useless without a driver. That's where the trading signals come in. So you'll need to have room for 2 indicators to make this work.&#x20;

<img src="/files/6sTU1gIn7KxV9orZfiPJ" alt="" class="gitbook-drawing">

### What Is A Signal Generator?

This is just a fancy name for an indicator that provides buy/sell signals. You might already use one, if not, don't worry there are plenty of them on TradingView and it's easy to make your own.&#x20;

The only caveat is the buy/sell signals need to be plotted onto the chart in a specific way so they can be used as an input for the PSStrategyX tool.&#x20;

{% hint style="info" %}
You can check out the ["Presets"](/tools/setup-instructions/generate-trading-signals/presets.md) section for ready-to-go signal generators or you can[ "Build Your Own"](/tools/setup-instructions/generate-trading-signals/build-your-own.md)
{% endhint %}

If you already have a signal generator, then head to the next section to learn how to ["Connect Trading Signals To PSStrategyX"](/tools/setup-instructions/connect-trading-signals-to-psstrategyx.md)


---

# 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 dynamically by asking a question.

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

```
GET https://docs.pinescriptstrategy.com/tools/setup-instructions/generate-trading-signals.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
