Skip to content
All library documents

EMA Crossover Strategy with Dollar-Based Trailing Stops on Solana

Article TradingView scripts

Summary

This strategy uses crossovers between a fast and slow exponential moving average to open long or short positions, with opposite signals closing the existing side and reversing direction. Its defaults use the 21- and 55-period averages and restrict trading to a 30-minute chart and weekdays, though those filters can be changed. Position sizing is configured as a percentage of equity, with leverage settings in the strategy declaration.

Risk controls pair a fixed dollar stop with a trailing exit that activates after a favorable move and follows at a smaller dollar distance. The script converts those dollar amounts into instrument ticks, plots entry and stop levels, and can show signal arrows and entry alerts. The description frames this as a 30-minute version of another trailing strategy, but provides no strategy report or evidence of profitability. Results will depend on the traded instrument, tick size, execution assumptions, and settings; the source also specifies zero commission and calculations at bar close, which may not reflect live trading costs or intrabar behavior.

Key ideas

  • Fast and slow EMA crossovers generate directional entries and reversal signals.
  • The default filters limit signals to weekdays on a 30-minute chart.
  • A fixed stop and an activating trailing stop define the exit approach.
  • Dollar risk settings are translated into ticks using the instrument's minimum tick size.
  • The document supplies a strategy implementation but no performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.