Files
Bell-PriceActionWithEma-EA/Experts/EA_ICT_CL/Indicators.mqh
T
2026-03-10 13:47:42 +07:00

24 lines
767 B
Plaintext

#ifndef EA_ICT_CL__INDICATORS_MQH
#define EA_ICT_CL__INDICATORS_MQH
// Module: Indicators
// Keep indicator handle lifecycle helpers here. This file is safe to include now.
inline bool CopyBufferSafe(const int handle, const int buffer, const int start_pos, const int count, double &out[])
{
if (handle == INVALID_HANDLE) return false;
ArraySetAsSeries(out, true);
const int copied = CopyBuffer(handle, buffer, start_pos, count, out);
return (copied == count);
}
inline bool CopyTimeSafe(const string symbol, const ENUM_TIMEFRAMES tf, const int start_pos, const int count, datetime &out[])
{
ArraySetAsSeries(out, true);
const int copied = CopyTime(symbol, tf, start_pos, count, out);
return (copied == count);
}
#endif // EA_ICT_CL__INDICATORS_MQH