• phone +1.954.4163300
  • time-img Mon.-Fri. 10:00-18:00 EST
English Germany Turkish

This DLL library covers important math functions and binary operations for several trading platforms.

Description

This add-on covers missing trading development functions. Admittedly, the current library is small, but we plan to expand it soon. Please send us your favorite mathematical functions, and we’ll try to incorporate them into newer versions.

Features

  • Compatible with TradeStation, MetaTrader4, MetaTrader5, NinjaTrader, and many others
  • Fast and lightweight
  • Written in C++
  • Free of charge FOREVER
  • Performs binary operations

Compatibility

  • MetaTrader4 supports all builds (including new releases)
  • Tested with TradeStation 8.x/9.x, and will be compatible with all upcoming versions
  • Tested with NinjaTrader
  • Tested with MultiCharts
  • Tested with C# and C++
  • Old and new versions are compatible with any language (require the ability to install DLL files for your platform)

Licence

ExcelLink is a freeware so users can embed it anywhere. NO CHARGE.

Installation & Demofiles

Installation may vary by application. DLL files must be placed in an application’s DLL include path or the Windows’ DLL include path; for example, the 64-bit shared library include path is %windir%\SysWOW64. In MetaTrader4 (builds 0600 and below), the library path is %MetaTrader4%\experts\libraries. In TradeStation, the include path is %TSPATH%\Program\

You may need to enable DLL execution because it's sometimes disabled by default (for security reasons). This tool was released as a DLL, so you’ll need to enable DLL Execution.

Functions

int Bin2Dec(str Binary)

This function converts binary values to decimal values

str Dec2Bin(int)

Converts decimal to binary

str Dec2Hex(int)

Converts decimal to hex

int Hex2Dec(str Hex)

Converts hex to decimal

int BinaryAND(int, int)
int BinaryOR(int,int)

These two functions handle binary with AND or OR integer values. Results are returned accordingly.

bool BitCheck(int value,int bitnumber)

To determine whether a bit is either 1 or 0, use the BinaryAND operation; for example,to determine whether the sixth bit of 1001011101, you have to BinaryAND 1001011101 as well as 0000100000 to search for the value. If the value is greater than zero, then the sixth bit is 1 (0 if it’s not). This function simplifies everything. .

int TSMathVersion()

Returns to a previous version of an add-on. Can be used to identify different versions and to report bugs.

Importing functions

This DLL can be used with any language. You simply need to instruct the software on how to import the library. To help you do this, we've created a How-To Guide for TradeStation and MetaTrader on importing libraries. See below:

Tradestation Import

Metatrader Import

Demonstration

Demo #1

Technical Notes

Working with binary and hexdecimal values:
Please note that the decimal value 132777012 is the same as both the binary value 111111010100000010000110100 and the hexadecimal value 7EA0434. Since binary values can grow too long (in integer scope) and hexadecimal values can have characters beside digits, we must convert those hex and binary values into usable strings. Binary string values contain only zeroes and ones. Hexadecimal string values contain only a combination of letters and numbers (e.g., 0123456789abcdef). Hexadecimal string values are also case sensitive.

Downloads

Version Description Download
0.10
  • First release version
Download v0.10