Origami Documentation
User GuideFunction
  • User Guide
    • Create Project
    • Add accounts
    • API Key Creation
      • Hyperliquid
      • Binance
      • Bybit
      • OKX
      • Gate io
      • Mexc
      • HTX
      • Kucoin
      • BingX
      • Bitget
      • BitMart
    • Create Spot Bot
    • Create Futures Bot
    • Create Grid
  • Function
    • Required parameters
      • Buy Orders Count
      • Sell Orders Count
      • Execute Price
      • Execute Volume
    • Base logic
    • Optional parameters
      • Time Between Orders
      • Sleep After Seconds
      • Is Buy First
    • Functions
      • Ticker
      • Orderbook
      • Candles
      • VWAP
      • Amount Before Price
      • Amount Threshold Index
      • Symbol
      • Balance
      • Saved Balance
      • Group Balance
      • Mean
      • Median
      • Max
      • Min
      • Exp
      • Abs
      • Logn
      • Count
      • Random
      • Sum
      • Cached
      • Remove NaN
      • Is NaN
      • Var
    • Technical analysis
      • Relative Strenght Index
      • RSI to price
      • Average True Range
      • Bollinger Bands
      • Donchian Channel
      • Exponential Moving Average
      • Kaufman Efficiency Indicator
      • Kaufman's Adaptive Moving Average
      • Keltner Channels
      • Momentum Breakout Bands
      • Pivot Points
      • Percentage Price Oscillator
      • Percent B
      • Stop-and-Reverse
      • Stochastic Oscillator %K
      • Stochastic RSI
      • True Range
      • Triple Exponential Moving Average Oscillator
      • Volume Adjusted Moving Average
    • Structures
      • Balance
      • GroupBalance
      • Orderbook
      • OrderBookUnit
      • Symbol
      • Candle
    • Shortcuts
      • Base
      • Counter
    • Exchanges list
    • Pre-defined parameters
      • Order Pos
      • Side
Powered by GitBook
On this page
  • Boolean operators
  • ()
  • x if smth else y
  • <x> or <y>
  • <x> and <y>
  • <x> == <y>
  • `<x>
  • <x> > <y>
  • <x> >= <y>
  • <x> < <y>
  • <x> <= <y>
  • Math operators
  • ()
  • <x> / <y>
  • <x> * <y>
  • <x> + <y>
  • <x> - <y>
  • <x> ** <y>
  • <x> ^ <y>
  1. Function

Base logic

Boolean operators

()

Breakets can be used to combine expressions

x if smth else y

Conditional operator.

Returns x if smth is True

Returns y if smth is False

x, y, smth - can be decimal, function call, custom formula, math expr or bool

<x> or <y>

Boolean operator or. Returns bool

Any non-zero value for operands casts as True (ex: 1 → True, 0 → False)

Truth table:

x
y
result

True

True

True

True

False

True

False

True

True

False

False

False

<x> and <y>

Boolean operator and. Returns bool

Any non-zero value for operands casts as True (ex: 1 → True, 0 → False)

Truth table:

x
y
result

True

True

True

True

False

False

False

True

False

False

False

False

<x> == <y>

Equivalent op. Returns bool

Truth table:

x
y
result

1

1

True

0

1

False

1

0

False

`<x>

Boolean operator and. Returns bool

Truth table:

x
y
result

1

1

False

1

0

True

0

1

True

<x> > <y>

#v1 #v2

Boolean operator greater. Returns bool

Truth table:

x
y
result

1

0

True

0

1

False

1

1

False

<x> >= <y>

#v1 #v2

Boolean operator greater or equivalent. Returns bool

Truth table:

x
y
result

1

0

True

0

1

False

1

1

True

<x> < <y>

#v1 #v2

Boolean operator less. Returns bool

Truth table:

x
y
result

1

0

False

0

1

True

1

1

False

<x> <= <y>

#v1 #v2

Boolean operator less or equivalent. Returns bool

Truth table:

x
y
result

1

0

False

0

1

True

1

1

True

Math operators

()

Breakets can be used to combine expressions

<x> / <y>

Division operator. Returns decimal

<x> * <y>

Multiplication operator. Returns decimal

<x> + <y>

Sum operator. Returns decimal

<x> - <y>

Subtraction operator. Returns decimal

<x> ** <y>

Exponentiation operator. Returns decimal

<x> ^ <y>

PreviousExecute VolumeNextOptional parameters

Last updated 8 months ago