StockSharp.Strategies.0164_MA_Williams_R 5.0.1

Prefix Reserved
dotnet add package StockSharp.Strategies.0164_MA_Williams_R --version 5.0.1
                    
NuGet\Install-Package StockSharp.Strategies.0164_MA_Williams_R -Version 5.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StockSharp.Strategies.0164_MA_Williams_R" Version="5.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StockSharp.Strategies.0164_MA_Williams_R" Version="5.0.1" />
                    
Directory.Packages.props
<PackageReference Include="StockSharp.Strategies.0164_MA_Williams_R" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StockSharp.Strategies.0164_MA_Williams_R --version 5.0.1
                    
#r "nuget: StockSharp.Strategies.0164_MA_Williams_R, 5.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StockSharp.Strategies.0164_MA_Williams_R@5.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StockSharp.Strategies.0164_MA_Williams_R&version=5.0.1
                    
Install as a Cake Addin
#tool nuget:?package=StockSharp.Strategies.0164_MA_Williams_R&version=5.0.1
                    
Install as a Cake Tool

Ma Williams R Strategy (C# Version)

Implementation of strategy - MA + Williams %R. Buy when price is above MA and Williams %R is below -80 (oversold). Sell when price is below MA and Williams %R is above -20 (overbought).

The moving average shows the prevailing trend direction. Williams %R looks for overbought or oversold points relative to that trend.

Fits swing traders waiting for pullbacks toward the average. Stop-loss distance comes from ATR.

Details

  • Entry Criteria:
    • Long: Close > MA && WilliamsR < WilliamsROversold
    • Short: Close < MA && WilliamsR > WilliamsROverbought
  • Long/Short: Both
  • Exit Criteria:
    • Williams %R returns to middle
  • Stops: Percent-based using StopLoss
  • Default Values:
    • MaPeriod = 20
    • MaType = MovingAverageTypeEnum.Simple
    • WilliamsRPeriod = 14
    • WilliamsROversold = -80m
    • WilliamsROverbought = -20m
    • StopLoss = new Unit(2, UnitTypes.Percent)
    • CandleType = TimeSpan.FromMinutes(5).TimeFrame()
  • Filters:
    • Category: Mean reversion
    • Direction: Both
    • Indicators: Moving Average, Williams %R, R
    • Stops: Yes
    • Complexity: Intermediate
    • Timeframe: Mid-term
    • Seasonality: No
    • Neural Networks: No
    • Divergence: No
    • Risk Level: Medium
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.1 18 7/19/2025
5.0.0 57 7/11/2025