-
Notifications
You must be signed in to change notification settings - Fork 970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsi with ema #312
Comments
indicatorBuilder.add('rsi', 'rsi', options.period, {
length: options.rsi_length });
const rsifull = indicatorPeriod.getIndicator('rsi');
const rsi = rsifull.slice(-1)[0];
const averaging_periods = options.rsi_avg_periods;
const rsi_arr = rsifull.slice(-averaging_periods);
var sum_rsi = 0;
for (let i = 0; i < rsi_arr.length; i++) {
sum_rsi += rsi_arr[i];
}
const rsi_average = (sum_rsi / averaging_periods);
getOptions() {
return {
rsi_avg_periods: '14',
rsi_length: '14',
};
Sent from Proton Mail mobile
…-------- Original Message --------
On Aug. 13, 2022, 19:15, Erol Mutlu < ***@***.***> wrote:
how can i use moving average of rsi value;
thanks
—
Reply to this email directly, [view it on GitHub](#312), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AU2OXE3E7YAEVYQ7ZWNLVMLVZAUC5ANCNFSM56O3M7OA).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
what about as a array ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how can i use moving average of rsi value;
thanks
The text was updated successfully, but these errors were encountered: