faiyaz7283

Guage

faiyaz7283 アップデート済   
Library "Gauge"

The gauge library utilizes a gaugeParams object, encapsulating crucial parameters for gauge creation. Essential attributes include num (the measured value), min (the minimum value equating to 100% on the gauge's minimum scale), and max (the maximum value equating to 100% on the gauge's maximum scale). The size attribute (defaulting to 10) splits the scale into increments, each representing 100% divided by the specified size.

The num value dynamically shifts within the gauge based on its percentage move from the mathematical average between min and max. When num is below the average, the minimum portion of the scale activates, displaying the appropriate percentage based on the distance from the average to the minimum. The same principle applies when num exceeds the average. The 100% scale is reached at either end when num equals min or max.

The library offers full customization, allowing users to configure color schemes, labels, and titles. The gauge can be displayed either vertically (default) or horizontally. The colors employ a gradient, adapting based on the number's movement. Overall, the gauge library provides a flexible and comprehensive tool for visualizing and interpreting numerical values within a specified range.
リリースノート:
v2 - Added 'keyAlign' to gaugeParams.
リリースノート:
v3 - Added titleSize, keySize, and labelSize to gaugeParams.
リリースノート:
v4 - Version updates for imported libraries
リリースノート:
v5 - Versions updated for imported libraries.

Faiyaz Haider
Pineライブラリ

TradingViewの精神に則り、作者はPineコードをオープンソースライブラリとして公開し、コミュニティの他のPineプログラマーが再利用できるようにしました。作者に敬意を表します!このライブラリを個人的に、または他のオープンソースの投稿で使用することができますが、、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

このライブラリを使用したいですか?

以下の行をコピーして、スクリプト内に貼り付けてください。