├── .codecov.yml ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── analysis.go ├── analysis_test.go ├── cached_indicator.go ├── candle.go ├── candle_test.go ├── example ├── basic.go └── strategy.go ├── go.mod ├── go.sum ├── indicator.go ├── indicator_aroon.go ├── indicator_aroon_test.go ├── indicator_average.go ├── indicator_average_test.go ├── indicator_average_true_range.go ├── indicator_average_true_range_test.go ├── indicator_basic.go ├── indicator_basic_test.go ├── indicator_bollinger_band.go ├── indicator_bollinger_band_test.go ├── indicator_cci.go ├── indicator_cci_test.go ├── indicator_constant.go ├── indicator_constant_test.go ├── indicator_derivative.go ├── indicator_derivative_test.go ├── indicator_difference.go ├── indicator_difference_test.go ├── indicator_exponential_moving_average.go ├── indicator_exponential_moving_average_test.go ├── indicator_fixed.go ├── indicator_fixed_test.go ├── indicator_gains.go ├── indicator_gains_test.go ├── indicator_keltner_channel.go ├── indicator_keltner_channel_test.go ├── indicator_macd.go ├── indicator_macd_test.go ├── indicator_maximum_drawdown.go ├── indicator_maximum_drawdown_test.go ├── indicator_maximum_value.go ├── indicator_maximum_value_test.go ├── indicator_mean_deviation.go ├── indicator_mean_deviation_test.go ├── indicator_minimum_value.go ├── indicator_minimum_value_test.go ├── indicator_modified_moving_average.go ├── indicator_modified_moving_average_test.go ├── indicator_relative_strength.go ├── indicator_relative_strength_test.go ├── indicator_relative_vigor_index.go ├── indicator_relative_vigor_index_test.go ├── indicator_simple_moving_average.go ├── indicator_simple_moving_average_test.go ├── indicator_standard_deviation.go ├── indicator_standard_deviation_test.go ├── indicator_stochastic_oscillator.go ├── indicator_stochastic_oscillator_test.go ├── indicator_trend.go ├── indicator_trend_test.go ├── indicator_true_range.go ├── indicator_true_range_test.go ├── indicator_variance.go ├── indicator_variance_test.go ├── indicator_windowed_standard_deviation.go ├── math.go ├── math_test.go ├── order.go ├── position.go ├── position_test.go ├── rule.go ├── rule_cross.go ├── rule_cross_test.go ├── rule_increase_decrease.go ├── rule_increase_decrease_test.go ├── rule_position.go ├── rule_position_test.go ├── rule_stop.go ├── rule_stop_test.go ├── rule_test.go ├── scripts └── release.sh ├── strategy.go ├── strategy_test.go ├── testutils.go ├── timeperiod.go ├── timeperiod_test.go ├── timeseries.go ├── timeseries_test.go ├── tradingrecord.go └── tradingrecord_test.go /.codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/.codecov.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | .DS_Store 3 | .idea/* 4 | bin/* 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/README.md -------------------------------------------------------------------------------- /analysis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/analysis.go -------------------------------------------------------------------------------- /analysis_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/analysis_test.go -------------------------------------------------------------------------------- /cached_indicator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/cached_indicator.go -------------------------------------------------------------------------------- /candle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/candle.go -------------------------------------------------------------------------------- /candle_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/candle_test.go -------------------------------------------------------------------------------- /example/basic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/example/basic.go -------------------------------------------------------------------------------- /example/strategy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/example/strategy.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/go.sum -------------------------------------------------------------------------------- /indicator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator.go -------------------------------------------------------------------------------- /indicator_aroon.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_aroon.go -------------------------------------------------------------------------------- /indicator_aroon_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_aroon_test.go -------------------------------------------------------------------------------- /indicator_average.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_average.go -------------------------------------------------------------------------------- /indicator_average_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_average_test.go -------------------------------------------------------------------------------- /indicator_average_true_range.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_average_true_range.go -------------------------------------------------------------------------------- /indicator_average_true_range_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_average_true_range_test.go -------------------------------------------------------------------------------- /indicator_basic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_basic.go -------------------------------------------------------------------------------- /indicator_basic_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_basic_test.go -------------------------------------------------------------------------------- /indicator_bollinger_band.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_bollinger_band.go -------------------------------------------------------------------------------- /indicator_bollinger_band_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_bollinger_band_test.go -------------------------------------------------------------------------------- /indicator_cci.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_cci.go -------------------------------------------------------------------------------- /indicator_cci_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_cci_test.go -------------------------------------------------------------------------------- /indicator_constant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_constant.go -------------------------------------------------------------------------------- /indicator_constant_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_constant_test.go -------------------------------------------------------------------------------- /indicator_derivative.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_derivative.go -------------------------------------------------------------------------------- /indicator_derivative_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_derivative_test.go -------------------------------------------------------------------------------- /indicator_difference.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_difference.go -------------------------------------------------------------------------------- /indicator_difference_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_difference_test.go -------------------------------------------------------------------------------- /indicator_exponential_moving_average.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_exponential_moving_average.go -------------------------------------------------------------------------------- /indicator_exponential_moving_average_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_exponential_moving_average_test.go -------------------------------------------------------------------------------- /indicator_fixed.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_fixed.go -------------------------------------------------------------------------------- /indicator_fixed_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_fixed_test.go -------------------------------------------------------------------------------- /indicator_gains.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_gains.go -------------------------------------------------------------------------------- /indicator_gains_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_gains_test.go -------------------------------------------------------------------------------- /indicator_keltner_channel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_keltner_channel.go -------------------------------------------------------------------------------- /indicator_keltner_channel_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_keltner_channel_test.go -------------------------------------------------------------------------------- /indicator_macd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_macd.go -------------------------------------------------------------------------------- /indicator_macd_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_macd_test.go -------------------------------------------------------------------------------- /indicator_maximum_drawdown.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_maximum_drawdown.go -------------------------------------------------------------------------------- /indicator_maximum_drawdown_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_maximum_drawdown_test.go -------------------------------------------------------------------------------- /indicator_maximum_value.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_maximum_value.go -------------------------------------------------------------------------------- /indicator_maximum_value_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_maximum_value_test.go -------------------------------------------------------------------------------- /indicator_mean_deviation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_mean_deviation.go -------------------------------------------------------------------------------- /indicator_mean_deviation_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_mean_deviation_test.go -------------------------------------------------------------------------------- /indicator_minimum_value.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_minimum_value.go -------------------------------------------------------------------------------- /indicator_minimum_value_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_minimum_value_test.go -------------------------------------------------------------------------------- /indicator_modified_moving_average.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_modified_moving_average.go -------------------------------------------------------------------------------- /indicator_modified_moving_average_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_modified_moving_average_test.go -------------------------------------------------------------------------------- /indicator_relative_strength.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_relative_strength.go -------------------------------------------------------------------------------- /indicator_relative_strength_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_relative_strength_test.go -------------------------------------------------------------------------------- /indicator_relative_vigor_index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_relative_vigor_index.go -------------------------------------------------------------------------------- /indicator_relative_vigor_index_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_relative_vigor_index_test.go -------------------------------------------------------------------------------- /indicator_simple_moving_average.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_simple_moving_average.go -------------------------------------------------------------------------------- /indicator_simple_moving_average_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_simple_moving_average_test.go -------------------------------------------------------------------------------- /indicator_standard_deviation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_standard_deviation.go -------------------------------------------------------------------------------- /indicator_standard_deviation_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_standard_deviation_test.go -------------------------------------------------------------------------------- /indicator_stochastic_oscillator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_stochastic_oscillator.go -------------------------------------------------------------------------------- /indicator_stochastic_oscillator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_stochastic_oscillator_test.go -------------------------------------------------------------------------------- /indicator_trend.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_trend.go -------------------------------------------------------------------------------- /indicator_trend_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_trend_test.go -------------------------------------------------------------------------------- /indicator_true_range.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_true_range.go -------------------------------------------------------------------------------- /indicator_true_range_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_true_range_test.go -------------------------------------------------------------------------------- /indicator_variance.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_variance.go -------------------------------------------------------------------------------- /indicator_variance_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_variance_test.go -------------------------------------------------------------------------------- /indicator_windowed_standard_deviation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/indicator_windowed_standard_deviation.go -------------------------------------------------------------------------------- /math.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/math.go -------------------------------------------------------------------------------- /math_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/math_test.go -------------------------------------------------------------------------------- /order.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/order.go -------------------------------------------------------------------------------- /position.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/position.go -------------------------------------------------------------------------------- /position_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/position_test.go -------------------------------------------------------------------------------- /rule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule.go -------------------------------------------------------------------------------- /rule_cross.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_cross.go -------------------------------------------------------------------------------- /rule_cross_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_cross_test.go -------------------------------------------------------------------------------- /rule_increase_decrease.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_increase_decrease.go -------------------------------------------------------------------------------- /rule_increase_decrease_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_increase_decrease_test.go -------------------------------------------------------------------------------- /rule_position.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_position.go -------------------------------------------------------------------------------- /rule_position_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_position_test.go -------------------------------------------------------------------------------- /rule_stop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_stop.go -------------------------------------------------------------------------------- /rule_stop_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_stop_test.go -------------------------------------------------------------------------------- /rule_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/rule_test.go -------------------------------------------------------------------------------- /scripts/release.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/scripts/release.sh -------------------------------------------------------------------------------- /strategy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/strategy.go -------------------------------------------------------------------------------- /strategy_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/strategy_test.go -------------------------------------------------------------------------------- /testutils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/testutils.go -------------------------------------------------------------------------------- /timeperiod.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/timeperiod.go -------------------------------------------------------------------------------- /timeperiod_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/timeperiod_test.go -------------------------------------------------------------------------------- /timeseries.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/timeseries.go -------------------------------------------------------------------------------- /timeseries_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/timeseries_test.go -------------------------------------------------------------------------------- /tradingrecord.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/tradingrecord.go -------------------------------------------------------------------------------- /tradingrecord_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sdcoffey/techan/HEAD/tradingrecord_test.go --------------------------------------------------------------------------------