The TradingView to Deriv service allows you to automate the Rise/Fall trades in the Ups & Downs options category. You can open rise and fall orders, check tradeable symbols, and retrieve your account balance.
How It Works
You can automate your TradingView strategy or indicators to OKX by creating alerts on your TradingView chart using the Webhook and setting the alert message according to the commands below. You can also manually trade using our Chrome extension to send your alerts to the webhook you created below using the Alert Detector TTA.
For strategies, you can generate the action automatically when your alert is fired using placeholders like {{strategy.market_position}}
{{strategy.order.action}}
{{strategy.alert_message}}
and so on. See more about generating dynamic alerts here.
Commands
Syntax: action symbol param=value
Example: Buy EURUSD Quantity=1
Commands are not case sensitive. Example:
Both buy EURUSD QuantiTY=10 and Buy eurusd Quantity=10 are correct.You can send up to a maximum of 5 commands by adding new ones in the next line. Example:
buy EURUSD q=5 e=15mSELL USDJPY Q=10Sell AUDCAD tp=100 Quantity=5buy GBPUSD Q=10 E=30MBALANCE
One word parameters can be sent as the full word or the first letter of the word . Example: Both
buy EURUSD q=0.1
andbuyEURUSD quantity=0.1
result to the same thing.There should be no spacing between the param and value in a command.
buy EURUSD quantity = 1
is wrong and should bebuy EURUSD quantity=1
Forex-based pairs require the
frx
prefix. Example BUY frxEURUSD Q=10 is correct while BUY EURUSD Q=10 is incorrect.
1. Open a Rise or Fall Option
Buy, long, 1 is recognized for buy trades, while sell, short, -1 is recognized as a sell command.
You can check the tradable symbols by sending the command SYMBOLS
.
Required parameters
Expiry (E) - Sets the expiry period of the trade. Requires a duration unit, i.e.
D (Days)
,H (Hours)
,M (Minutes)
The minimum expiry period is 15M.
Optional parameters
Quantity (Q) - The contract stake amount. Default:
Q=1
.
Examples:
buy r_75 e=15m
Opens a rise contract in the Volatility 75 index with a stake of 1USD that expires in 15 minutes.
-1 frxeurusd q=15 e=3h
Opens a fall contract of EURUSD in the forex category with a stake of 15USD expiring in 3 hours.
{{strategy.order.action}} FRXUSDJPY Q=10 e=15m
Opens a contract worth 10USD expiring in 15 minutes in the direction of the TradingView strategy.
2. Check Tradable Symbols
Symbols is an action to request all tradable symbols in the market.
Example:
Symbols
Returns all the tradable symbols in the market at that time.
3. Check Balance
Balance, bal, and funds are actions to request the account balance.
Example:
funds
Returns the current balance in your account.