TradingView Signals v.1
Binance position control via webhook TradingView
To use TradingView signals, you need to follow several steps:
    1.
    have any paid subscription on TradingVew.com
    2.
    create and configure a signal connection in your finandy.com account
    3.
    create and configure a signal in TradingView, and copy URL and Message from Finandy.
By connecting TradingView signals, you can find it in your account settings.
Signals are configured for each market separately. Market selection is made from the top left of the screen.
Using a signal in the terminal, you can create:
    an order that opens a position with the necessary modules connected (open)
    averaging order (dca)
    an order that closes one or more positions (close or close all)
Attention! Each signal generates its own URL and its own secret, so copy the code from each hook separately for different strategies

Connecting TradingView Signal

Select the hook type and click the plus sign

Types of webhooks

Type of webhook
Description
TV: open, dca, close
Position opening, averaging, position closing
TV: open, close
Opening a position, closing a position
TV: open, dca
Position opening, averaging
TV: open
Position opening only
TV: dca
Open position averaging only
TV: close
Closing an open position only
TV: close all
Close all positions with the specified parameters
TV - signal provider TradingView.com dca - averaging
We have made several types of hooks that can be used in a variety of strategies. Choose the one that suits you best. If you need a more advanced version of the type or add a parameter, write to our telegram chat.

Example of adding a signal

For example, according to your signal, the position will be opened, averaged and closed.
Select TV: open, dca, close, press the plus sign and the new signal setting will open.
Option
Описание
Name
Just a name, by default we form it based on the actions that a signal with your position produces
Action
What actions a signal can perform on a position
Order side
Below you will find the logic for triggering an order depending on its side.
Order type
Type of order created by signal -
Amount type
- Amount
- Order sum
- Order sum USD
- Order sum = Balance %
- Order sum = Balance% x Leverage
Value
A value is typed, depending on the selected fill type
Position side
Both - for no hedging mode,
Long or Short - for hedging mode
Reverse mode
If enabled, upon receiving a closing signal, an order will be created 2 times larger than the current position and the first half will close the current position, and the second half will open the opposite direction. Attention, hedging mode must be turned off on Futures, otherwise the reverse will not work.
Isolated
If disabled, the position will be created with Cross margin. If enabled, the risks will be limited by the margin isolated in the position.
Leverage
Leverage position. Used in the Futures Market
Pair
If you use the {{ticker}} placeholder, then the name of the currency pair will be taken from TradingView. If you insert the name of a currency pair, for example, BTCUSDT, then the signal will work in our terminal only with this pair, even if the signal was configured in TradingView for another currency pair.
Modules
You can connect modules when creating a position TP - Take profit, SL - Stop Loss, SLX - Trailing SL by completed TP
Signal URL and Message
URL and Message are copied into the signal on tradingview.com

Logic of order triggering depending on its direction

Signal received with BUY order and position side BOTH:
Signal type
No position
LONG
SHORT
LONG & SHORT
open, dca, close
Open LONG
Averaging
Close
-
open, close
Open LONG
-
Close
-
open, dca
Open LONG
Averaging
-
-
open
Open LONG
-
-
-
dca
-
Averaging
-
-
close
-
-
Close
-
Signal received with BUY order and position side LONG:
Signal type
No position
LONG
SHORT
LONG & SHORT
open, dca, close
Open LONG
Averaging
-
LONG averaging
open, close
Open LONG
-
-
-
open, dca
Open LONG
Averaging
-
LONG averaging
open
Open LONG
-
-
-
dca
-
Averaging
-
LONG averaging
close
-
-
-
-
Signal received with BUY order and position side SHORT:
Signal type
No position
LONG
SHORT
LONG & SHORT
open, dca, close
-
-
Close
Close SHORT
open, close
-
-
Close
Close SHORT
open, dca
-
-
-
-
open
-
-
-
-
dca
-
-
-
-
close
-
-
Close
Close SHORT
Signal received with SELL order and position side BOTH:
Signal type
No position
LONG
SHORT
LONG & SHORT
open, dca, close
Open SHORT
Close
Averaging
-
open, close
Open SHORT
Close
-
-
open, dca
Open SHORT
-
Averaging
-
open
Open SHORT
-
-
-
dca
-
-
Averaging
-
close
-
Close
-
-
Signal received with SELL order and position side LONG:
Signal type
No position
LONG
SHORT
LONG & SHORT
open, dca, close
-
Close
-
Close LONG
open, close
-
Close
-
Close LONG
open, dca
-
-
-
-
open
-
-
-
-
dca
-
-
-
-
close
-
Close
-
Close LONG
Signal received with SELL order and position side SHORT:
Signal type
No position
LONG
SHORT
LONG & SHORT
open, dca, close
Open SHORT
-
Averaging
SHORT averaging
open, close
Open SHORT
-
-
-
open, dca
Open SHORT
-
Averaging
SHORT averaging
open
Open SHORT
-
-
-
dca
-
-
Averaging
SHORT averaging
close
-
-
-
-
When a signal with a closing order is received, the amount field is ignored and the position is closed completely.

