PINE LIBRARY
Wave Generator Library (WGL)

Library "WaveGenerator"
Wave Generator Library
max(source)
max
Parameters:
source: is the input to take the maximum.
Returns: foat
min(source)
min
Parameters:
source: is the input to take the minimum.
Returns: foat
min_max(src, height)
min_max
Parameters:
src: is the input for the min/max
height
Returns: float
sine_wave(_wave_height, _wave_duration, _phase_shift, _phase_shift_2)
sine_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_phase_shift: Number of harmonics
_phase_shift_2
Returns: float
triangle_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
triangle_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
saw_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
saw_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
ramp_saw_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
ramp_saw_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
square_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
square_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
wave_select(style, _wave_height, _wave_duration, _num_harmonics, _phase_shift)
wave_select
peram style Select the style of wave. "Sine", "Triangle", "Saw", "Ramp Saw", "Square"
Parameters:
style
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
Wave Generator Library
max(source)
max
Parameters:
source: is the input to take the maximum.
Returns: foat
min(source)
min
Parameters:
source: is the input to take the minimum.
Returns: foat
min_max(src, height)
min_max
Parameters:
src: is the input for the min/max
height
Returns: float
sine_wave(_wave_height, _wave_duration, _phase_shift, _phase_shift_2)
sine_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_phase_shift: Number of harmonics
_phase_shift_2
Returns: float
triangle_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
triangle_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
saw_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
saw_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
ramp_saw_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
ramp_saw_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
square_wave(_wave_height, _wave_duration, _num_harmonics, _phase_shift)
square_wave
Parameters:
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
wave_select(style, _wave_height, _wave_duration, _num_harmonics, _phase_shift)
wave_select
peram style Select the style of wave. "Sine", "Triangle", "Saw", "Ramp Saw", "Square"
Parameters:
style
_wave_height: Maximum output level
_wave_duration: Wave length
_num_harmonics: Number of harmonics
_phase_shift: Phase shift
Returns: float
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。