FreedX Grid Backtest

freedx Mis à jour   
█ FreedX Grid Backtest is an open-source tool that offers accurate GRID calculations for GRID trading strategies. This advanced tool allows users to backtest GRID trading parameters with precision, accurately reflecting exchange functionalities. We are committed to enhancing trading strategies through precise backtesting solutions and address the issue of unreliable backtesting practices observed on GRID trading strategies. FreedX Grid Backtest is designed for optimal calculation speed and plotting efficiency, ensuring users to achieve fastest calculations during their analysis.


The core of the FreedX Grid Backtest tool lies in its ability to simulate grid trading strategies. Grid trading involves placing orders at regular intervals within a predefined price range, creating a grid of orders that capitalize on market volatility.


⚙️ Backtest Range:
    → Purpose: Allows users to specify the backtesting range of GRID strategy. Closes all positions at the end of this range.
    → How to Use: Drag the dates to fit the desired backtesting range.

⚙️ Investment & Compounding:
    → Purpose: Allows users to specify the total investment amount and select between fixed and compound investment strategies. Compounding adjusts trade quantities based on performance, enhancing the grid strategy's adaptability to market changes.
    → How to Use: Set the desired investment amount and choose between "Fixed" or "Compound" for the investment method.

⚙️ Leverage & Grid Levels:
    → Purpose: Leverage amplifies the investment amount, increasing potential returns (and risks). Users can define the number of grid levels, which determines how the investment is distributed across the grid.
    → How to Use: Input the desired leverage and number of grids. The tool automatically calculates the distribution of funds across each grid level.

⚙️ Distribution Type & Mode:
    → Purpose: Users can select the distribution type (Arithmetic or Geometric) to set how grid levels are determined. The mode (Neutral, Long, Short) dictates the direction of trades within the grid.
    → How to Use: Choose the distribution type and mode based on the desired trading strategy and market outlook.

⚙️ Enable LONG/SHORT Grids exclusively:


Beyond automated settings, the tool offers manual adjustments for traders seeking finer control over their grid strategies.


⚙️ Manual Level Adjustment:
    → Purpose: Enables traders to manually set the top, reference, and bottom levels of the grid, offering precision control over the trading range.
    → How to Use: Activate manual levels and adjust the top, reference, and bottom levels as needed to define the grid's scope.

⚙️ Stop Triggers:
    → Purpose: Provides an option to set upper and lower price limits, acting as stop triggers to close or terminate trades. This feature safeguards investments against significant market movements outside the anticipated range.
    → How to Use: Enable stop triggers and specify the upper and lower limits. The tool will automatically manage positions based on these parameters.


This guide gives you a quick and clear overview of the FreedX Grid Backtest tool, explaining how you can use this cutting-edge tool to improve your trading strategies.
Notes de version:
🛠️ Default settings updated.
Notes de version:
🛠 Investment Settings:
    → Auto mode added.
    → Information updated.
    → Fixed mode enhanced with a fixed contracts variable for more realistic testing.

🛠 UI:
    → Quantity and capital control information tables added to notify the user.
Notes de version:
🛠 Grid Settings:
    → Target modes added. Exchange mode is the default, and it sets take-profit levels based on exchange behavior.
    → Default Settings changed.
    → Recalculate: If "After order is filled" is enabled, the grid calculates more accurately on higher timeframes. It is set to passive by default due to warnings.

Automate your backtested strategies with our trading automation software. Visit us at
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

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

Vous voulez utiliser ce script sur un graphique ?