Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #formula for trading strategy
- df['new_column'] = ""
- for index,row in df.iterrows():
- if row.reversal == 1:
- row.new_column = 1
- index += 126
- row.new_column = -1
- else:
- row.new_column = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement