VolumeProfile and TimeProfile hang when the value area volume percentage is 1
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Indicators/MarketProfile.cs の MarketProfile.CalculateValueArea から始める。ここでは、value area のボリュームがターゲット以下である間、ループが low/high インデックスを広げる。パーセンテージが 1 の場合、ターゲットは総ボリュームに等しいため、両方のインデックスが端でクランプし、ループは決して終了しない。low インデックスも high インデックスも移動できないときに終了を追加する。これは基底クラスを共有しているため TimeProfile も修正する。完了とは、new VolumeProfile(2, 1m) を構築して Update を一度呼び出す回帰テストが戻り、value area がすべての価格レベルにまたがっていることである。
索引モデルが issue の本文から書いたものです。
説明
Expected Behavior
new VolumeProfile(2, 1m) (a value area that holds 100% of the volume) updates normally and reports a value area that spans the whole profile.
Actual Behavior
The first Update call never returns. MarketProfile.CalculateValueArea keeps expanding the value area while its volume is less than or equal to the target. With a percentage of 1, the target equals the total volume, so the condition stays true after the area covers every price level. Both neighbor indexes are clamped to the edges and the loop runs forever. TimeProfile has the same problem because it shares the base class.
Potential Solution
In Indicators/MarketProfile.cs, CalculateValueArea, exit the loop when neither the low nor the high index can move.
Reproducing the Problem
var vp = new VolumeProfile(2, 1m);
vp.Update(new TradeBar { Symbol = Symbols.AAPL, Close = 10, Volume = 100, Time = new DateTime(2000, 1, 2) });
// never returns
System Information
Ubuntu x86_64, .NET SDK 10.0.403, master at 22404ea28b8d3f3c9eb74d6ed9f0444426f8e417.
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
- I have provided detailed steps to reproduce the issue
- 主要言語
- C#
- スター
- 22.3k
- フォーク
- 5.4k
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 56
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/Lean のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
QuantConnect/Lean#9965 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
QuantConnect/Lean#9955 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
QuantConnect/Lean#9953 ·
メンテナーはふだん 1 日以内に返信
-
WebullFeeModel charges SPXW options the SPX exchange fee対応中かも @Amadeus-22 が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
QuantConnect/Lean#9922 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
AlpacaBrokerageModel refuses extended-hours limit orders with the GTC time in force, which Alpaca accepts対応中かも @AlexCatarino が 18 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
QuantConnect/Lean#9892 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
QuantConnect/Lean の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
bug effort:S P3
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
nightscout/nocturne#3093 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信