Skip to content

Commit

Permalink
fixing pylint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
fmilthaler committed Oct 2, 2023
1 parent 53cd5f8 commit 5e58a24
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions finquant/momentum_indicators.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
""" This module provides function(s) to compute momentum indicators
used in technical analysis such as RSI, MACD etc. """
import datetime
from typing import List, Optional

import matplotlib.pyplot as plt
import mplfinance as mpf
import pandas as pd

from finquant.data_types import FLOAT, INT, SERIES_OR_DATAFRAME
from finquant.portfolio import _yfinance_request
from finquant.type_utilities import type_validation
from finquant.utils import all_list_ele_in_other, re_download_stock_data

Expand Down Expand Up @@ -390,7 +388,13 @@ def plot_macd(
"""
# calculate MACD:
df = calculate_macd(data, longer_ema_window, shorter_ema_window, signal_ema_window)
df = calculate_macd(
data,
longer_ema_window,
shorter_ema_window,
signal_ema_window,
stock_name=stock_name,
)

# plot macd
macd_color = gen_macd_color(df)
Expand Down

0 comments on commit 5e58a24

Please sign in to comment.