> For the complete documentation index, see [llms.txt](https://tv-connector.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tv-connector.gitbook.io/docs/additional-usage/execute-order-from-non-strategy-alert.md).

# 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

![](https://1420663172-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb0DdMLXZFpK1vsL3ZKiG%2Fuploads%2FI6QjHiJnCAzLyrOCRvHX%2FUntitled%206.png?alt=media\&token=9ca36876-a3cd-4fac-b9f1-41721f126984)

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

&#x20;![](https://1420663172-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb0DdMLXZFpK1vsL3ZKiG%2Fuploads%2F34lbXfJfHtTUDeMzB97Y%2FUntitled%207.png?alt=media\&token=1683513d-ceab-44b0-b668-f47ef69462be)

&#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}}

![](https://1420663172-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb0DdMLXZFpK1vsL3ZKiG%2Fuploads%2FbvbzfxcnKqKJZV5LRsXX%2FUntitled%2011.png?alt=media\&token=1b211cbb-8e1d-42cb-ad81-df6c8a5d2ef5)

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