MQLArticles/PosMgmt/TSL/Manager/Def.mqh
47 行
1.8 KiB
MQL5
Nique_372
2026-10-24 11:58:18 -05:00
//+------------------------------------------------------------------+
//| Def.mqh |
//| Copyright 2026, Niquel Mendoza. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza."
#property link "https://www.mql5.com"
#property strict
Nique_372
2026-10-24 12:47:47 -05:00
#ifndef MQLARTICLES_POSMGMT_TSL_MANAGER_DEF_MQH
#define MQLARTICLES_POSMGMT_TSL_MANAGER_DEF_MQH
Nique_372
2026-10-24 11:58:18 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
Nique_372
2026-10-24 17:50:41 -05:00
#include "..\\Int\\All.mqh"
Nique_372
2026-10-24 11:58:18 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
namespace TSN
{
//+------------------------------------------------------------------+
//| Clase Manager para hacer el TrailingStop |
//+------------------------------------------------------------------+
//---
Nique_372
2026-10-24 22:43:15 -05:00
const string TrailingStopNames[TRAILING_STOP_MODE_BASIC_TOTAL] = { "Sar", "Swings", "Point", "Ma", "PrevLowHigh", "Atr", "Ama"};
Nique_372
2026-10-24 11:58:18 -05:00
//---
Nique_372
2026-10-24 12:47:47 -05:00
#define TSNMQLA_TSL_TO_STRING(mode) TrailingStopNames[mode]
Nique_372
2026-10-24 11:58:18 -05:00
//--- Defines
Nique_372
2026-10-24 12:47:47 -05:00
#define TSNMQLA_ERROR_TSL_INVALID_PARAM 1
Nique_372
2026-10-24 11:58:18 -05:00
Nique_372
2026-10-24 22:43:15 -05:00
//---
enum ENUM_TRAILING_MANAGER_ERR
{
TRAILING_MANAGER_ERR_NOT,
TRAILING_MANAGER_ERR_INVALID_IDX,
TRAILING_MANAGER_ERR_INVALID_NUM_PARAMETERS,
TRAILING_MANAGER_ERR_TSL_IN_SET_PARAMETERS_VAL,
};
Nique_372
2026-10-24 11:58:18 -05:00
//---
}
//+------------------------------------------------------------------+
Nique_372
2026-10-24 22:43:15 -05:00
#endif // MQLARTICLES_POSMGMT_TSL_MANAGER_DEF_MQH