- Help Library
- ADL
- Arithmetic blocks
- Arithmetic blocks overview

return to:

Trading Blocks
Trading blocks overview
Instrument block
Field block
Market State block
Order block
Existing Order block
Discrete Order block
Single Order Container block
Time And Sales block
Price block

Discrete blocks
Discrete Blocks Overview
MsgInfoExtractor block
Value Accumulator block
Value Injector block
Value Extractor block
Value Bucket block
Generator block
State block
Branch block
Funnel block
Discrete Min/Max blocks
Sequence block
Demultiplexer block
Moving Average block

Arithmetic blocks
Arithmetic blocks overview
Add block
Subtract block
Multiply block
Divide block
Mod block
Round block
Average block
Math block
Formula block

Basic blocks
Logic blocks
Logic blocks overview
Greater Than blocks
Less Than blocks
Equal block
And, Or, and Not blocks
If Then block
Once True block
IsNumber block

Miscellaneous blocks
Miscellaneous blocks overview
Analytics block
Stopwatch block
Note block
Terminal block
Random Number block
Loop block
Alert block
Pnl block
Position Risk block

Jump blocks
Group blocks
Group blocks overview
Creating a Group block
Adding inputs and outputs to a Group block
Group blocks video

Virtualized blocks
Virtualized blocks overview
Rules of virtualization
Creating a virtualized group of blocks
Virtual blocks video

Library blocks
Arithmetic blocks

ADL provides a series of arithmetic blocks that allow you to perform calculations based on the outputs of other blocks. For example, you could use the **Multiply** and **Add** blocks to determine the tradable price two ticks about the inside market for an instrument or use the **Formula** block to define custom mathematical equations to support your algorithm.

Arithmetic blocks include:

- Add
- Subtract
- Multiply
- Divide
- Mod
- Round
- Average
- Math
- Formula