@@ -335,7 +335,7 @@ def crossover(
335
335
first_column : str ,
336
336
second_column : str ,
337
337
result_column = " crossover" ,
338
- data_points : int = None ,
338
+ number_of_data_points : int = None ,
339
339
strict : bool = True ,
340
340
) -> Union[PdDataFrame, PlDataFrame]:
341
341
```
@@ -424,12 +424,12 @@ pl_df = crossover(
424
424
425
425
# If you want the function to calculate the crossovors in the function
426
426
if is_crossover(
427
- pl_df, first_column = " EMA_50" , second_column = " EMA_200" , data_points = 3
427
+ pl_df, first_column = " EMA_50" , second_column = " EMA_200" , number_of_data_points = 3
428
428
):
429
429
print (" Crossover detected in Pandas DataFrame in the last 3 data points" )
430
430
431
431
# If you want to use the result of a previous crossover calculation
432
- if is_crossover(pl_df, crossover_column = " Crossover_EMA" , data_points = 3 ):
432
+ if is_crossover(pl_df, crossover_column = " Crossover_EMA" , number_of_data_points = 3 ):
433
433
print (" Crossover detected in Pandas DataFrame in the last 3 data points" )
434
434
435
435
# Calculate EMA and crossover for Pandas DataFrame
@@ -444,12 +444,12 @@ pd_df = crossover(
444
444
445
445
# If you want the function to calculate the crossovors in the function
446
446
if is_crossover(
447
- pd_df, first_column = " EMA_50" , second_column = " EMA_200" , data_points = 3
447
+ pd_df, first_column = " EMA_50" , second_column = " EMA_200" , number_of_data_points = 3
448
448
):
449
449
print (" Crossover detected in Pandas DataFrame in the last 3 data points" )
450
450
451
451
# If you want to use the result of a previous crossover calculation
452
- if is_crossover(pd_df, crossover_column = " Crossover_EMA" , data_points = 3 ):
452
+ if is_crossover(pd_df, crossover_column = " Crossover_EMA" , number_of_data_points = 3 ):
453
453
print (" Crossover detected in Pandas DataFrame in the last 3 data points" )
454
454
```
455
455
@@ -463,7 +463,7 @@ def crossunder(
463
463
first_column : str ,
464
464
second_column : str ,
465
465
result_column = " crossunder" ,
466
- data_points : int = None ,
466
+ number_of_data_points : int = None ,
467
467
strict : bool = True ,
468
468
) -> Union[PdDataFrame, PlDataFrame]:
469
469
```
@@ -552,12 +552,12 @@ pl_df = crossunder(
552
552
553
553
# If you want the function to calculate the crossunders in the function
554
554
if is_crossunder(
555
- pl_df, first_column = " EMA_50" , second_column = " EMA_200" , data_points = 3
555
+ pl_df, first_column = " EMA_50" , second_column = " EMA_200" , number_of_data_points = 3
556
556
):
557
557
print (" Crossunder detected in Pandas DataFrame in the last 3 data points" )
558
558
559
559
# If you want to use the result of a previous crossunders calculation
560
- if is_crossunder(pl_df, crossunder_column = " Crossunder_EMA" , data_points = 3 ):
560
+ if is_crossunder(pl_df, crossunder_column = " Crossunder_EMA" , number_of_data_points = 3 ):
561
561
print (" Crossunder detected in Pandas DataFrame in the last 3 data points" )
562
562
563
563
# Calculate EMA and crossunders for Pandas DataFrame
@@ -566,11 +566,11 @@ pd_df = ema(pd_df, source_column="Close", period=50, result_column="EMA_50")
566
566
567
567
# If you want the function to calculate the crossunders in the function
568
568
if is_crossunder(
569
- pd_df, first_column = " EMA_50" , second_column = " EMA_200" , data_points = 3
569
+ pd_df, first_column = " EMA_50" , second_column = " EMA_200" , number_of_data_points = 3
570
570
):
571
571
print (" Crossunders detected in Pandas DataFrame in the last 3 data points" )
572
572
573
573
# If you want to use the result of a previous crossover calculation
574
- if is_crossunder(pd_df, crossover_column = " Crossunder_EMA" , data_points = 3 ):
574
+ if is_crossunder(pd_df, crossover_column = " Crossunder_EMA" , number_of_data_points = 3 ):
575
575
print (" Crossunder detected in Pandas DataFrame in the last 3 data points" )
576
576
```
0 commit comments