Files
MQL4Data/Bkp/UnUsed/Libs/x-saherelm.xmma.models.lib.mq4
T
2024-01-25 04:05:58 +03:30

85 lines
1.4 KiB
Plaintext

///////////////////////////////////////////////////////
//
// SaherElm IT Center XMMA Models Library
// ---------------------------------------------
// contains all data model definitions related to
// an specific Indicator/Oscillator/Expert ...
//
//
// Maintainer:
// ------------
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
//
//////////////////////////////////////////////////////
#property library
#property copyright "Copyright 2023, SaherElm IT Center"
#property link "https://www.saherelm.ir"
#property version "1.00"
#property description "SaherElm XMMA Models Library"
#property strict
//
// START Models ...
//
//
// Used Indicators List ...
const string xmmaIndicatorName = "x-saherelm.xmma";
//
// these are different signal types ...
enum X_SIGNAL_TYPE {
X_NONE,
X_LONG,
X_SHORT,
};
//
// we Model each signals as this type ...
struct XSignal {
int id;
X_SIGNAL_TYPE type;
double tp;
double sl;
string symbol;
datetime time;
double entryPrice;
};
//
// this is Signal Request Response model ...
struct XSignalRequest {
bool hasSignal;
X_SIGNAL_TYPE type;
XSignal signal;
};
//
struct XMMAState {
//
double fast;
double fastPrev;
//
double slow;
double slowPrev;
//
double mid;
//
double longSL;
double shortSL;
//
bool isCrossOver;
bool isCrossUnder;
//
bool isTrendUp;
bool isTrendDown;
};
//
// END Models ...
//