Base Study
The Base Study in G-Suite serves as a powerful tool for backtesting custom trading strategies, risk management, drawdown control, and trade management. It enables you to test and refine your trading strategies based on historical data while providing essential features for effective trading.
Backtest Custom Strategies
The primary function of the Base Study is to facilitate the backtesting of custom trading strategies. It takes the properties Trigger
and Invalid Trigger
from your strategies as inputs, allowing you to evaluate their historical performance. By utilizing this tool, you can assess how your strategies would have performed in the past, gain insights into potential profitability, and make data-driven decisions for future trading.
Risk Management
The Base Study offers risk management capabilities to help you protect your capital. You can define parameters such as Leverage
, Size
, Risk per trade
, and Reward ratio
. These settings allow you to control the amount of risk associated with each trade and tailor your strategy to your risk tolerance.
Drawdown Control
Managing drawdown is crucial for preserving your trading capital. With the Base Study, you can set Max intraday loss (cash)
limits for your strategies. If the drawdown exceeds the defined threshold, the study can automatically stop trading to prevent further losses. This feature ensures that your trading remains within acceptable risk levels.
Trade Management
Efficient trade management is vital for successful trading. The Base Study offers options for trade management, including setting Fixed TP
levels and specifying whether positions should be closed when the invalid trigger condition is met (Close on invalidation
). These tools enable you to define your exit strategies and optimize your trading approach.
Utilize the G-Suite Base Study to refine your trading strategies, manage risk effectively, and gain a deeper understanding of your trading performance through comprehensive backtesting.
Settings
- Name
Source: Trigger
- Type
- strategy
- Description
The trigger condition for the strategy, typically set to the identifier of a strategy signal.
Default value:close
- Name
Source: Invalid Trigger
- Type
- strategy
- Description
The condition which invalidates the trigger for the strategy, typically set to the identifier of an invalidation strategy signal.
Default value:close
- Name
Risk: Leverage
- Type
- integer
- Description
The leverage ratio applied to the trading strategy.
Default value:10
- Name
Risk: Size
- Type
- float
- Description
The size of each trade as a percentage of the equity or a fixed size if enabled.
Default value:0.3
- Name
Risk: Risk per trade
- Type
- percentage
- Description
The percentage of total capital risked on each trade.
Default value:7%
- Name
Risk: Reward ratio
- Type
- float
- Description
The target reward-to-risk ratio for each trade.
Default value:5
- Name
Risk: Max Orders
- Type
- integer
- Description
The maximum number of simultaneous orders allowed.
Default value:2
- Name
Risk: Compound profits
- Type
- boolean
- Description
Indicates whether profits should be compounded.
Default value:true
- Name
Risk: Fixed TP
- Type
- boolean
- Description
Determines if a fixed take profit level is used.
Default value:true
- Name
Risk: Close on invalidation
- Type
- boolean
- Description
Specifies if positions should be closed when the invalid trigger condition is met.
Default value:true
- Name
Drawdown Management: Max drawdown equity
- Type
- percentage
- Description
The maximum allowed drawdown on equity as a percentage before stopping the strategy.
Default value:50%
- Name
Drawdown Management: Max intraday loss (cash)
- Type
- currency
- Description
The maximum monetary loss allowed in a single day.
Default value:150
- Name
Drawdown Management: Max intraday loss equity
- Type
- percentage
- Description
The maximum percentage loss of equity allowed in a single day.
Default value:50%
- Name
Drawdown Management: Enable loss equity
- Type
- boolean
- Description
Indicates whether the loss of equity control is enabled.
Default value:false
- Name
Drawdown Management: Max const loss days
- Type
- integer
- Description
The maximum number of consecutive loss days allowed.
Default value:50
- Name
Settings: Start time
- Type
- datetime
- Description
The starting time for the strategy to begin trading.
Default value:2023-01-01T01:00
- Name
Settings: Trade delay bars
- Type
- integer
- Description
The number of bars to wait after the start time before executing the first trade.
Default value:5
- Name
Settings: Print params in comments
- Type
- boolean
- Description
Option to print the strategy parameters in the chart comments.
Default value:false
- Name
Settings: Debug
- Type
- boolean
- Description
Enable or disable debug mode for additional output.
Default value:false