Randomized Crypto Futures Trading with Stop Rules and Position Scaling
Summary
This educational example designs a deliberately random futures strategy for dYdX. A random draw selects long or short exposure, and a fixed stop profit or stop loss defines when to close the position. After a losing trade, the strategy increases its position size; after a win, it resets the multiplier. The article explains this progression as a way to explore stochastic trading, while recognizing that fees and slippage can reduce the effective win rate.
The implementation checks order books and positions, places and cancels orders, monitors price thresholds, and tracks account equity and position scaling. It reports that a backtest was run on Binance Futures and was used to check for bugs, not to establish profitability. No performance statistics or robust risk analysis are provided. The proposed scaling can compound exposure during consecutive losses, and random direction selection does not establish positive expectancy; the article explicitly frames the strategy as a learning exercise rather than a live trading recommendation.
Key ideas
- The strategy randomly selects long or short futures exposure and uses fixed profit and loss thresholds to close trades.
- Position size increases after losses and resets after a winning trade.
- Fees and slippage can make a nominally even random directional choice unfavorable in practice.
- The described backtest was intended to check implementation behavior, not demonstrate profitable results.
- Scaling position size after losses creates a risk that is not resolved by the strategy’s random entry process.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.