alpacahq / Momentum-Trading-Example

An example algorithm for a momentum-based day trading strategy.
656 stars 218 forks source link

ERROR:root:error while consuming ws messages: macd() got an unexpected keyword argument 'n_fast' #35

Closed josephfkrause closed 3 years ago

josephfkrause commented 3 years ago

Fixed the Mcad issue, now getting this. Im a new coder so sorry if this is easy. Im still learning my way through this code.

Thank you.

edit: also, im only importing ta, and the using ta.trend.macd instead

connor-mcswain commented 3 years ago

Hey, looks like macd from ta.trend changed the argument names. Try replacing n_fast and n_slow with window_fast and window_slow.

josephfkrause commented 3 years ago

Hey, looks like macd from ta.trend changed the argument names. Try replacing n_fast and n_slow with window_fast and window_slow.

Yes, this is solution, I found in function documentation. I was running it today to make sure it worked before closing. Thank you!