Skip to main content
Any Framework

Return Asymmetry Commodity (Python)

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

Install

dotnet add package StockSharp.Strategies.0392_Return_Asymmetry_Commodity.py --version 5.0.0

No framework information available.

README

Return Asymmetry Commodity (Python Version)

The Return Asymmetry Commodity strategy exploits the difference between positive and negative returns. For each commodity future, the rolling window sums all upward and downward moves separately. A high ratio implies persistent positive drift, while a low ratio points to sustained selling pressure.

At the start of each month, commodities are ranked by this asymmetry measure. The system buys the top N contracts and sells short the weakest N, allocating capital equally. Rebalancing occurs monthly.

Details

  • Entry Criteria: Monthly ranking of the asymmetry of daily returns over a lookback window.
  • Long/Short: Both directions.
  • Exit Criteria: Positions adjusted on monthly rebalance.
  • Stops: No explicit stop; position size capped by MinTradeUsd.
  • Default Values:
    • WindowDays = 120
    • TopN = 5
    • MinTradeUsd = 200
    • CandleType = TimeSpan.FromDays(1).TimeFrame()
  • Filters:
    • Category: Momentum
    • Direction: Both
    • Indicators: Price based
    • Stops: No
    • Complexity: Intermediate
    • Timeframe: Medium-term
    • 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.