peacefulLizard50262

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

Thư viện Pine

Với tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác từ cộng đồng của chúng tôi có thể sử dụng lại nó. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này một cách riêng tư hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy chung.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng thư viện này?

Sao chép văn bản vào khay nhớ tạm và dán nó vào tập lệnh của bạn.