Skip to main content
Any Framework

Commodity Momentum (Python)

Published
Aug 7, 2025
1y ago
Total Downloads
738
738

Install

dotnet add package StockSharp.Strategies.0358_Commodity_Momentum.py --version 5.0.0

No framework information available.

README

Commodity Momentum (Python Version)

The Commodity Momentum strategy longs commodities with the strongest 12-month momentum (skipping the most recent month). Positions are rebalanced on the first trading day of each month.

Testing indicates an average annual return of about 10%. It performs best across diversified commodity markets.

Positions are adjusted monthly; no intraday signals are used.

Details

  • Entry Criteria: Buy top TopN commodities by 12-month momentum excluding last month.
  • Long/Short: Long only.
  • Exit Criteria: Rebalance on the next scheduled date.
  • Stops: No explicit stop logic.
  • Default Values:
    • TopN = 5
    • MinTradeUsd = 200
    • CandleType = TimeSpan.FromDays(1).TimeFrame()
  • Filters:
    • Category: Momentum
    • Direction: Long
    • Indicators: Price
    • Stops: No
    • Complexity: Intermediate
    • Timeframe: Daily
    • Seasonality: Yes
    • Neural Networks: No
    • Divergence: No
    • Risk Level: Medium

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.