PROTECTED SOURCE SCRIPT

BookYourTrade

491
Happy trade,

This is a semi-automated tool that allows you to define a trade setup in advance, including multiple exit levels. It incorporates a proven method for managing risk and reward. You specify a fixed entry price, an initial stop loss, two take profit levels, and a trailing stop loss for the remaining position—aiming to maximize gains from the trend. Alerts are included so you can step away from the screen and still be notified when any predefined price level is reached. The tool sends trade orders as market orders to your exchange or broker via webhooks. You provide the general webhook format, and the script automatically fills in the correct values.

스냅샷

How to Use
This tool is intended for manual day traders.

Define Entry Conditions:
Set your planned entry price and, optionally, a start and end time for trade activation. The script will not run unless the price reaches your specified level during this time window.

Set Stop Loss:
Define the stop loss as a fixed number of points from the entry price (above or below). This also determines whether the trade is long or short.

Configure Take Profits:
Specify the risk-reward ratio and position size for Take Profit 1.
Do the same for Take Profit 2.

Trailing Stop Loss:
For the remaining position after Take Profit 2, set a trailing stop loss. This is also defined in points, relative to the previous bar's closing price.

Time and Session Filters:
Set the earliest date to begin trading and the latest date by which all positions should be closed.
Optionally, define specific time windows (daily and or weekly) during which trading should be disabled. These off-times will be visually grayed out.

Define Capital and Fees:
Input the dollar amount you want to invest, along with any applicable percentage-based fees or fixed fees per trade. This is useful since different brokers, exchanges, or webhook service providers may charge in different ways (fixed, percentage, or both).

Configure Webhooks:
Enter your broker- or exchange-specific webhook for each trade event: entry, Take Profit 1, Take Profit 2, Stop Loss, and trailing exit. You’ll need to include placeholder strings in the webhook that the script will replace with actual trade values. The script provides a helper table to display these placeholders directly on the chart.
Some values you can deliver to the webhook service provider as an $ value or a deviation in percentage. For example the quantity of a trade or the take profit price. choose the correct replacement accordingly.
The script sends all orders as market orders.

Multiple Instances:
If you want to run multiple instances of this script, you must assign a unique name to each one. This ensures that the webhook service provider can correctly route trade signals to the appropriate bot.


Here is an evolution of one trade in images:
The trade setting are defined but the trade has not started
스냅샷
The trade has started
스냅샷
The price reached the first take profit level and a part of the investment was liquidated.
스냅샷
The trade reached it's end date and the remaining investment was liquidated.
스냅샷

cheers

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.