Files
Bell-PriceActionWithEma-EA/Experts/EA_ICT_CL/Orders.mqh
T
2026-03-10 19:28:06 +07:00

19 lines
658 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef EA_ICT_CL__ORDERS_MQH
#define EA_ICT_CL__ORDERS_MQH // Tránh include trùng
// Module: Orders chuẩn hóa giá, tạo comment lệnh (magic, fvg_id)
inline double NormalizePrice(const string symbol, const double price)
{
const int digits = (int)SymbolInfoInteger(symbol, SYMBOL_DIGITS); // Số chữ số thập phân của symbol
return NormalizeDouble(price, digits); // Làm tròn giá theo digits
}
inline string BuildOrderComment(const long magic, const int fvg_id, const string tag = "ICT")
{
return StringFormat("%s|mg=%I64d|fvg=%d", tag, magic, fvg_id); // Comment để trace EA + FVG
}
#endif // EA_ICT_CL__ORDERS_MQH