Liquidity_Predator/Structs/stGlobalVars.mqh

75 lines
No EOL
1.8 KiB
MQL5

#include "E_DIRECTION.mqh"
#include "E_STATEMACHINE.mqh"
struct stGlobalVars
{
double CurrentLiquidity;
datetime dtCurrentLiquidity_Time;
E_DIRECTION eCurrentDirection;
double BuyLiquidity[];
double SellLiquidity[];
double fMaxDiffTakeOut_Price;
double fMinSizeFVG_Price;
double fMaxSizeFVG_Price;
double fMinStopLossSize_Price;
double fMaxStopLossSize_Price;
double fMinDiffEMA_Price;
double fMaxDiffFVGEntry_Price;
double nS1MaxDiffTakeout_Price;
double nS1MaxDiffFVGLiquCross_Price;
double LastFVGTop;
double LastFVGBottom;
int LastFVGIndex;
MqlRates Candle[];
MqlRates Candle_HTF[];
datetime dtTimeCurrent_M1;
datetime dtTimeLast_M1;
datetime dtTimeCurrent_HTF;
datetime dtTimeLast_HTF;
datetime dtCurrentTime;
datetime dtCurrentDay;
datetime dtLastDay;
int nActualHour;
bool bSessionFilter;
int nNumberOfTrades;
E_STATEMACHINE nStateMachine;
E_STATEMACHINE nLASTStateMachine;
double BodyStopLoss;
double StopLoss;
double TakeProfit;
double Entry;
double LotSize;
int nNumberOfPositions;
MqlCalendarValue NewsValues[];
int rsiHandle;
double rsiBuffer[];
string Line_ActLiqu;
int Line_ActLiqu_Number;
bool bFilterActive;
string Rect_Background;
int Rect_ActBackGround_Number;
string Rect_FVG;
int Rect_ActFVG_Number;
double DailyStartingBalance;
int nSmallEMAHandle;
int nBigEMAHandle;
double SmallEMABuffer[];
double BigEMABuffer[];
int nSmallEMAHandle_CurrTF;
int nBigEMAHandle_CurrTF;
double SmallEMABuffer_CurrTF[];
double BigEMABuffer_CurrTF[];
bool MovedBE;
bool bRunnerPosition_CheckClose;
double fDistanceMoveRunnerSLTP1_Price;
datetime ServerTime;
datetime GMTTime;
bool bTPChecked;
bool bDemandKeepAccountAliveTrade;
};