In that link, you will find a function that returns a series of supports and resistances for a given datasets of lows and highs.
Every single time I try to use this, the data returned is always empty. I isolated it to a ‘SettingWithCopyWarning’ issue that arises at line 76 and 78 of that file (when trying to set a value at the index of df[‘sup’] and df[‘res’].)
Anyone understand how to set values to dataframes without that error? If I remove the x and put a single integer, it will actually write to the index location. Would appreciate some help.