# Execute order from non-strategy alert

Basically, this tool is built for executing orders from strategy alerts. But also you can execute orders from non-strategy alert too with some modification of alert message.

In this guide, we set to execute short order when BTCUSD price crossunder trendline on Tradingview as an example.

1. Click your trendline and then click alert icon

![](/files/qAtic5cPqqhMso3ODLne)

&#x20; 2\. Select "Crossing Down" in Condition part of Create alert popup

&#x20;![](/files/fkH40OoajMqRiraiIwmM)

&#x20; 3\. Set your endpoint URL to webhook URL as usual

&#x20; **4. Set alert message like following**

```json
{
	"exchange": "dydx", // or replace with "perpetual"
	"strategy": "CrossunderTrendline",
	"market": "BTC_USD",
	"size": "0.1",
	"reverse": false,
	"order": "sell",
	"position": "short",
	"price": "{{close}}"
}
```

* Replace original "{{strategy.order.action}}" with "buy" or "sell"
* Replace original "{{strategy.market\_position}}" with "long" or "short"
* Replace original {{strategy.order.price}} with {{close}}

![](/files/yFen6htloVBJuT2OmNLK)

&#x20; 5\. Click Create button and Setting is Done!


---

# 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://tv-connector.gitbook.io/docs/additional-usage/execute-order-from-non-strategy-alert.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.
