OPEN-SOURCE SCRIPT

Updated

Strategy Introduction:

1. We know that the exchange can only set a maximum of 100 grids. However, our grid strategy can set a maximum of 350 grids.

2. We have added the modes of proportional and differential warehousing.

3. It should be noted that we have not set any filtering conditions, which means that when the price falls below the grid, we will execute a buy action at the closing price, and when the price falls above the grid, we will execute a sell action;

4. We suggest limiting the trading time cycle to 5 meters, as sometimes errors may appear on TV due to the dense grid or the inability to draw so many grids;

5. Please ensure that the minimum spacing between each grid is not less than 0.1%, as this is extremely difficult to profit from, and on the other hand, it may not function due to excessively dense spacing;

6. The maximum number of grids is 350, and the minimum number is currently 3;

matters needing attention:

Don't choose to go long or short together, and don't choose to go even short or short;

Closing position setting: It is recommended to select it to avoid order accumulation;

Unable to trade: If unable to trade normally, switch to a 1m cycle;

Number of cells: Calculate it yourself, 350 is just the maximum number of cells that can be adjusted;

Grid spacing: minimum 0.1%, below which no profit can be made;

Position value: default is 100u, which is the amount already leveraged;

Multiple investment: The order amount for each order is the same, and there is no need for multiple investment;

Open both long and short positions: You can open multiple positions for one account and open one position for one account. Do not open both long and short positions for the same target at the same time

Release Notes

instructions:1. High and low points: The parameters of Upper boundary and Lower boundary need to be modified based on the price of the subject matter. We default to ETHUSDT The price of P, if the target of your transaction is not this, then this is a parameter that you must modify;

2. Trading cycle: It is recommended to use a 5m cycle as it is more in line with the actual trading situation and results in a longer time interval;

3. Packing method: Equal ratio packing and equal difference packing are two different packing methods. Equal ratio plus warehouse is based on proportion, while equal difference plus warehouse is a fixed amount. So, my suggestion is to use proportional warehousing.

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.