Horje
bill wiliams fractal python pandas Code Example
bill wiliams fractal python pandas
def roll(df):
    bear_fractal = df['high'].rolling(5, center=True).apply(lambda x: x[2] == max(x), raw=True)
    bull_fractal = df['low'].rolling(5, center=True).apply(lambda x: x[2] == min(x), raw=True)
    return bear_fractal, bull_fractal




Python

Related
seaborn boxplot (both categorical and numeric data) Code Example seaborn boxplot (both categorical and numeric data) Code Example
pysft connection drop issue Code Example pysft connection drop issue Code Example
flatten columns after pivot pandas Code Example flatten columns after pivot pandas Code Example
python double indentation Code Example python double indentation Code Example
nested ternary operator python Code Example nested ternary operator python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8