New signal (via TradingView)
Bots tutorial (notify, invest and distribute)
After creating the bot on Anny you need to paste the strategy into the TradingView fields.
Check the Webhook URL option, copy from Anny and paste the parameter into your TradingView alert. Do the same for the Message field, copy from Anny and paste the parameter into your TradingView alert.
Anny will create SIGNAL with the parameters defined in TradingView's message.
- Complete strategy for SPOT account: you can set the Investment, Take Profit (up to 5 targets are supported, use 'targetProfit1', 'targetProfit2', etc) and Stop-loss recommendations.
Example:
{"symbol":"BTCUSDT","invest":"10%","targetProfit":"4%","stopLoss":"2%"} - Complete strategy for FUTURES account: besides the SPOT account recommendation, you can set also long/short position, account, margin mode and leverage recommendations.
Example:
{"symbol":"BTCUSDT"","invest":"10%","targetProfit":"4%","stopLoss":"2%","account":"FUTURES","marginType":"ISOLATED","leverage":"1","side":"long"} -
Entry and exit strategy: the group admin can distribute Entry and Exit signals through TradingView. All risk management (stop loss, take profit, etc) would be done "internally" by himself.
To do an Entry and Exit signal, the message must contain a "Signal id" field in order to close the correct signal. The field typology is alphanumeric 20 characters.
Example:
Entry: {"symbol":"BTCUSDT","invest":"10%","signalId":"john123"}
Saída: {"symbol":"BTCUSDT","type":"close","signalId":"john123"}
Notes:
- The message is pre-configured but these values can be edited according to your strategy.
- Position size calculation
Can be defined either by fixed investment or by fixed risk.
To know the difference, click here.
Examples:
Fixed investment
{"symbol":"{{ticker}}","invest":"10%"}
Fixed risk
{"symbol":"{{ticker}}","risk":"10%"} - Fixed values
Fixed values can also be used instead of percentages. In practice the fields are the same, just put the fixed price without the "%".
In long positions, the prices must be placed in ascending order.
In short positions, the prices must be placed in descending order.
Example:
{"symbol":"BTCUSDT","invest":"10%", "entryPriceMin": "19500", "entryPriceMax": "20500","targetProfit":"21500","stopLoss":"19264"} - Market entry in range mode
Makes a market entry when the price is in range.
The range can be defined by price or percentage.
Examples:
Rage (price)
{"symbol":"{{ticker}}","entryPriceMin": "19500", "entryPriceMax": "20500"Range (percentage)
short: {"symbol":"{{ticker}}","entryPriceMin": "-0.4%", "entryPriceMax": "0%"
long: {"symbol":"{{ticker}}","entryPriceMin": "0%", "entryPriceMax": "0.4%" - DCA entry mode
For DCA entry mode to be activated, at least 2 entries are required. That is, the entry1Percent and entry2Percent fields must be present and greater than zero.
When the entry1Price field is omitted, the current market price of the asset is assumed.
The price fields (entry*Price) must be in descending order for long signals and ascending order for short signals.
The entry*Price fields can be defined either by price or percentage.
Define the percentage (of the total investment) for each entry. The sum needs to be 100%.
Example:
DCA (price)
{"symbol":"{{ticker}}","entry2Price":"19500","entry3Price":"20500","entry1Percent":"20%","entry2Percent":"30%","entry3Percent":"50%"}DCA (percentage)
{"symbol":"{{ticker}}","entry2Price":"10%","entry3Price":"20%","entry1Percent":"20%","entry2Percent":"30%","entry3Percent":"50%"}
Calculation method for each entry: Position size * the defined percentage.
Calculation example:
Investment allocation: 5000 USDT
Position size: 10%
Position amount: 500 USDT (5000 * 10%)
Entry 1 (20%): 100 USDT ( 500 * 20%)
Entry 2 (30%): 150 USDT (500 * 30%)
Entry 3 (50%): 250 USDT (500 *50%)
Rules regarding the STOP:
-
Bot signals, from TradingView or Anny, can be done without the STOP only if the signal is to be INVESTED (user's own signals);
-
Bot signals, from TradingView or Anny, need to have a STOP in the signal if it will be DISTRIBUTED to a group.
Related articles:
What is the difference between DCA limit and market range entries?