Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 2.96 KB

index.md

File metadata and controls

69 lines (42 loc) · 2.96 KB

Momentum Strategies

Momentum strategies generate signals based on a momentum indicator.

Awesome Oscillator Strategy

The awesomeOscillatorStrategy uses the ao values that are generated by the Awesome Oscillator indicator function to provide a SELL action when the ao is below zero, and a BUY action when ao is above zero.

import {awesomeOscillatorStrategy} from 'indicatorts';

const actions = awesomeOscillatorStrategy(asset);

Ichimoku Cloud Strategy

The ichimokuCloudStrategy uses the ao values that are generated by the Ichimoku Cloud indicator function to provide a BUY action when the leadingSpanA is greather than leadingSpanB, and a SELL action when the leadingSpanA is less than leadingSpanB, and a HOLD action when leadingSpanA is equal to leadingSpanB.

import {ichimokuCloudStrategy} from 'indicatorts';

const actions = ichimokuCloudStrategy(asset);

RSI 2 Strategy

The rsi2Strategy uses the rsi values that are generated by the RSI 2 indicator function to provide a BUY action when 2-period RSI moves below 10, and a SELL action when the 2-period RSI moved above 90, and a HOLD action otherwise.

import {rsi2Strategy} from 'indicatorts';

const actions = rsi2Strategy(asset);

Stochastic Oscillator Strategy

The stochasticOscillatorStrategy uses the ao values that are generated by the Stochastic Oscillator indicator function to provide a BUY action when k and d are less than 20, a SELL action when the k and d are greather than 80, a HOLD action otherwise.

import {stochasticOscillatorStrategy} from 'indicatorts';

const actions = stochasticOscillatorStrategy(asset);

Williams R Strategy

The williamsRStrategy uses the wr values that are generated by the Williams R indicator function to provide a SELL action when the wr is below -20, and a BUY action when wr is above -80.

import {williamsRStrategy} from 'indicatorts';

const actions = williamsRStrategy(asset);

Disclaimer

The information provided on this project is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.

License

Copyright (c) 2022 Onur Cinar. All Rights Reserved.

The source code is provided under MIT License.