Stock-Trading-Using-Machine-Learning
Stock-Trading-Using-Machine-Learning copied to clipboard
RL.py Arguments Error
Getting the Arguments Error : get_MACD() takes 1 positional argument but 2 were given
Try changing the function PARAMETERS to : def get_MACD(df, index): and Return : return MACD_hist[index]
Rest remains the same : mh = get_MACD(df, index)
Doing it in all functions will solve this error.