Python Forum
Backtesting trading strategy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Backtesting trading strategy
#2
I now did solve the first problem about set the index to be the same.
The solution is:
test_set.index = pd.to_numeric(long.index)
My only problem now is to use the value of the cells(stock names) in long and short to pick the right values from the columns in test_set.

Anybody who knows it?
Reply


Messages In This Thread
Backtesting trading strategy - by Finpyth - Mar-18-2020, 05:37 PM
RE: Backtesting trading strategy - by Finpyth - Mar-20-2020, 04:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strategy for data extraction standenman 1 529 Mar-11-2024, 01:44 PM
Last Post: carecavoador
  Errors with Machine Learning trading bot-- not sure why MattKahn13 0 1,376 Aug-07-2020, 08:19 PM
Last Post: MattKahn13
  Backtesting a folder with csv files, problem fiddelush 8 4,778 Mar-13-2018, 11:57 AM
Last Post: fiddelush

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020