//+------------------------------------------------------------------+ //| StrategyBaseDefines.mqh | //| Copyright 2025, Leo. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2025, Leo." #property link "https://www.mql5.com" #property strict #ifndef MQLARTICLES_STRATEGY_CORE_DEFINES_MQH #define MQLARTICLES_STRATEGY_CORE_DEFINES_MQH //+------------------------------------------------------------------+ //| Includes | //+------------------------------------------------------------------+ #include "..\\..\\Account\\MoneyStatus\\Manager.mqh" //+------------------------------------------------------------------+ //| Defines - Enums - Structs | //+------------------------------------------------------------------+ #define STRATEGY_BASE_EMPTY_VALUE (DBL_EPSILON) // Valor bien pequeño #define NO_MAX_DEVIATION_DEFINED (0) #define FLAG_OPERATE_BUY (1) #define FLAG_OPERATE_SELL (2) //--- enum ENUM_TYPE_TRADE { TR_BUY = 0, // Buy only TR_SELL = 1, // Sell only TR_BUY_SELL = 2 // Buy and sell }; //--- #define TP_SL_TYPE \ TP_SL_ATR = 0, \ // TP and SL by ATR TP_SL_POINT = 1, // TP and SL by points #define TP_SL_TYPE_EXT \ EXT_TP_SL_ATR = 0, \ // TP and SL by ATR EXT_TP_SL_POINT = 1, // TP and SL by points //--- enum ENUM_TYPE_TP_SL_FIXED { TP_SL_TYPE }; struct OptimizationOrderTime { double open_price_pos; //8 double lote_entrada; //8 double val; // ATR o puntos, 8 long time_open_pos; //8 int type_pos; //4 int padding_extra; //4 }; #endif // MQLARTICLES_STRATEGY_CORE_DEFINES_MQH //+------------------------------------------------------------------+` //+------------------------------------------------------------------+