freqtrade-实战 5-自定义交易策略
一、自定义策略
# Freqtrade Strategy Documentation
# -----------------------------------
1. Sample Usage of New Strategy
# Command:
freqtrade new-strategy --strategy AwesomeStrategy
# Documentation Link:
# https://www.freqtrade.io/en/stable/utils/#sample-usage-of-new-strategy
# -----------------------------------
2. Interface Version
# Current Interface Version:
INTERFACE_VERSION = 3
# Migration Guide:
# Strategy Migration between V2 and V3:
# https://www.freqtrade.io/en/stable/strategy_migration/
# -----------------------------------
3. Can Short Feature
# Learn more about enabling the shorting feature in your strategy:
# https://www.freqtrade.io/en/stable/strategy-customization/#can-short
# -----------------------------------
4. Understanding minimal_roi
# For a detailed explanation of the minimal_roi setting:
# https://www.freqtrade.io/en/stable/configuration/#understand-minimal_roi
# -----------------------------------
5. Static Stoploss
# Learn about setting a static stop-loss:
# https://www.freqtrade.io/en/stable/stoploss/#static-stop-loss
# -----------------------------------
6. Trailing Stoploss
# Understand how to implement a trailing stop-loss:
# https://www.freqtrade.io/en/stable/stoploss/#trailing-stop-loss
# -----------------------------------
7. Additional Parameters
# Parameters include process_only_new_candles, use_exit_signal, exit_profit_only, ignore_roi_if_entry_signal.
# You can see each detail in the parameters table:
# https://www.freqtrade.io/en/stable/configuration/#parameters-table
# -----------------------------------
8. Strategy Startup Candle Count
# Learn about strategy startup period configuration:
# https://www.freqtrade.io/en/stable/strategy-customization/#strategy-startup-period
# -----------------------------------
9. Strategy Parameters (Hyperoptable Parameters)
# Details on hyperoptable parameters:
# https://www.freqtrade.io/en/stable/hyperopt/#hyperoptable-parameters
# -----------------------------------
10. Order Types
# Understand different order types:
# https://www.freqtrade.io/en/stable/configuration/#understand-order_types
# -----------------------------------
11. Order Time in Force
# Learn about the order_time_in_force setting:
# https://www.freqtrade.io/en/stable/configuration/#understand-order_time_in_force
# -----------------------------------
12. Plot Config
# Explore advanced plot configuration:
# https://www.freqtrade.io/en/stable/plotting/#advanced-plot-configuration
# -----------------------------------
13. Informative Pairs
# Information on using informative pairs in your strategy:
# https://www.freqtrade.io/en/stable/strategy-customization/#informative-pairs
# -----------------------------------
14. Populate Indicators
# Customize indicators for your strategy:
# https://www.freqtrade.io/en/stable/strategy-customization/#customize-indicators
# -----------------------------------
15. Populate Entry Trend
# Define entry signal rules:
# https://www.freqtrade.io/en/stable/strategy-customization/#entry-signal-rules
# -----------------------------------
16. Populate Exit Trend
# Define exit signal rules:
# https://www.freqtrade.io/en/stable/strategy-customization/#exit-signal-rules
# -----------------------------------
为者常成,行者常至
自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)