enzedengineer

Ultimate Grid Tool + Alerts (DCA & Limit Orders) [enzedengineer]

Overview
The "Ultimate Grid Tool + Alerts" script works much like a grid bot from automated trading services such as 3Commas making it a good free alternative with some extra utility.

How it works
The user is prompted to set up a grid by manually defining a lower and upper range and then by selecting how many grid segments they want (max 20). The script will automatically create equally spaced grids within this defined range. The script has built in alerts which are intended to be used in conjunction with a third-party application to execute buy and sell orders on an exchange.

The script has two alert functionalities to choose between:
  • Limit orders (like traditional grid bots) or;
  • DCA zones (time-based)

DCA zones:
This is the default selection. Each zone has its own alert condition which is triggered if the price closes within that zone. The frequency of the alert is determined by the user's chart resolution, therefore you can have the alert trigger every day, or 4 hours, or 30 minutes and so on. This allows for flexibility, for example, you could go from DCA'ing at $20 per day at higher prices to $100 per day as the price drops into the lower end of your grid range.

Limit orders:
This mode is selected by checking the "Limit Order" box. As mentioned earlier, this mode works like traditional grid bots with each grid line representing a limit order. The alert condition is met when ta.cross(close, gridline) = true.

Buy and Sell:
This mode is selected by checking the "Buy and Sell" box. This is a visual modification only which changes the colour of the grids to help plan the user's trading. Please note, there is no buying or selling logic within the script itself - this should be built into the alert message to be used with a third-party application for exchange order execution.


Use case: The author of this script has been using it with the default settings to DCA into Bitcoin in the current bear market. Using a chart resolution of 15 minutes the script purchases x-amount of Bitcoin every 15 minutes (Alertatron executes the exchange orders). This method provides a well blended average price and takes away the internal conundrum of "should I buy some today". No matter what, the bot will make a purchase within at least 15 minutes of the ultimate Bitcoin bottom and arguably this gives a psychological edge and reduces FOMO (fear of missing out). 
受保护脚本
该脚本是闭源发布的,您可以自由使用它。您可以收藏它以在图表上使用。您无法查看或修改其源代码。
免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?