28 lines
663 B
Plaintext
28 lines
663 B
Plaintext
//+------------------------------------------------------------------+
|
|
//| Signal.mqh - Trade signal enumeration |
|
|
//| Defines possible signals from strategy |
|
|
//+------------------------------------------------------------------+
|
|
|
|
#ifndef __SIGNAL_MQH__
|
|
#define __SIGNAL_MQH__
|
|
|
|
enum E_SIGNAL
|
|
{
|
|
SIGNAL_NONE = 0, // No signal
|
|
SIGNAL_BUY = 1, // Buy signal
|
|
SIGNAL_SELL = -1 // Sell signal
|
|
};
|
|
|
|
struct TradeSetup
|
|
{
|
|
E_SIGNAL signal;
|
|
double entryPrice;
|
|
double stopLoss;
|
|
double takeProfit;
|
|
double riskDistance;
|
|
double atrValue;
|
|
string reason;
|
|
};
|
|
|
|
#endif //__SIGNAL_MQH__
|