TsnTables/Src/Tables.mqh

77 lines
2.2 KiB
MQL5
Raw Permalink Normal View History

2026-05-16 16:50:33 -05:00
//+------------------------------------------------------------------+
//| Tables.mqh |
//| Copyright 2026, Niquel Mendoza. |
//| https://www.mql5.com/es/users/nique_372 |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza."
#property link "https://www.mql5.com/es/users/nique_372"
#property strict
#ifndef TSNTABES_SRC_TABLES_MQH
#define TSNTABES_SRC_TABLES_MQH
2026-06-02 21:31:44 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#include <Generic\\HashMap.mqh>
2026-05-16 16:50:33 -05:00
2026-06-19 20:59:32 -05:00
//---
#ifdef TSNTABLE_USE_HEX_TABLE
#include "Hex.mqh"
#endif // TSNTABLE_USE_HEX_TABLE
2026-06-24 17:20:29 -05:00
//---
#ifdef TSNTABLE_USE_POWEXP_TABLE
//--- Exp
#include "Exp.mqh"
//--- Pow
#include "Pow.mqh"
#endif // TSNTABLE_USE_POWEXP_TABLE
2026-06-02 21:31:44 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
2026-05-16 16:50:33 -05:00
namespace TSN
{
2026-06-02 21:31:44 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#define IsDigit(c) ((c ^ '0') <= 9)
#define IsNotDigit(c) ((c ^ '0') > 9)
2026-06-18 20:08:12 -05:00
//--- Inf +
#define TSN_DBL_INF_LONG_BITS long(0x7FF0000000000000)
//--- Inf -
#define TSN_DBL_INF_NEG_LONG_BITS long(0xFFF0000000000000)
//--- Nan
#define TSN_DBL_NAN_LONG_BITS long(0x7FFFFFFFFFFFFFFF)
2026-06-02 21:31:44 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
2026-05-19 06:59:37 -05:00
//---
const uchar g_arr_table_true[4] =
{
't',
'r',
'u',
'e'
};
//---
const uchar g_arr_table_false[5] =
{
'f',
'a',
'l',
's',
'e'
};
2026-05-16 16:50:33 -05:00
}
//+------------------------------------------------------------------+
2026-05-19 06:59:37 -05:00
#endif // TSNTABES_SRC_TABLES_MQH