Update docstring in TPS strategy

This commit is contained in:
moshferatu 2025-01-10 08:42:53 -08:00
parent c777259d71
commit c1e5ce1695

View File

@ -6,7 +6,8 @@ from indicators import rsi, sma
def tps(data: DataFrame) -> Series:
"""
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)
rsi_2 = rsi(data, period = 2)