Hello :]

How can I create a strat that buys a stock immediately when the market opens and sells at the end of the day? The strat should receive the previous day ohlc, and the current day open to decide what to buy. selling will occur automatically at the end of the day.

Thanks 💰💰💰