sleptongems

Multi conditions matrices

sleptongems מעודכן   
Library "multi_conditions_matrices"
: facilitate including multiple AND / OR conditions to a script such as two entry / exit inputs groups.

method addConditions(conditions, conditionPair)
  Helper to append conditions to a matrix<bool> condition array
  Namespace types: matrix<bool>
  Parameters:
    conditions (matrix<bool>)
    conditionPair (array<bool>): array<bool> A condition pair , an input can be passed directly to enable

method check(conditions, operatorAnd)
  check several condition within given operator
  Namespace types: matrix<bool>
  Parameters:
    conditions (matrix<bool>)
    operatorAnd (bool): bool true if the operator between condition is AND (default OR)
  Returns: bool Evaluates conditions

isWeekend()

isNightSignal(nightHour, morningHour, timezone)
  Parameters:
    nightHour (int)
    morningHour (int)
    timezone (string)
הערות שחרור:
v2 -> removed log and updated chart
ספריית Pine

ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומים אחרים בקוד פתוח, אך השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בספרייה זו?

העתק את השורה הבאה והדבק אותה בסקריפט שלך.