File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ def crossover(
2424 second_column: Name of the second column
2525 result_column (optional): Name of the column to
2626 store the crossover points
27- number_of_data_points (optional): Number of recent rows to consider (optional)
27+ number_of_data_points (optional):
28+ Number of recent rows to consider (optional)
2829 strict (optional): If True, requires exact crossovers; otherwise,
2930 detects when one surpasses the other.
3031
Original file line number Diff line number Diff line change @@ -86,9 +86,12 @@ def is_crossunder(
8686 data (Union[pd.DataFrame, pl.DataFrame]): The input data.
8787 first_column (str): The name of the first series.
8888 second_column (str): The name of the second series.
89- crossunder_column (str) (optional): The name of the column to store the crossunder points.
90- number_of_data_points (int) (optional): The number of data points to consider. Defaults to None.
91- strict (bool) (optional): If True, requires a strict crossunder. Defaults to True.
89+ crossunder_column (str) (optional):
90+ The name of the column to store the crossunder points.
91+ number_of_data_points (int) (optional):
92+ The number of data points to consider. Defaults to None.
93+ strict (bool) (optional): If True, requires a strict
94+ crossunder. Defaults to True.
9295
9396 Returns:
9497 bool: True if a crossunder occurs, False otherwise.
You can’t perform that action at this time.
0 commit comments