INVITE-ONLY SCRIPT
Mis à jour

Azgard Grid MAX

1 590
If you trade with grid bots on any platform, you may be wondering what results your grid bot settings might have shown in the past. Of course, we know that past results can by no means guarantee future results, but you can check how your settings might have performed during crisis periods in the past. And based on that data, you could change your settings to increase the probability (probability, not guarantee!) of a favorable outcome in the future.

This script allows you to set up a grid bot using step buy orders, martingale and take profit and test its past performance and roughly see the financial results that depend on the initial order and leverage you set up.

This script is designed to analyze no more than 20 buy orders, dynamic step of buy orders no more than 2 and martingale no more than 2. This script does not supply signals by itself, but only analyzes signals of other indicators.

If you have any indicator that you want to connect to the backtest - write a private message here.

Warning: using the script can not guarantee that the results obtained in the past, do not guarantee success in the future.

Тhe rules of this platform require a detailed description of the principle of grid trading: Grid trading is a bot for automating the trading of futures contracts. It is designed to place orders at specified intervals in a given price range.
While using this strategy, orders are placed above and below the set price, creating a grid of orders with gradual increase and decrease of prices. The result is a trading grid. For example, a trader might place orders to buy BTC every 1,000 USDT below the market price and sell orders every 1,000 USDT above the market price. This allows you to benefit from trading under different conditions.
Grid trading is ideal for use in volatile and "sideways" markets when prices fluctuate within a given range. This strategy allows you to profit from small price changes. The more elements in the grid, the more often transactions are made. However it leads to increased costs, because the profit on each of the orders becomes lower.
Thus, it is necessary to find a compromise between receiving small profit from committing a lot of transactions and the strategy with a smaller number of orders, but generating more profit on each of them.

The rules also require me to describe what's original in the script. Here are two fundamental differences from the other backtesters:
1. This script allows you to simultaneously configure to adjust the number of orders, the distance between them, the dynamic grid step and set a takeprofit.
2. This script is sutable not only trading on well-known cryptocurrency exchanges, but also for third-party platforms that allow you to run trading bots.
The thing is that not only on Binance you can run a grid bot, which on Binance is a grid of orders above and below the price. There are other platforms that are not exchanges, but provide the ability to connect to an exchange account and run trading bots with more sophisticated settings. Because of platform policy it is impossible to give their names here, but you can easily find them in a search on the appropriate request. Here for such platforms with advanced settings of trading robots this strategy is also suitable.

Thus, when the first order is placed, all other orders are not placed at an automatic distance from it, but at a user-configurable distance, which allows you to fine-tune the bot's grid. When the price reaches the order it is considered as executed and the takeprofit automatically changes, which can be seen by changes in the blue line. If the price reaches the blue line, the trade is closed.

HOW IT WORKS
Grid trading is a trading strategy in which an investor creates a so-called "price grid". The basic idea of the strategy is to repeatedly buy at a predetermined price, then wait until the price rises above that level and then sell the position (and vice versa when shorting or hedging).

LIMITATIONS OF THE MODEL
A trader should keep in mind that this is a static model. It works fine only if the market is in a sideways phase, and incurs heavy losses if the market takes a downtrend without a turn. The model is also unsuitable for a flip-flop in an uptrend. Therefore, the trader must carefully analyze the market in which he is going to use this strategy, making sure that the price is in a sideways phase.
Notes de version
добавил продолжительность сделок в таблице
Notes de version
minor changes
Notes de version
v.2
-подключение любого индикатора на вход
-подключение любого индикатора для фильтра
Notes de version
v2.1
Notes de version
v2.2
+ циклы
+ минимальное расстояние до ликвидации
Notes de version
minor
Notes de version
v2.7
- устранение ошибок
- добавлен фильтр на выход
- добавлены ручные выходы и усреднения
- добавлен вывод прибыли
Notes de version
bug fix
Notes de version
v3
1. Сетка СО с шагом меньше 1, которая "сжимается" к последнему СО
2. Добавлены новые стандартные фильтры с обязательными к прочтению комментариями
3. Перевод ТП в БУ при срабатывании последнего СО
4. Уведомление о срабатывании последнего СО - настраивается как ОТДЕЛЬНОЕ уведомление, отличное от уведомлений для веб-хуков
5. Определение времени торговой сессии
Notes de version
v3.1
-обновлен фильтр расстояния
Notes de version
v3.5, требуется обновление
- улучшена работа на барах реального времени, что уменьшит расхождения при работе стратегии, подключенной к бирже или брокеру
- удалено оповещение о последнем СО из-за возникающей путаницы
- для форвард-тестирования введены метки для тейк-профитов, которые срабатывают на исторических или реальных барах
Notes de version
v1.6
- добавлен трейлинг-профит по ATR
- добавлен стоп от последнего ордера
- исправлен фильтр расстояния
Notes de version
minor
Notes de version
v4.0
- добавлен режим глубокого тестирования, в котором данные о расстоянии до ликвидации и длительность сделок записываются в отчет о глубоком тестировании
- подписаны все поля настроек для корректной выгрузки и загрузки настроек стратегии с использованием оптимайзера
- оптимизирована скорость отрисовки
Notes de version
v4.1
- обновлены стандартные фильтры
- обновлен фильтр тренда
Notes de version
v5 требуется обновление
- встроенная стратегия MACD
- работа с изолированной маржой
- добавлена проверка подключаемых индикаторов "Изменение" и "появление"
- добавлен выход по сигналам только при положительном PNL
- добавлена таблица помесячной доходности
- в режим глубокого тестирования добавлена индикация вывода средств
Notes de version
Критическое обновление расчетов сделок.
Notes de version
- улучшен расчет изолированной маржи
Notes de version
- добавлено отображение информации в таблицу о таймфрейме и инструменте для отправки настроек при запросе консультации "Передача настроек"
Notes de version
- отключены настройки "по умолчанию", чтобы никого не путать. Для бэктеста необходимо либо включить опцию "без сигнала", либо подключить любой индикатор.
Notes de version
v5.2
- улучшена работа ATR-профита
- убран трейлинг ТВ
- при закрытии противоположным сигналом можно устанавливать минимальную прибыль
Notes de version
minor

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.