Stock-Trading-Using-Machine-Learning icon indicating copy to clipboard operation
Stock-Trading-Using-Machine-Learning copied to clipboard

RL.py Arguments Error

Open MonilSompura opened this issue 1 year ago • 1 comments

Screenshot 2023-07-20 160016

Getting the Arguments Error : get_MACD() takes 1 positional argument but 2 were given

MonilSompura avatar Jul 20 '23 10:07 MonilSompura

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.

MonilSompura avatar Jul 21 '23 10:07 MonilSompura