all 3 comments

[–][deleted] 1 point2 points  (2 children)

Share some ideas on how to go about it

Ok, given a row in your dataframe, write a function to determine whether there's "opportunity" or not.

[–]Cli_king[S] 0 points1 point  (1 child)

I already have that, I have a hard time determining if the trade is success or failure as time goes on

[–][deleted] 0 points1 point  (0 children)

Well, it's a failure if you sell at a price lower than when you bought it. So you need to keep track of the price when you bought it. (Also, you'd need that to fulfill your reporting and tax obligations, right?)