OPEN-SOURCE SCRIPT
Updated Grid of averages

"Grid of Averages" - Smart DCA Levels & Take Profit Calculator
This indicator visualizes a dollar-cost averaging (DCA) strategy with up to 4 averaging levels. It automatically calculates entry prices, position volumes, and take-profit targets based on your balance and risk parameters. The tool displays a clear table with all key metrics and draws horizontal levels directly on the chart, helping you plan your grid trading strategy effortlessly.
Perfect for traders who want to predefine their averaging zones and exit points before entering a position.
This indicator visualizes a dollar-cost averaging (DCA) strategy with up to 4 averaging levels. It automatically calculates entry prices, position volumes, and take-profit targets based on your balance and risk parameters. The tool displays a clear table with all key metrics and draws horizontal levels directly on the chart, helping you plan your grid trading strategy effortlessly.
Perfect for traders who want to predefine their averaging zones and exit points before entering a position.
Release Notes
Grid of Averages - UpdateNew features added:
• Flexible averaging levels – You can now specify each averaging level either as a percentage or as a specific price. Simply select "Percent" or "Price" from the dropdown for each level (1-4) and enter your value.
• Customizable decimal precision – Added two new settings in Visual Settings: "Price decimals" and "Coin decimals" (default: 2). Now you can control how many decimal places are displayed for prices and coin counts in the table.
Release Notes
Updated averaging logic: volumes are now calculated through actual contract counts considering the minimum lot size. Added dual volume display (dollars and coins) with "Show dual volume" toggle. Fixed price and volume rounding precision.Release Notes
Updated the grid averaging indicator. Added support for both long (Buy) and short (Sell) positions with automatic recalculation of averaging levels and take-profit. Improved table display with grouped headers "Open Position" and "Close Position", plus customizable volume display in dollars or coins for each position separately.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
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.