Perpetual contract multi-currency balance strategy

Author: ChaoZhang, Date: 2022-06-27 09:58:00
Tags:

FMZ quantitative trading platform use teaching

https://www.youtube.com/watch?v=hlkvrRqEHTE

Perpetual contract balance strategy Video Guide:

https://www.youtube.com/watch?v=CkeIY8GZo0U

The balance strategy introduction:

At present, FMZ has officially released a sustainable perpetual contract grid strategy, which is very popular among users, however, The grid strategy also has some problems:

  1. It is necessary to set parameters such as initial price, grid spacing, grid value, long-short mode, etc. The settings are cumbersome and have a great impact on revenue, making it difficult for beginners to set.
  2. The perpetual contract grid strategy has high short risk and relatively low long risk. Even if the grid value is set to a small value, it will not have a great reduce on the short-liquiation price.
  3. The perpetual contract grid strategy can choose to only long mode to avoid the risk of shorting, and it seems okay so far. However, it needs to face the problem that the current price exceeds the initial price, resulting in an empty position, and the initial price needs to be reset.

The balance strategy always holds long positions with a fixed ratio or value, sells some when price rises, and buys when price falls. It can be run with simple settings. Even if the currency price rises a lot, there is no risk of going short. The problem with the spot balance strategy is that the capital utilization rate is low, and there is no easy way to increase leverage. And perpetual contracts can solve the problem. If the total money is 1000, you can open a position of 2000, which exceeds the original capital and improves the capital utilization rate. Another parameter is the adjustment ratio, which controls when to change the position. For example, if it is set to 0.01, which means sell 1% position if the position value increase by 1%.

Risk:

  1. The risk of liquidation in a big drop. the position amount will continue to increase and it is likely to be liquidated. However, if the leverage is lower than 1, the risk of liquidation will be controllable, and there is no risk of liquidation in the balance strategy w**hen the price go up.
  2. API error, if the return of API access is delayed or the data is wrong, it will cause a strategy exception.
  3. Funding fee loss, there is little risk in this respect. Generally, the fee will be positive when the price go up. If the funding fee is too high, you can close the position in advance.

More

sxjntuI rented the strategy, why can't I see the strategy?

IssacFutures_OP 4: 400: {"code":"50000","data":[],"msg:"Body can not be empty. "} The following exception is where it went wrong.

MAFEMACan you add a WeChat, little brother? Little brother wants to know how to set the parameters.

The NinjaHow do you set this to reserve positions proportionally?

ChaoZhangIn my list of strategies, there is a red strategy.

ChaoZhangUpdating the host

ChaoZhang fmz_zhangchao

ChaoZhangOnly by value