kaigouthro

condition

Library "condition"
True/False Condition tools and toggles for booleans and utility.
suggested use is checking if a calculation is required, or can be skipped
speeding up script calculations in realtime and historical scenarios.

isonlywihtout(_first_cond, _second_cond)
  output is true only if first true and second false
  Parameters:
    _first_cond: (bool) First Condition
    _second_cond: (bool) Second Condition
  Returns: True if coditions met

isonlywih(_first_cond, _second_cond)
  output is true only for the first condition if the second condition is also true
  Parameters:
    _first_cond: (bool) First Condition
    _second_cond: (bool) Second Condition
  Returns: True if coditions met

isactive(_cond)
  output is true active only while actively true
  Parameters:
    _cond: (bool) Condition met
  Returns: True if coditions met

isnotactive(_cond)
  output is true only while condition is not active
  Parameters:
    _cond: (bool) Condition met
  Returns: True if coditions met

isontoggle(_cond)
  output is true and holds on True activation , na input has no effect, only a false will disengage
  Parameters:
    _cond: (bool) Condition met
  Returns: True if coditions met

isofftoggle(_cond)
  output is true and holds on False activation, na input has no effect, only a true will disengage
  Parameters:
    _cond: (bool) Condition met
  Returns: True if coditions met

isnotboth(_first_cond, _second_cond)
  output is false only if both are active, either or neither pass true
  Parameters:
    _first_cond: (bool) First Condition
    _second_cond: (bool) Second Condition
  Returns: True if coditions met

isneither(_first_cond, _second_cond)
  output is false only if both are active, either or neither pass true
  Parameters:
    _first_cond: (bool) First Condition
    _second_cond: (bool) Second Condition
  Returns: True if coditions met

isbothtoggled(_first_cond, _second_cond)
  output is true and held when both trigger true, and only disengages if both are false at once
  Parameters:
    _first_cond: (bool) First Condition
    _second_cond: (bool) Second Condition
  Returns: True if coditions met
Perpustakaan Pine

Di dalam semangat sebenar TradingView, pengarang telah menerbitkan kod Pine ini sebagai perpustakaan sumber terbuka, jadi pengaturcara-pengaturcara Pine yang lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau pada penerbitan-penerbitan sumber terbuka lain, tetapi penggunaan semula kod ini di dalam penerbitan adalah ditadbir oleh Peraturan Dalaman.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Mahu gunakan perpustakaan ini?

Salin garisan ini dan tampalkan ia di dalam skrip anda.