원본 프로젝트 masterofpuppets/mql5
36 lines
1.5 KiB
MQL5
36 lines
1.5 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| Action.mqh |
|
|
//| Copyright 2026, MasterOfPuppets |
|
|
//| https://forge.mql5.io/masterofpuppets/mql5 |
|
|
//+------------------------------------------------------------------+
|
|
#property copyright "Copyright 2026, MasterOfPuppets"
|
|
#property link "https://forge.mql5.io/masterofpuppets/mql5"
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| Key to Action enum |
|
|
//| ASCII codes for keys |
|
|
//| https://www.w3.org/2002/09/tests/keys.html |
|
|
//+------------------------------------------------------------------+
|
|
enum Action
|
|
{
|
|
BUY = 'B',
|
|
BUY_LIMIT = 'I',
|
|
BUY_PROTECT = 'O',
|
|
BUY_PYRAMID = 'M',
|
|
BUY_STOP = 'Y',
|
|
CLOSE_ALL_POSITIONS = 'Q',
|
|
CLOSE_EXPERT_POSITIONS = 'C',
|
|
DEFEND_ALL_POSITIONS = 'F',
|
|
DEFEND_EXPERT_POSITIONS = 'D',
|
|
EXIT_SCALPER = 'E',
|
|
LOCK = 'L',
|
|
REVERSE_ALL_POSITIONS = 'A',
|
|
REVERSE_EXPERT_POSITIONS = 'R',
|
|
SELL = 'S',
|
|
SELL_LIMIT = 'T',
|
|
SELL_PROTECT = 'X',
|
|
SELL_PYRAMID = 'Z',
|
|
SELL_STOP = 'P',
|
|
UNKNOWN = -1
|
|
};
|
|
//+------------------------------------------------------------------+
|