This strategy is true when the indicator's return value is larger than the your buy or sell value when using a positive value. Or smaller than your value when using a negative buy or sell value.
The value returned by this indicator normally is a % based on current price.
Use return value to return the ACTUAL value.
LINEARREGRESSION_candle_period
LINEARREGRESSION_length
LINEARREGRESSION_type
Define the value returned by the indicator. y / slope / intercept. (ALL lower case)
# Buy when LINEARREGRESSION Y is smaller than 1
DEFAULT_A_buy_strategy_label = the-y
DEFAULT_A_buy_strategy = LINEARREGRESSION
DEFAULT_A_buy_strategy_direction = DOWN
DEFAULT_A_buy_value = 1
# Sell when LINEARREGRESSION Y is bigger than 1
DEFAULT_A_sell_strategy_label = the-y
DEFAULT_A_sell_strategy = LINEARREGRESSION
DEFAULT_A_sell_strategy_direction = UP
DEFAULT_A_sell_value = 2
# Buy when LINEARREGRESSION slope value is bigger than 0.25
DEFAULT_A_buy_strategy_label = the-slope
DEFAULT_A_buy_strategy = LINEARREGRESSION
DEFAULT_A_buy_value = 0.25
# Sell when LINEARREGRESSION slope value is lower than -0.10
DEFAULT_A_sell_strategy_label = the-slope
DEFAULT_A_sell_strategy = LINEARREGRESSION
DEFAULT_A_sell_value = -0.10
# Buy when LINEARREGRESSION Y is smaller than 1
DEFAULT_DCA_A_buy_strategy_label = the-y
DEFAULT_DCA_A_buy_strategy = LINEARREGRESSION
DEFAULT_DCA_A_buy_strategy_direction = DOWN
DEFAULT_DCA_A_buy_value = 1
# Sell when LINEARREGRESSION Y is bigger than 1
DEFAULT_DCA_A_sell_strategy_label = the-y
DEFAULT_DCA_A_sell_strategy = LINEARREGRESSION
DEFAULT_DCA_A_sell_strategy_direction = UP
DEFAULT_DCA_A_sell_value = 2
# Buy when LINEARREGRESSION slope value is bigger than 0.25
DEFAULT_DCA_A_buy_strategy_label = the-slope
DEFAULT_DCA_A_buy_strategy = LINEARREGRESSION
DEFAULT_DCA_A_buy_value = 0.25
# Sell when LINEARREGRESSION slope value is lower than -0.10
DEFAULT_DCA_A_sell_strategy_label = the-slope
DEFAULT_DCA_A_sell_strategy = LINEARREGRESSION
DEFAULT_DCA_A_sell_value = -0.10
# 1 hour candle / timeframe
the-y_candle_period = 3600
the-y_length = 100
the-y_type = y
the-slope_candle_period = 3600
the-slope_length = 100
the-slope_type = slope