Update docstring in TPS strategy
This commit is contained in:
parent
c777259d71
commit
c1e5ce1695
@ -6,7 +6,8 @@ from indicators import rsi, sma
|
|||||||
def tps(data: DataFrame) -> Series:
|
def tps(data: DataFrame) -> Series:
|
||||||
"""
|
"""
|
||||||
Calculate signals based on the Time, Price, Scale-in (TPS) strategy.
|
Calculate signals based on the Time, Price, Scale-in (TPS) strategy.
|
||||||
Returns a Series with 'Long' for signals and 'None' otherwise, without modifying the original DataFrame.
|
|
||||||
|
Returns a Series with 'L' for long signals and 'N' otherwise.
|
||||||
"""
|
"""
|
||||||
ma_200 = sma(data, period = 200)
|
ma_200 = sma(data, period = 200)
|
||||||
rsi_2 = rsi(data, period = 2)
|
rsi_2 = rsi(data, period = 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user