Hello Everyone,

This is the first algorithm I wrote, and I aimed to keep it simple. The strategy is based on recommendations from Jim Cramer, the host of the TV show "Mad Money" on CNBC. I use Custom Data to upload the show's recommendations. Since the show airs at 6:00 pm after the market closes, the recommendations are processed and executed as market open transactions the next day. The strategy is short term and holds positions for self.holding_period (e.g., 3 days) before liquidating them.

The weight of each position is determined by the number of recommendations on that day and the holding period. For instance, if the holding period is 5 days, the weight for all recommendations of each day is 20%, which is then divided among the day's recommendations.

I think the strategy can be improved, and I am open to suggestions to make it more realistic.