Files
EA_with_Python/.mql-auto-forwards/HIT-EA_refactor_ver2.4914830b.auto.mqh
2026-06-14 22:16:37 +09:00

130 lines
12 KiB
Plaintext

#ifndef MQL_AUTO_FORWARDS_INCLUDED_4914830B59E597AA
#define MQL_AUTO_FORWARDS_INCLUDED_4914830B59E597AA
// 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_ver2.mq5
#line 245 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool GetTickContext(TickContext &ctx);
#line 269 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void ManageExpiredTrades();
#line 288 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void ProcessTrendUpdate(EAState &state);
#line 315 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsTrendResultReady();
#line 328 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void RefreshTrendState(EAState &state);
#line 343 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void ProcessEntryUpdate(EAState &state);
#line 374 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
string BuildStatusMessage(TickContext &ctx);
#line 410 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void UpdateStatusComment(TickContext &ctx);
#line 424 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsSpreadAllowed(TickContext &ctx);
#line 437 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsEntryResultReady();
#line 450 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void RefreshTargetPrices(EAState &state);
#line 466 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void ProcessEntryDecisionIfNeeded(EAState &state, TickContext &ctx);
#line 490 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool ShouldRunEntryDecision(EAState &state);
#line 506 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool ValidateEntryPreconditions(EAState &state);
#line 549 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
int SendAllowedEntryOrders(EAState &state, TickContext &ctx);
#line 586 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool TrySendEntryOrder(const int orderType, EAState &state, TickContext &ctx);
#line 633 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
string EntryTypeName(const int orderType);
#line 660 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
double CurrentPriceForOrderType(const int orderType, TickContext &ctx);
#line 681 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsTargetPriceOrderConditionMatched(const int orderType, TickContext &ctx, const double en, const double tp, const double sl);
#line 715 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool MeetsTradeDistanceRules(const int orderType, TickContext &ctx, const double en, const double tp, const double sl);
#line 765 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void UpdateEntryRetryState(EAState &state, const int sent_success);
#line 794 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void CreateDoneFile(const string name);
#line 814 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void DeleteDoneFile(const string name);
#line 830 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool CheckDoneFile(const string name);
#line 843 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void CreateRunningFile(const string name, const uint process_id);
#line 864 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void DeleteRunningFile(const string name);
#line 879 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
datetime LoadRunningStartedAt(const string name);
#line 905 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
uint LoadRunningProcessId(const string name);
#line 938 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsRunningFileTimedOut(const string name);
#line 950 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void ResetExternalProcessState(ExternalProcessState &process);
#line 966 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool AttachRunningProcess(const string running_file, const string label, ExternalProcessState &process);
#line 994 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool UpdateExternalProcessStatus(ExternalProcessState &process, const string label);
#line 1030 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsExternalProcessTimedOut(ExternalProcessState &process, const string running_file);
#line 1044 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool StartBatchProcess(const string bat_file, const string running_file, const string label, ExternalProcessState &process);
#line 1100 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void PrepareDoneFileOnInit(const string done_file, const string running_file, const string label);
#line 1133 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsProcessResultReady(const string done_file, const string running_file, const string result_file, const string label, ExternalProcessState &process);
#line 1179 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsProcessStartAllowed(const string done_file, const string running_file, const string label, ExternalProcessState &process);
#line 1234 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void RecoverTimedOutPythonProcesses();
#line 1262 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool RecoverTimedOutProcess(const string done_file, const string running_file, const string label, ExternalProcessState &process);
#line 1325 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool GetLatestOHLC(datetime &times[], double &open_prices[], double &high_prices[], double &low_prices[], double &close_prices[], ENUM_TIMEFRAMES tf, int bars_count);
#line 1380 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.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 1436 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool ExecuteBatchTrend();
#line 1455 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool ExecuteBatchEntry();
#line 1474 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool RecordOHLCAndExecuteBatch_Trend(EAState &state);
#line 1508 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool RecordOHLCAndExecuteBatch_Entry(EAState &state);
#line 1543 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool GetTrendState(EAState &state);
#line 1568 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void LoadTrendState(int &trend_state);
#line 1602 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool GetTargetPrices(EAState &state);
#line 1647 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void LoadTargetPrices(double &target_prices[]);
#line 1700 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool SendOrder(int orderType, double price, double tp, double sl);
#line 1779 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
ENUM_ORDER_TYPE_FILLING GetOrderFillingPolicy(string symbol);
#line 1797 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
void ApplyPendingOrderExpiration(MqlTradeRequest &request);
#line 1836 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
string RequestComment(int orderType);
#line 1855 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool IsOrderTypeAllowedByTrend(const int orderType, const int trend_state);
#line 1877 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool HasValidTargetPrices(const double en, const double tp, const double sl);
#line 1890 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
int CountMyPendingOrders();
#line 1923 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
int CountMyPositions();
#line 1953 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
int CountMyUsed();
#line 1969 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool CancelExpiredOrders();
#line 2028 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
bool CloseExpiredPositions();
#line 2113 "c:/Users/new/AppData/Roaming/MetaQuotes/Terminal/5BDB0B60344C088C2FA5CA35699BAAFD/MQL5/Files/temp/HIT-EA_refactor_ver2.mq5"
int GetBarShiftByTime(datetime time, ENUM_TIMEFRAMES tf, int default_shift);
#endif