peacefulLizard50262

Wave Generator (WG)

peacefulLizard50262 アップデート済   
Pine Script Wave Generator Utility


Introduction:
The Pine Script Wave Generator Utility is a versatile tool that creates different wave patterns. The script provides the user with four different wave styles to choose from (Sine, Triangle, Saw, Square) with customizable parameters for the wave height, duration, number of harmonics, and phase shift.

Technical Details:
The script utilizes the mathematical functions sin, pi, and array.avg to generate wave patterns. The wave height and duration are the main inputs, and the number of harmonics and phase shift are additional inputs that add fine-tuning to the wave pattern.
The wave styles are created using different combinations of sine waves and are normalized so that the resulting wave always lies within a range of -1 to 1.

Usage:
The user can adjust the wave parameters using the input options in the script. The user can choose the wave style from the “Wave Select” option and set the wave height, wave duration, number of harmonics and phase shift by adjusting the corresponding input options.

Conclusion:
The Pine Script Wave Generator Utility is an efficient and effective tool for generating wave patterns. It can be used for a variety of purposes such as creating wave patterns for technical analysis, simulation, and testing purposes. The user can easily adjust the wave parameters to create custom wave patterns, making it a flexible and valuable tool.
リリースノート:
added phase shift for the shapes and I added ramp saw
リリースノート:
fixed the saw wave length

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

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

チャートでこのスクリプトを利用したいですか?