Skip to content

Commit

Permalink
add rsi2Strategy to STRATEGY_INFOS (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonros authored Jun 19, 2022
1 parent 5716281 commit 6f419ef
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/backtest/strategyInfo.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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';
Expand All @@ -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,
Expand All @@ -58,6 +70,7 @@ export const STRATEGY_INFOS: StrategyInfo[] = [
name: 'Williams R',
strategy: williamsRStrategy,
},
// trend
{
name: 'Absolute Price Oscillator (APO)',
strategy: defaultAbsolutePriceOscillatorStrategy,
Expand Down Expand Up @@ -94,6 +107,7 @@ export const STRATEGY_INFOS: StrategyInfo[] = [
name: 'Vortex Strategy',
strategy: vortexStrategy,
},
// volatility
{
name: 'Acceleration Bands',
strategy: accelerationBandsStrategy,
Expand All @@ -106,6 +120,7 @@ export const STRATEGY_INFOS: StrategyInfo[] = [
name: 'Projection Oscillator',
strategy: projectionOscillatorStrategy,
},
// volume
{
name: 'Chaikin Money Flow (CMF)',
strategy: chaikinMoneyFlowStrategy,
Expand Down

0 comments on commit 6f419ef

Please sign in to comment.