Connecting modules

Modules are configured in the same way as general settings.

Setting up a signal on TradingView

On the chart, you can add a signal for a price crossing by clicking the plus sign to the left of the price scale
Or add a signal by clicking on the alarm clock in the left menu and then on the alarm clock with a plus sign
In the form that opens, configure the signal as you need, check the Webhook URL checkbox and copy the URL and Message from Finandy.com
It is important to understand that a hook forms a set of parameters that can be passed in a signal and they will be applied in a position, regardless of what is stored in the hook.
For example, the signal saved
1
{
2
"secret": "s22kqkk2otk",
3
"action": "open",
4
"side": "buy",
5
"orderType": "limit",
6
"price": "0.23",
7
"amountType": "sum",
8
"amount": "1",
9
"isolated": false,
10
"leverage": "20",
11
"symbol": "XRPUSDT",
12
"tp": false,
13
"sl": false,
14
"slx": false
15
}
Copied!
You use 1 signal to open and close a position, so you need to set up the parameter transfer in TradingView so that "side": "sell" is sent in the message for closing.
1
{
2
"secret": "s22kqkk2otk",
3
"action": "open",
4
"side": "sell",
5
"orderType": "limit",
6
"price": "0.23",
7
"amountType": "sum",
8
"amount": "1",
9
"isolated": false,
10
"leverage": "20",
11
"symbol": "XRPUSDT",
12
"tp": false,
13
"sl": false,
14
"slx": false
15
}
Copied!
Thus, it does not matter what was initially saved in the webhook setting, since this is an example of generating settings, but they can be easily changed through the logic in the PINE script and sent - the system will accept exactly the settings that it receives in the request, and not saved in the terminal.

FAQ

Q: How fast are orders created? A: Very fast! The delay is a fraction of a second
Q: How safe is it? A: 100% safe, since we only accept signals from certain TradingView servers. Besides we generate a unique link and secret for each signal.
Q: Do I need to have a paid subscription to TradingView? A: Oh yeah. Have 1 month free test drive
Q: If I saved the settings of signal, but change it in the indicator PINE-script, will it be accepted by the terminal? A: Yes, in the signal settings we generate a code as an example, you can change it manually or using an indicator according to your strategy, while saving new versions in the terminal is not necessary
Q: Can I configure the signals myself? A: To simply set up the creation of an order by price crossing or by crossing a trend line, this does not require any programming skills, but if you need to connect an indicator or a strategy, you will need basic knowledge of creating a signal in PINE-scripts. You can search the internet for examples of signal setup + we will publish some examples later.
Q: A signal occurred in TradingView, but no order was created in the terminal A: Check the size of the order being created, it may be less than the minimum allowable amount or there is not enough balance. We will improve the error log later. Q: I have a strategy, how to insert BUY/SELL into a signal message? A: You need to replace the line with the "side" parameter with "side": "{{strategy.order.action}}",
Q: I want to send signals from my server, how can I do this? A: You need to select the type of signal containing "API" first, for example, API: open, dca, close. In the signal settings, you can add IP restriction
https://hook.finandy.com/test - here you can test sending a signal. Please note that the Hook ID on the test page is taken from the signal URL, for example, if URL: https://hook.finandy.com/vf1yNFhwtibWq6dWqlUK, then Hook ID = vf1yNFhwtibWq6dWqlUK
Q: How to set up a position reversal upon receiving a closing signal? A: In the settings there is a "Reverse" parameter. If enabled, when a closing signal is received, the reversal position will be created for the Amount in the signal or for the Amount in the current position. Attention! The hedging mode must be disabled.
Q: How can I set up a signal so that only opening a position works in the strategy, and closing a position occurs through the execution of take profit or stop loss A: You need to create in our terminal a signal only for opening and in the parameter action type the comment "action": "{{strategy.order.comment}}", And add a comment in the strategy code comment="enter", for example, like this:
1
strategy.entry("long", true, when = entry_long, comment="enter")
Copied!
Q: In case if “flat” signal is sent by strategy - what will be with position? A: All of the positions in pair will be closed with no reverse, even if it is enabled in settings.
Last modified 8mo ago