@@ -158,23 +158,6 @@ def ranked_mean():
158158"""
159159
160160
161- def scale_and_corr ():
162- return """
163- Alpha ideas:
164- `scale(ts_mean({data_field}, 5) - {data_field}) + 5 * scale(ts_corr({data_field}, ts_delay({data_field}, 5), 40)`
165-
166- First part calculates the difference between the mean of the {data_field} over the last 20 periods
167- and the current value of {data_field}. Second part calculates the correlation between
168- the {data_field} and its value delayed by 5 periods, scaled by 20.
169- Replace `{data_field}` with any data field you want to use.
170- Numbers can be changed to any other values.
171-
172-
173- For example:
174- `scale(ts_mean(close, 5) - close) + 5 * scale(ts_corr(close, ts_delay(close, 5), 40)`
175- """
176-
177-
178161def group_op ():
179162 return """
180163Alpha idea:
@@ -214,6 +197,7 @@ def regression():
214197`ts_regression({field1}, {field2}, 40)`
215198`ts_corr({field1}, {field2}, 50)`
216199`ts_regression(ts_regression({field1}, {field2}, 30), ts_std_dev(returns, 30), 30)`
200+ `ts_covariance({field1}, {field2}, 30)`
217201
218202Use `ts_regression` or `ts_corr` to find the relationship between two data fields.
219203Replace `{field1}` and `{field2}` with any data fields you like.
@@ -288,7 +272,6 @@ def get_alpha_idea():
288272 # random_alphas,
289273 conditional_alpha ,
290274 ranked_mean ,
291- scale_and_corr ,
292275 group_op ,
293276 use_rank ,
294277 regression ,
0 commit comments