Hacker News new | ask | show | jobs
by blackrock 2021 days ago
What kind of algorithm do you use for your trading bot?

Say:

Strategy 1: If the market is trending higher. Then, buy on the dips. Hold. Sell for 20% gains. Then rinse and repeat.

Strategy 2: Or, if the market ($SPY) has risen for x percent for the day, say 3%, then you short the stock. Wait for it to correct, and sell for 20% gains. But if it continues rising higher than 10%, then buy back the stock to close out your position.