TradingView Webhook Execution with Staged Take-Profit Orders
Summary
The document outlines a workflow for trading coin-margined cryptocurrency contracts from TradingView signals. TradingView alerts send webhook messages to an FMZ robot, which can open long or short positions at market or close positions. The proposed opening size is calculated from account margin, leverage, and the cryptocurrency price. After opening, the bot places a take-profit order for half the position, with the target set as a percentage above the long entry price or below the short entry price. A close signal exits the full position.
A later script revision is described as adding a second take-profit level and preventing repeated entries in a direction while a position in that direction is open, including positions that existed before startup. The document gives operational requirements but no code, exact parameter values, exchange-specific handling, test results, or evidence that the workflow manages execution failures or risk. Its stated scope is limited to coin-margined contracts.
Key ideas
- TradingView alerts can send entry and exit instructions to an FMZ bot through webhooks.
- The proposed bot opens long or short positions at market and sizes them using margin, leverage, and price.
- An opening trade receives a take-profit order for half the position, with targets based on a percentage of entry price.
- A close signal exits the whole position.
- A later revision adds a second take-profit level and blocks duplicate entries in a direction with an existing position.
- The described setup is limited to coin-margined cryptocurrency contracts and includes no performance evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.