Latest Announcements
Latest Promotions
Product Updates
Asset Maintenance
System Maintenance
Spot Listing
Futures Listing
Funding Rate
Delisting
Crypto Scout

(1)Simple Instruction: Both the Open Instruction and Close Instruction need to be configured to enter and exit a trade. Once the instruction is set up, the trading direction, order type, margin amount and TP/SL cannot be modified.
(2) Strategy Instruction: Each indicator can be configured to an instruction to complete a complex trading strategy. It enables continuous position addition or reduction and customize an addition or reduction ratio via using variables in the Alert of TradingView.
I. How to Configure Simple Instruction?
Step 1: Create a Simple Instruction on BingX
*The margin mode (Isolated/Cross) and leverage amount for signal trading will be the same as your most recent Perpetual Futures settings. If you want to reconfigure your settings, click "Change Settings" below to go to Perpetual Futures to make adjustments. Then, refresh the page and your latest settings will be automatically updated.
Step 2: Configure TradingView Strategy Alerts to Receive BingX Signals.
1. Configure Opening Position Signals
TradingView Alert:
After pasting your Open Instruction in Message, click Create.
II. How to Configure Strategy Instruction?
The strategy instruction lets you choose between placing orders by ratio or by size. When placing orders by ratio, the opening position uses a ratio of available margin in the USDⓢ-M Futures account, determined by the value calculated by contracts * price in the signal. When closing position, the ratio is calculated using the formula: contracts / (contracts + |position_size|), based on the signal. When placing orders by size, the exact position size of the TradingView strategy is replicated. After the signal is successfully executed, the user will hold the same position size in both TradingView and BingX.
2.1 Guide to Configuring Strategy Instruction by Ratio
Step 1: Create a Strategy Instruction by Ratio on BingX
Step 2: Configure TradingView Strategy Alerts to Receive BingX Signals.
2. Modify the default configuration of the script
(2) Order size: 100 USDT
If you wish to enter the market in batches, please modify the Pyramiding to the desired number of orders (let's assume it's N) and the "Order size" to 100/N USDT. Each time, the bot will use 1/N of the available funds in the Perpetual Futures account for placing an order. That is, for every 1 USDT traded on your TradingView, your signal bot will allocate 1/N of funds in your Perpetual Futures account for opening a position or adding to an existing position.
Taking the WUSDT Perpetual Futures trading pair as example: The user has no existing position but has an available margin of 50 USDT in the Perpetual Futures Account and uses 10x leverage for WUSDT.
① When the strategy triggers an opening long position signal (buy):
{
"data":
{
"action":"buy",
"contracts":"1.554",
"position_size":"1.554"
},
"price":"0.6573",
"user_info":"STRATEGY_CFXUSDT_cfx_omvlxad863na1f9v41",
"symbol" :"WUSDT.P",
"time":"2024-05-19T09:34:05Z"
}
At this point, the margin used for opening the long position ≈ contracts * price ÷ 100 * available margin in Perpetual Futures Account = 1.554 * 0.6573 ÷ 100 * 50 = 0.5107221 USDT. The amount for opening the long position ≈ margin used for opening the long position * leverage = 0.5107221 USDT * 10 = 5.107221 USDT. The amount in long position that can be opened ≈ amount for opening the long position ÷ last price = 5.107221 ÷ 0.6573 = 7.77 W. (Note: The final filled amount may vary as the signal trades at market price)
B. When the user has no existing position and the signal's action is "sell", it indicates the opening of a short position. The margin used for opening a short position is calculated as = contracts * price ÷ 100 * available margin in Perpetual Futures Account.
Taking the WUSDT Perpetual Futures trading pair as example: The user has no existing position but has an available margin of 50 USDT in the Perpetual Futures Account and uses 10x leverage for WUSDT.
① When the strategy triggers an opening short position signal (sell):
{
"data":
{
"action":"sell",
"contracts":"1.554",
"position_size":"-1.554"
},
"price":"0.6573",
"user_info":"STRATEGY_CFXUSDT_cfx_omvlxad863na1f9v41",
"symbol" :"WUSDT.P",
"time":"2024-05-19T09:34:05Z"
}
At this point, the margin used for opening the short position ≈ contracts * price ÷ 100 * available margin in Perpetual Futures Account = 1.554 * 0.6573 ÷ 100 * 50 = 0.5107221 USDT. The amount for opening the short position ≈ margin used for opening the short position * leverage = 0.5107221 USDT * 10 = 5.107221 USDT. The amount in short position that can be opened ≈ amount for opening the short position ÷ last price = 5.107221 ÷ 0.6573 = 7.77 W. (Note: The final filled amount may vary as the signal trades at market price)
C. When the user has an existing long position and the signal‘s action is "buy", it indicates increasing the long position. The margin used for increasing a long position = contracts * price ÷ 100 * available margin in Perpetual Futures Account. When the signal's action is "sell", it indicates closing the long position. The position closing amount = |contracts| ÷ (|position_size| + |contracts|) * available amount for closing. If "position_size" is 0, then the entire position is closed.
Taking the WUSDT Perpetual Futures trading pair as example: The user has an existing long position of 100 W, an available margin of 50 USDT in the Perpetual Futures Account and uses a 10x leverage for WUSDT.
① When the strategy triggers an increasing long position signal (buy):
{
"data":
{
"action":"buy",
"contracts":"1.554",
"position_size":"67.598"
},
"price":"0.6573",
"user_info":"STRATEGY_CFXUSDT_cfx_omvlxad863na1f9v41",
"symbol" :"WUSDT.P",
"time":"2024-05-19T09:34:05Z"
}
② When the strategy triggers a closing long position signal (sell):
{
"data":
{
"action":"sell",
"contracts":"1.554",
"position_size":"64.490"
},
"price":"0.6573",
"user_info":"STRATEGY_CFXUSDT_cfx_omvlxad863na1f9v41",
"symbol" :"WUSDT.P",
"time":"2024-05-19T09:34:05Z"
}
At this point, the amount to be closed is ≈ |contracts| ÷ (|position_size| + |contracts|) * available amount for closing = 1.554 ÷ (1.554 + 67.598) * 100 ≈ 2.247 W. The final amount of W in long position in the user's BingX account is ≈ initial position amount - closed position amount = 100 - 2.247 = 97.753 W.
D. When the user is holding an existing short position and the signal's action is "sell", it indicates increasing the short position. The margin used for increasing a short position = contracts * price ÷ 100 * available margin in Perpetual Futures Account. When the signal's action is "buy", it indicates closing the short position. The position closing amount = |contracts| ÷ (|position_size| + |contracts|) * available amount for closing. If "position_size" is 0, then the entire position is closed.
Taking the WUSDT Perpetual Futures trading pair as example: The user has an existing short position of 100 W, an available margin of 50 USDT in the Perpetual Futures Account and uses 10x leverage for WUSDT.
① When the strategy triggers an increasing short position signal (sell):
{
"data":
{
"action":"sell",
"contracts":"1.554",
"position_size":"-67.598"
},
"price":"0.6573",
"user_info":"STRATEGY_CFXUSDT_cfx_omvlxad863na1f9v41",
"symbol" :"WUSDT.P",
"time":"2024-05-19T09:34:05Z"
}
The amount in short position that can be opened ≈ amount for opening the short position ÷ last price = 5.107221 ÷ 0.6573 = 7.77 W. (Note: The final filled amount may vary as the signal trades at market price)
② When the strategy triggers a closing short position signal (buy):
{
"data":
{
"action":"buy",
"contracts":"1.554",
"position_size":"-64.490"
},
"price":"0.6573",
"user_info":"STRATEGY_CFXUSDT_cfx_omvlxad863na1f9v41",
"symbol" :"WUSDT.P",
"time":"2024-05-19T09:34:05Z"
}
Step 1: Create a strategy instruction by size on BingX.
Step 2: Configure it to the Alert on TradingView to receive BingX signals.
1. The exact position size of the TradingView strategy is replicated. After the signal is successfully executed, the user will hold the same position size in both TradingView and BingX.
2. When position_size > 0, it indicates a long position; position_size < 0 indicates a short position, and position_size = 0 means closing the position.
Examples to Illustrate the Logic of Opening, Adding, and Closing Positions.
Scenario A: When position_size = 0, this closes the position, and neither side holds a position.
Scenario B: When position_size > 0, it indicates a long position in TradingView.
- Adding to Long Position: When position_size = 2 BTC and M = 1 BTC, adding 1 BTC brings M to 2 BTC.
- Reducing Long Position: When position_size = 2 BTC and M = 3 BTC, reducing by 1 BTC brings M down to 2 BTC.
- Closing and Reopening Position: When position_size = 2 BTC and M = -1 BTC, closing out -1 BTC and reopening with 2 BTC results in M = 2 BTC.
- No Change in Position: When position_size = 2 BTC and M = 2 BTC, there is no increase or decrease.
- Adding to Short Position: When position_size = -2 BTC and M = -1 BTC, adding 1 BTC short brings M to -2 BTC.
- Reducing Short Position: When position_size = -2 BTC and M = -3 BTC, reducing by 1 BTC brings M to -2 BTC.
- Closing and Reopening Position: When position_size = -2 BTC and M = 1 BTC, closing out 1 BTC and reopening with a short position of 2 BTC results in M = -2 BTC.
- No Change in Position: When position_size = -2 BTC and M = -2 BTC, there is no increase or decrease.
8. For strategy instructions by ratio, use position_size=0 to close positions. Avoid using the one-click reverse function.