Files
EA_with_Python/.mql-auto-forwards/HIT-EA_refactor_ver4.ca569fc9.auto.mqh
T

142 lines
13 KiB
Plaintext

#ifndef MQL_AUTO_FORWARDS_INCLUDED_CA569FC9DF595747
#define MQL_AUTO_FORWARDS_INCLUDED_CA569FC9DF595747
// Auto-generated by MQL Clangd. Do not edit — regenerated by "MQL: Create Configuration".
// Forward declarations for top-level functions in c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5
#line 267 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool GetTickContext(TickContext &ctx);
#line 291 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void ManageExpiredTrades();
#line 310 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void ProcessTrendUpdate(EAState &state);
#line 337 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsTrendResultReady();
#line 350 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void RefreshTrendState(EAState &state);
#line 365 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void ProcessEntryUpdate(EAState &state);
#line 396 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void ProcessM15EntryTimingUpdate();
#line 426 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
string BuildStatusMessage(TickContext &ctx);
#line 462 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void UpdateStatusComment(TickContext &ctx);
#line 476 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
string MarketStateName(const int market_state);
#line 508 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsSpreadAllowed(TickContext &ctx);
#line 521 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsEntryResultReady();
#line 534 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void RefreshTargetPrices(EAState &state);
#line 550 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void ProcessEntryDecisionIfNeeded(EAState &state, TickContext &ctx);
#line 575 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool ShouldRunEntryDecision(EAState &state);
#line 591 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool ValidateEntryPreconditions(EAState &state);
#line 641 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsTargetCandidateExpired(EAState &state);
#line 663 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
int SendAllowedEntryOrders(EAState &state, TickContext &ctx);
#line 701 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool TrySendEntryOrder(const int orderType, EAState &state, TickContext &ctx);
#line 754 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
string EntryTypeName(const int orderType);
#line 781 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
double CurrentPriceForOrderType(const int orderType, TickContext &ctx);
#line 802 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsTargetPriceOrderConditionMatched(const int orderType, TickContext &ctx, const double en, const double tp, const double sl);
#line 837 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsM15EntryTimingConfirmed(const int orderType, TickContext &ctx, const double en);
#line 880 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
double AverageM15Range(const MqlRates &rates[], const int count);
#line 914 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsM15SignalAligned(const int orderType, const MqlRates &prev_bar, const MqlRates &last_bar, const double en, const double entry_zone);
#line 959 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
double SafeBarRange(const MqlRates &bar);
#line 981 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool MeetsTradeDistanceRules(const int orderType, TickContext &ctx, const double en, const double tp, const double sl);
#line 1031 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void UpdateEntryRetryState(EAState &state, const int sent_success);
#line 1061 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void CreateDoneFile(const string name);
#line 1081 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void DeleteDoneFile(const string name);
#line 1097 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool CheckDoneFile(const string name);
#line 1110 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void CreateRunningFile(const string name, const uint process_id);
#line 1131 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void DeleteRunningFile(const string name);
#line 1146 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
datetime LoadRunningStartedAt(const string name);
#line 1172 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
uint LoadRunningProcessId(const string name);
#line 1205 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsRunningFileTimedOut(const string name);
#line 1217 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void ResetExternalProcessState(ExternalProcessState &process);
#line 1233 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool AttachRunningProcess(const string running_file, const string label, ExternalProcessState &process);
#line 1261 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool UpdateExternalProcessStatus(ExternalProcessState &process, const string label);
#line 1297 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsExternalProcessTimedOut(ExternalProcessState &process, const string running_file);
#line 1311 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool StartBatchProcess(const string bat_file, const string running_file, const string label, ExternalProcessState &process);
#line 1367 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void PrepareDoneFileOnInit(const string done_file, const string running_file, const string label);
#line 1400 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsProcessResultReady(const string done_file, const string running_file, const string result_file, const string label, ExternalProcessState &process);
#line 1446 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsProcessStartAllowed(const string done_file, const string running_file, const string label, ExternalProcessState &process);
#line 1501 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void RecoverTimedOutPythonProcesses();
#line 1530 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool RecoverTimedOutProcess(const string done_file, const string running_file, const string label, ExternalProcessState &process);
#line 1593 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool GetLatestOHLC(datetime &times[], double &open_prices[], double &high_prices[], double &low_prices[], double &close_prices[], ENUM_TIMEFRAMES tf, int bars_count);
#line 1648 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool RecordOHLC(const string filename, const datetime &times[], const double &open_prices[], const double &high_prices[], const double &low_prices[], const double &close_prices[]);
#line 1704 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool ExecuteBatchTrend();
#line 1723 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool ExecuteBatchEntry();
#line 1742 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool RecordOHLCAndExecuteBatch_Trend(EAState &state);
#line 1776 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool RecordOHLCAndExecuteBatch_Entry(EAState &state);
#line 1811 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool GetTrendState(EAState &state);
#line 1836 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void LoadTrendState(int &trend_state);
#line 1870 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool GetTargetPrices(EAState &state);
#line 1916 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void LoadTargetPrices(double &target_prices[]);
#line 1969 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool SendOrder(int orderType, double price, double tp, double sl);
#line 2048 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
ENUM_ORDER_TYPE_FILLING GetOrderFillingPolicy(string symbol);
#line 2066 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
void ApplyPendingOrderExpiration(MqlTradeRequest &request);
#line 2105 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
string RequestComment(int orderType);
#line 2124 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool IsOrderTypeAllowedByTrend(const int orderType, const int trend_state);
#line 2157 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool HasValidTargetPrices(const double en, const double tp, const double sl);
#line 2170 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
int CountMyPendingOrders();
#line 2203 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
int CountMyPositions();
#line 2233 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
int CountMyUsed();
#line 2249 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool CancelExpiredOrders();
#line 2308 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver4.mq5"
bool CloseExpiredPositions();
#endif