Automated Trading Cancel Orders
cancel()
which, tag
Attempts to cancel some or all of your open orders. This will only affect orders on the symbol of the command block the cancel()
command is in.
Arguments
which
required
string, one of
buy , sell , all , session , tagged .
defaults to session
Determine which order to try and cancel. One of the following :-
|
||||||||||||
tag
optional
boolean, one of
true , false .
defaults to false
Tags the order with the value given. This allows you can cancel the order using it's tag. See |
Example: Place an order in 10 minutes
myApiKeys(XBTUSD) {
limit(side=buy, amount=99%, offset=10, tag=allIn)
wait(duration=30m);
cancel(which=tagged, tag=allIn)}
Places a limit order, waits 30 minutes, then tries to cancel only the limit order from the first step. If it's not been filled, or only partially filled, it will be cancelled.
Some images from Unsplash
About Alertatron.com
Your TradingView alerts, with charts, PM'd to you.
Get all your alerts from TradingView, sent to Telegram, Discord, Slack, Email or webhooks, with a chart snapshot attached.
Capture Charts
See a high quality chart with every alert, captured at the moment the alert was triggered. See exactly what the market was doing and make informed decisions.
Automate Trading
Trigger orders on popular cryptocurrency exchanges and trade 24/7. Access powerful algorithmic orders to maximise your profits.
Integrations
Connect your alerts to Telegram (channels, groups and private chats), Discord, Slack, email or send push notifications to other services with webhooks.
Easy To Setup
Nothing to install and no browser extensions. Captures alerts 24/7, even with your computer switched off. Be up and running in seconds.