(Future)Usage Guide
Last updated
Last updated
In Binance Exchange, you need to create an API on the Binance-Account--API Management page
Check the three options of "Enable Reading", "Enable Spot&Margin Trading" and "Enable Futures". Copy the API Key and Secret Key.
Fill in the exchange API Key and Secret Key copied in the previous step into the form corresponding to Platform--Personal Center--API Settings.
First, please click the "green button" to test the successful connection between Lubi and the exchange. When the connection is successful and the test is successful, the following information will be displayed.
When the connection test between the exchange's Api and LUBI is successful, please click the "blue button" to save the API settings.
Position mode
Because the contract robot supports double opening of long and short positions, it is necessary to set the exchange contract position mode and adjust it to support "two-way position holding". The specific method is as follows:
Enter any currency pair contract page of the exchange, as shown in the figure below, click the button on the right side of "Close Position", and select "Preference"
2.In "position mode" of "preference", select "Hedge mode", that is, the modification of the position mode is completed.
Click the "Edit Policy" button in the "Operation" column at the end of each trading pair to set the policy for each trading pair
For example: "BTC-USDT-Long",
Enter "BTC" in the box, select the denomination currency "USDT", select the direction of the transaction "Long", and click Create.
For each trading pair, there are a total of 3 running buttons "monitor " ""sell only""""Stop On Winning"
Monitor:
【Open】The robot monitors the opening and closing of positions;
【Close】The robot does not monitor the opening and closing of positions.
Sell Only :
[Open] The robot does not open positions, but only closes positions.
[Close] The robot normally monitors the opening and closing of positions.
Stop On Winning:
[Open] After the overall take-profit and closing of the trading pair, the trading pair will stop trading, no longer open positions, and the monitoring button will be adjusted to the "closed" state
【Close】Continue to open the position after the overall take profit of the current trading pair is closed.
Working Status:
there are 3 statuses "stopped", "working" and "failure"
"stopped", the monitoring switch is off
"Running", the monitoring switch is turned on, the trading pair will open and close positions normally according to the strategy.
"Failure", the trading pair cannot be traded normally, and the reason for the abnormality can be viewed by clicking the "magnifying glass" symbol under "abnormal stop". At the same time, the reason for the abnormal information will also be sent to the In the Telegram message.
Basic properties
Trading range:
The robot conducts normal monitoring to open positions within the set price range;
When the price is above or below the price range, open positions are no longer monitored.
Grid Count: You can fill in the required number of grids according to actual needs. After clicking the "Save" button, the response will be reflected in the specific grid strategy below.
Set numerical values for each parameter in the batch modification part, and click "Apply" to execute the parameters for the robot to open/close positions for the trading pair.
名词解释
Buy Amount:
The opening amount of each grid. In Binance Exchange, the U-Future is priced by the specific amount, and the C-Future is priced by the number of sheets. The amount corresponding to each sheet can be traded on the exchange. Inquire.
Open interval
The ratio of the opening interval between each grid, the specific calculation method = (current currency price - the lower limit of the trading area) ÷ current currency price If the BTC opening interval ratio is set to 0.02 and the current opening price is 50000, the opening price of the next order will be 49900
open track interval
In the process of open track interval, after the current currency price exceeds the opening interval ratio and reaches the minimum value of the overall revenue ratio, the currency price will increase in proportion.
When it is raised to [the lowest value of the overall income ratio + the increase ratio of open track interval], the opening of the position will be executed.
Note: When open track interval is set to 0, it means that this function is not enabled.
close interval
When the profit of the last order in the current strategy position order reaches the set percentage,
If the "close track interval" function is not enabled, the grid take profit will be executed;
If the "close track interval" function is enabled, the grid tracking take profit will be triggered, and the grid take profit will be executed after the tracking ends.
Note: When "close interval" is set to 99, it means that "close inerval" is not enabled.
Close Track Interval
Close track interval: The last order revenue ratio has dropped back after reaching the highest value.
When it falls back to [the highest value of the end order revenue - close track interval ], the tracking ends and the take profit is executed.
Example BTC-USDT-Long, the average price of the last order is 50,000 USDT, and close track interval is 0.1%.
If the grid trailing take profit is triggered at the price of 50300 USDT. When tracking to the highest price of 50400 USDT, the price will drop back. When the price drops back by 0.1%, take profit will be executed.
Note: When "close track interval" set to 0, it means that this function is not enabled.
Close All Interval
When the overall strategy profit of the trading pair reaches the set percentage,
If “Close All Track Interval” not enabled, the overall take profit is executed.
If “Close All Track Interval” is enabled, the overall trailing take profit will be triggered, and the overall take profit will be executed after the trailing ends.
close all interval = (realized profit and loss of the account in this round + real account income from selling the remaining grid) / (trading amount generated in this round + transaction amount generated by selling the remaining grid)
Note: When "close all interval" is set to 99, it means the function is not enabled.
Close All Track Interval
The overall return ratio of the trading pair has reached the highest value and then declined.
When it returns to [the highest value of the overall - close all track interval], the tracking ends and the take profit is executed.
Note: When "close all track interval" is set to 0, it means this function is not enabled.