Skip to content
All library documents

Triple Moving Average Strategy Inputs and Trading Cost Settings

Article Strategy library · Author: BigBitsIO

Summary

This partial Pine Script tutorial shows the setup for a strategy built around three configurable moving averages. Each average has a selectable period, type, price source, timeframe, and visibility, with defaults of 50, 100, and 200 periods. The script also exposes controls for displaying crosses, forecasts, ribbons, and trades based on pairs of averages.

The excerpt focuses on simulation settings: percentage commission is set to 0.5%, while slippage is specified in ticks. It cautions that calculations with every-tick updates can differ between historical and live data, and that strategies on nonstandard charts may use chart-derived prices rather than market prices. The document is incomplete, ending partway through the inputs and providing no complete entry or exit rules, backtest results, or evidence of profitability. The fee setting is presented as an example tied to a particular exchange fee schedule in 2019, so it should not be treated as current or universal.

Key ideas

  • The script configures three moving averages with adjustable periods, types, sources, and resolutions.
  • Its strategy declaration models percentage commission and tick-based slippage.
  • Every-tick calculations may behave differently on historical and real-time data.
  • Strategies on nonstandard charts may simulate orders at chart-derived prices.

Tags

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