Update example strategies to use process_only_new_candles=True
This commit is contained in:
@@ -43,7 +43,7 @@ class Strategy001(IStrategy):
|
||||
trailing_stop_positive_offset = 0.02
|
||||
|
||||
# run "populate_indicators" only for new candle
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Experimental settings (configuration will overide these if set)
|
||||
use_exit_signal = True
|
||||
|
||||
@@ -44,7 +44,7 @@ class Strategy001_custom_exit(IStrategy):
|
||||
trailing_stop_positive_offset = 0.02
|
||||
|
||||
# run "populate_indicators" only for new candle
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Experimental settings (configuration will overide these if set)
|
||||
use_exit_signal = True
|
||||
|
||||
@@ -44,7 +44,7 @@ class Strategy002(IStrategy):
|
||||
trailing_stop_positive_offset = 0.02
|
||||
|
||||
# run "populate_indicators" only for new candle
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Experimental settings (configuration will overide these if set)
|
||||
use_exit_signal = True
|
||||
|
||||
@@ -44,7 +44,7 @@ class Strategy003(IStrategy):
|
||||
trailing_stop_positive_offset = 0.02
|
||||
|
||||
# run "populate_indicators" only for new candle
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Experimental settings (configuration will overide these if set)
|
||||
use_exit_signal = True
|
||||
|
||||
@@ -43,7 +43,7 @@ class Strategy004(IStrategy):
|
||||
trailing_stop_positive_offset = 0.02
|
||||
|
||||
# run "populate_indicators" only for new candle
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Experimental settings (configuration will overide these if set)
|
||||
use_exit_signal = True
|
||||
|
||||
@@ -45,7 +45,7 @@ class Strategy005(IStrategy):
|
||||
trailing_stop_positive_offset = 0.02
|
||||
|
||||
# run "populate_indicators" only for new candle
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Experimental settings (configuration will overide these if set)
|
||||
use_exit_signal = True
|
||||
|
||||
@@ -41,7 +41,7 @@ class ReinforcedAverageStrategy(IStrategy):
|
||||
trailing_only_offset_is_reached = False
|
||||
|
||||
# run "populate_indicators" only for new candle
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Experimental settings (configuration will overide these if set)
|
||||
use_exit_signal = True
|
||||
|
||||
@@ -41,7 +41,7 @@ class FAdxSmaStrategy(IStrategy):
|
||||
# trailing_stop_positive_offset = 0.0 # Disabled / not configured
|
||||
|
||||
# Run "populate_indicators()" only for new candle.
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Number of candles the strategy requires before producing valid signals
|
||||
startup_candle_count: int = 14
|
||||
|
||||
@@ -43,7 +43,7 @@ class FReinforcedStrategy(IStrategy):
|
||||
# trailing_stop_positive_offset = 0.0 # Disabled / not configured
|
||||
|
||||
# Run "populate_indicators()" only for new candle.
|
||||
process_only_new_candles = False
|
||||
process_only_new_candles = True
|
||||
|
||||
# Number of candles the strategy requires before producing valid signals
|
||||
startup_candle_count: int = 14
|
||||
|
||||
Reference in New Issue
Block a user