How to setup a simple Trading View Integration
On Aperium Trader
-
Register a Free account at Aperium.
-
Save your Binance API Keys on Aperium Trader, menu Account > Security.
-
Go to menu Account > General Settings and inform default entryVolume. Note that this can also be informed on the BUY trigger from Trading View.
-
On the same page click on the "Create API key" link to generate the user key to be used on Trading View.
-
Go to menu Account > My pairs and add the symbol to be traded. Default BTCUSDT is already added.
On Trading View
-
For this demo select Binance BTCUSDT with 1 minute time-frame on spot market.
-
Click on Indicators & Strategies icon and add two Moving Average indicators, with with length 9 and 14 respectively.
-
Set a New Alert, like in the picture below. Notice that it will be triggered every time MA 9 cross up MA 14, calling the webhook: https://parser.aperium.io/trade/order. Name it "MA_9_14_up" and on the alert message box input the JSON code below.
-
The ? icon beside "webhook url" provides a Trading View help with a very good explanation on the format and variables.
-
The TradingAPI link at this page footer provides documentation for the integration.
Cross Up JSON:
{
"userkey": "your user key",
"loggedUser": "your aperium username",
"email": "your aperium email",
"strategy": "MA_9_14_up",
"symbol": "{{ticker}}",
"price": "{{close}}",
"mode": "test",
"percentEntry": 50,
"side": "BUY"
}
Cross Down JSON:
{
"userkey": "your user key",
"loggedUser": "your aperium username",
"email": "your aperium email",
"strategy": "MA_9_14_down",
"symbol": "{{ticker}}",
"price": "{{close}}",
"mode": "test",
"side": "SELL"
}
-
Analogously, set a New Alert, but now change the condition Crossing Up to Crossing Down, to be triggered every time the MA 9 cross down MA 14, calling the webhook: https://parser.aperium.io/trade/order. Name it "MA_9_14_down" and on the alert message box input the JSON "Cross Down JSON" code above.
-
If you prefer, also select some other alert notification, like popup.
-
You are all set, keep the alert active and at every crossing condition an order should be sent from TView to Aperium and from Aperium to your account on Binance.
-
Aperium provides a menu Reports where you may follow on the results of your strategies.