From 6f419ef11c1e159db4658b49e9dfb1b7cd213d5b Mon Sep 17 00:00:00 2001 From: Brandon Ros Date: Sun, 19 Jun 2022 12:20:25 -0400 Subject: [PATCH] add rsi2Strategy to STRATEGY_INFOS (#86) --- src/backtest/strategyInfo.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/backtest/strategyInfo.ts b/src/backtest/strategyInfo.ts index 570a69a..4e94142 100644 --- a/src/backtest/strategyInfo.ts +++ b/src/backtest/strategyInfo.ts @@ -1,12 +1,16 @@ // Copyright (c) 2022 Onur Cinar. All Rights Reserved. // https://github.com/cinar/indicatorts +import { StrategyFunction } from '../strategy/strategyFunction'; +// buy and hold import { buyAndHoldStrategy } from '../strategy/buyAndHoldStrategy'; +// momentum import { awesomeOscillatorStrategy } from '../strategy/momentum/awesomeOscillatorStrategy'; import { ichimokuCloudStrategy } from '../strategy/momentum/ichimokuCloudStrategy'; +import { rsi2Strategy } from '../strategy/momentum/rsi2Strategy'; import { stochasticOscillatorStrategy } from '../strategy/momentum/stochasticOscillatorStrategy'; import { williamsRStrategy } from '../strategy/momentum/williamsRStrategy'; -import { StrategyFunction } from '../strategy/strategyFunction'; +// trend import { defaultAbsolutePriceOscillatorStrategy } from '../strategy/trend/absolutePriceOscillatorStrategy'; import { aroonStrategy } from '../strategy/trend/aroonStrategy'; import { balanceOfPowerStrategy } from '../strategy/trend/balanceOfPowerStrategy'; @@ -16,9 +20,11 @@ import { macdStrategy } from '../strategy/trend/macdStrategy'; import { parabolicSarStrategy } from '../strategy/trend/parabolicSarStrategy'; import { typicalPriceStrategy } from '../strategy/trend/typicalPriceStrategy'; import { vortexStrategy } from '../strategy/trend/vortexStrategy'; +// volatility import { accelerationBandsStrategy } from '../strategy/volatility/accelerationBandsStrategy'; import { bollingerBandsStrategy } from '../strategy/volatility/bollingerBandsStrategy'; import { projectionOscillatorStrategy } from '../strategy/volatility/projectionOscillatorStrategy'; +// volume import { chaikinMoneyFlowStrategy } from '../strategy/volume/chaikinMoneyFlowStrategy'; import { easeOfMovementStrategy } from '../strategy/volume/easeOfMovementStrategy'; import { forceIndexStrategy } from '../strategy/volume/forceIndexStrategy'; @@ -38,14 +44,20 @@ export interface StrategyInfo { * Strategy infos. */ export const STRATEGY_INFOS: StrategyInfo[] = [ + // buy and hold { name: 'Buy Hold', strategy: buyAndHoldStrategy, }, + // momentum { name: 'Awesome Oscillator', strategy: awesomeOscillatorStrategy, }, + { + name: 'RSI 2', + strategy: rsi2Strategy, + }, { name: 'Ichimoku Cloud', strategy: ichimokuCloudStrategy, @@ -58,6 +70,7 @@ export const STRATEGY_INFOS: StrategyInfo[] = [ name: 'Williams R', strategy: williamsRStrategy, }, + // trend { name: 'Absolute Price Oscillator (APO)', strategy: defaultAbsolutePriceOscillatorStrategy, @@ -94,6 +107,7 @@ export const STRATEGY_INFOS: StrategyInfo[] = [ name: 'Vortex Strategy', strategy: vortexStrategy, }, + // volatility { name: 'Acceleration Bands', strategy: accelerationBandsStrategy, @@ -106,6 +120,7 @@ export const STRATEGY_INFOS: StrategyInfo[] = [ name: 'Projection Oscillator', strategy: projectionOscillatorStrategy, }, + // volume { name: 'Chaikin Money Flow (CMF)', strategy: chaikinMoneyFlowStrategy,