36 lines
1.6 KiB
MQL5
36 lines
1.6 KiB
MQL5
|
//--- expert name
|
||
|
#define EXPERT_NAME "DS_UNIT_TEST"
|
||
|
#define TYPE_VERSION "Beta"
|
||
|
#define EXPERT_VERSION "1.40 ("+TYPE_VERSION+")"
|
||
|
#define BUILD "26-02-2024 17:13"
|
||
|
|
||
|
//--- custom colors
|
||
|
#define COLOR_BACK clrBlack
|
||
|
#define COLOR_BORDER clrDimGray
|
||
|
#define COLOR_CAPTION clrDodgerBlue
|
||
|
#define COLOR_TEXT clrLightGray
|
||
|
#define COLOR_WIN clrLimeGreen
|
||
|
#define COLOR_LOSS clrOrangeRed
|
||
|
//--- define template
|
||
|
#define BackColorInput clrBlack // cor do fundo
|
||
|
#define ForeColorInput clrWhite // cor do primeiro plano
|
||
|
#define UpColorInput clrSteelBlue // cor do contorno da barra de alta
|
||
|
#define DownColorInput clrCrimson // cor do contorno da barra de baixa
|
||
|
#define BullColorInput clrSteelBlue // cor do corpo da barra de alta
|
||
|
#define BearColorInput clrMaroon // cor do corpo da barra de baixa
|
||
|
|
||
|
//--- check the use money
|
||
|
#define IS_MONEY_FIXED_LOT_USAGE ((used_money&MONEY_FIXED_LOT)!=0)
|
||
|
|
||
|
//--- check the use of strategy
|
||
|
#define IS_STRATEGY_MACD ((used_strategy&STRATEGY_MACD)!=0)
|
||
|
|
||
|
//--- check the use of stop loss
|
||
|
#define IS_STOPLOSS_NULL_USAGE ((used_stoploss&STOPLOSS_NULL)!=0)
|
||
|
#define IS_STOPLOSS_ATR_USAGE ((used_stoploss&STOPLOSS_ATR)!=0)
|
||
|
|
||
|
//--- check the use of take profit
|
||
|
#define IS_TAKEPROFIT_NULL_USAGE ((used_takeprofit&TAKEPROFIT_NULL)!=0)
|
||
|
#define IS_TAKEPROFIT_ATR_USAGE ((used_takeprofit&TAKEPROFIT_ATR)!=0)
|
||
|
|