Solana EMA Crossover Bot with Dollar-Based Stops and Trailing Exits
Summary
This script describes a 30-minute Solana trading bot that enters long when a 21-period EMA crosses above a 55-period EMA and short when it crosses below. It can restrict trading to the 30-minute chart and weekdays. On a new position it sets a fixed dollar stop loss, while a trailing exit is configured to activate after a favorable dollar move and follow the price at a smaller dollar distance. An opposite EMA crossover closes the current side and enters the other direction. The strategy uses full-equity sizing, disallows pyramiding, and specifies leverage-related margin settings.
The supplied material is a partial script rather than a strategy explanation or results report. It does not include enough of the level-tracking section to verify the plotted trailing lines or all execution behavior. It states no backtest performance, and the configured commission is zero, so the excerpt offers no evidence of net profitability or realistic execution costs. Fixed dollar distances may also behave differently as the asset price and volatility change.
Key ideas
- The strategy enters on crosses between fast and slow EMAs and can flip direction on an opposite cross.
- It includes optional timeframe and weekday filters.
- Exits combine a fixed dollar stop with a trailing stop activated after a favorable move.
- The script specifies full-equity position sizing and leverage-related margin settings.
- The provided script is incomplete and includes no performance results or nonzero commission assumption.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.