Skip to content

Repository files navigation

Daily Simple Moving Average (DSMA) Indicator

Platform .NET

A Quantower indicator that plots a Simple Moving Average calculated from daily bars onto any intraday chart.

DSMA Example 5-period Daily SMA displayed on a 1-minute MNQ chart.


Overview

Intraday charts lack context from higher timeframes. This indicator solves that by overlaying a daily-calculated SMA directly onto any chart timeframe, eliminating the need to switch between charts to see where price sits relative to the daily trend.

The indicator automatically fetches daily bar data regardless of your chart's timeframe and plots the SMA as a continuous line.

Parameters

Parameter Default Description
Period 5 Number of daily bars for SMA calculation
Price Type Close Price used for calculation (Close, Open, High, Low, Typical, Median, Weighted)
Logging Level Error Set to Trading for verbose diagnostics

Requirements

To run:

  • Quantower v1.145.17+ with an active connection
  • Windows 10+ x64
  • .NET 8 x64 Runtime (bundled with Quantower)

To build from source:

  • .NET 8 x64 SDK

Installation

Option 1: Installer (recommended)

Download DailySimpleMovingAverage-Setup-x.x.x.exe from Releases. Run the installer -- it auto-detects your Quantower installation path. Restart Quantower.

Note: Windows Defender SmartScreen may flag the installer as an unrecognized app since it is a new, unsigned release. Click "More info" and then "Run anyway" to proceed with the installation.

Option 2: Manual Install (ZIP)

  1. Download DailySimpleMovingAverage-x.x.x.zip from Releases.
  2. Crucial: Right-click the downloaded .zip -> Properties -> check the Unblock box at the bottom -> click OK. (Windows silently blocks downloaded plugins by default).
  3. Extract the contents into C:\Quantower\Settings\Scripts\Indicators\DailySimpleMovingAverage.
  4. Restart Quantower.

Option 3: Build from source

git clone https://github.com/moravsky/dsma-quantower.git
cd dsma-quantower
dotnet build DailySimpleMovingAverage.sln -c Release
.\deploy.ps1 -Config Release

Troubleshooting

Indicator not appearing in Quantower

  • Verify the compiled .dll is in C:\Quantower\Settings\Scripts\Indicators\DailySimpleMovingAverage
  • Restart Quantower after adding new indicators

Indicator shows 0.0000 or no line

  • Set Logging Level to Trading in the indicator settings
  • Open Quantower's Log panel and filter for [DSMA]
  • Common causes: insufficient historical data for the requested period (e.g. 200-day SMA on a futures contract with limited history)

Author

Petr Moravsky (petr@structuredtrading.co) -- futures trader and developer.

If this indicator is useful to you -- star the repo and leave a tip.

About

DSMA indicator for Quantower

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages