Skip to content

Commit

Permalink
Improve comments in the SampleStrategy; set use_sell_signal = True
Browse files Browse the repository at this point in the history
  • Loading branch information
hroff-1902 committed Oct 7, 2019
1 parent e78e423 commit 4d062d4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions user_data/strategies/sample_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,48 +27,48 @@ class SampleStrategy(IStrategy):
- the prototype for the methods: minimal_roi, stoploss, populate_indicators, populate_buy_trend,
populate_sell_trend, hyperopt_space, buy_strategy_generator
"""
# Strategy intervace version - allow new iterations of the strategy interface.
# Strategy interface version - allow new iterations of the strategy interface.
# Check the documentation or the Sample strategy to get the latest version.
INTERFACE_VERSION = 2

# Minimal ROI designed for the strategy.
# This attribute will be overridden if the config file contains "minimal_roi"
# This attribute will be overridden if the config file contains "minimal_roi".
minimal_roi = {
"40": 0.0,
"30": 0.01,
"20": 0.02,
"0": 0.04
}

# Optimal stoploss designed for the strategy
# This attribute will be overridden if the config file contains "stoploss"
# Optimal stoploss designed for the strategy.
# This attribute will be overridden if the config file contains "stoploss".
stoploss = -0.10

# trailing stoploss
# Trailing stoploss
trailing_stop = False
# trailing_stop_positive = 0.01
# trailing_stop_positive_offset = 0.0 # Disabled / not configured

# Optimal ticker interval for the strategy
# Optimal ticker interval for the strategy.
ticker_interval = '5m'

# run "populate_indicators" only for new candle
# Run "populate_indicators()" only for new candle.
process_only_new_candles = False

# Experimental settings (configuration will overide these if set)
use_sell_signal = False
# These values can be overridden in the "ask_strategy" section in the config.
use_sell_signal = True
sell_profit_only = False
ignore_roi_if_buy_signal = False

# Optional order type mapping
# Optional order type mapping.
order_types = {
'buy': 'limit',
'sell': 'limit',
'stoploss': 'market',
'stoploss_on_exchange': False
}

# Optional order time in force
# Optional order time in force.
order_time_in_force = {
'buy': 'gtc',
'sell': 'gtc'
Expand Down

0 comments on commit 4d062d4

Please sign in to comment.