TradingView Signals via WebHooks v.2

Our Telegram group t.me/finandytv dedicated to TradingView signals.

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. Copy URL and Message from Finandy.

4. Create and configure a signal in TradingView

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 tab)

  • averaging order (DCA tab)

  • an order that closes one or more positions (Close tab)

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

Click the Connect new signal

Use terminal settings or from the Tradingview message

By default, we display only the most necessary parameters in the message that will be inserted in the Tradingview signal, but you can expand the list of transmitted options so that the system takes them from the signal, and not from the terminal settings. To do this, check the box to the left of the parameter name.

If the checkbox is checked, the parameter will be applied from the message of the incoming signal, even if it is a slave signal from the Master signal. If the checkbox is unchecked, the parameter will be applied from the terminal.

It is important to know that 1 connected signal in the terminal can work with all pairs of the market, both for buying and for selling. You just need to change the "side" parameter when inserting a signal into the message on the Tradingview website. "side": "buy", - buy by signal "side": "sell",- sell by signal

Different logic will be triggered depending on the setting of the parameter Position side, Order side and which positions are opened.

Logic of order triggering depending on order side

buy

sell

No open position

Opening LONG

Opening SHORT

Open LONG

Averaging**

Closing LONG

Open SHORT

Closing SHORT

Averaging**

** Opening, averaging and closing will occur if this tab is enabled in the signal settings. By default, only Open and Close are enabled in the signal.

If there is a restriction strictly LONG or SHORT or by Strategy, then the system will work only with this type of position.

If the type of position "positionSide": "flat" comes according to the strategy, then all open positions on this pair will be closed

Position reversal

Position reversal is configured in the Closes tab.

Position reversal by the position amount

Position reversal by the amount of the position + the amount of opening the signal

Partial closing of a position or reversal by a given one by a signal for an amount from a signal

Selected from the list and set the value of the Amount / Sum of partial closing

Slave signals

Switch on the "Master hook" in the account that will forward signals to child accounts.

Hook ID to be copied will appear below

Create a signal in your account that should receive a signal from the Master account, select the Master hook source and paste the Hook ID that you copied from the Master

Please note that the Master Account will not create orders. If you still need to do this, then create an additional slave signal and connect it to the Master

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

{
"secret": "53uvsbohiyu",
"side": "buy",
"symbol": "{{ticker}}"
}

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.

{
"secret": "53uvsbohiyu",
"side": "sell",
"symbol": "{{ticker}}"
}

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: Why do we need checkboxes to the left of the option name? A: If the checkbox is checked, the parameter will be applied from the message of the incoming signal, even if it is a slave signal from the Master signal. If the checkbox is not checked, the parameter will be applied from the terminal.

Q: If you check the option in the master account, and uncheck the checkbox in the slave signal, what settings will be applied when a signal is received? A: The setting of the option will be applied from the message of the received signal, since the checkbox is marked in the master account and the setting of the terminal of the slave signal will be ignored.

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? О: You need to add the server IP to the allowed ones in the signal settings

Q: I want to send signals from my server, how can I do this? A: You need to add the IP address of your computer to the allowed (above screen), from which you will send signals.

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: I enter my IP, again does it prevent me from sending a signal from the test page? A: If your IP changes frequently, you can specify 0.0.0.0/0 and the system will accept any signal from any IP. But it is recommended to do this ONLY during testing, as it is less secure and if you know your URL/Secret you can send a signal to your account.

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:

strategy.entry("long", true, when = entry_long, comment="enter")

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.