PINE LIBRARY

xor logical operator

Library "xor"

xor(a, b)
  xor: Exclusive or, or exclusive disjunction is a logical operation that is true if and only if its arguments differ (one is true, the other is false).
  Parameters:
    a: first argument
    b: second argument
  Returns: returns xor (true only if a and b are true, but not both)

Example:

true xor true = false
true xor false = true
false xor true = true
false xor false = false
logiclogicalMATHmathematicsoperatorsxor

Pine脚本库

本着真正的TradingView精神,作者将此Pine代码发布为开源脚本库,以便我们社区的其他Pine程序员可以重复使用它。向作者致敬!您可以私下或在其它开源出版物中使用此脚本库,但在出版物中重复使用此代码受网站规则约束。


- Scalping The Bull Indicator: linktr.ee/scalpingthebull
- Scalping The Bull Training: tinyurl.com/corsoindicatorepro
- AlgoTrading Training: tiny.one/corsopinescriptbase
- Crypto News: t.me/joinchat/StkXJM
更多:

免责声明