Forum

How to set a position with multiple level of price for TP/SL?

Hi, In MT4, we could apply a trading strategy with multiple level of price for Take profit and Stop loss, by using multiple orders for the same currency, like: order #1, buy EURUSD, price=1.3000, SL=1.2980, TP=1.3050 order #2, buy EURUSD, price=1.3010, SL=1.2990, TP=1.3060 After migrating to MT5, I

MetaQuote's EA template of using GetPointer(...), bug or a feature?

Hi, I am an old time C++ programmer and just started learning MQL5. I notice the pointer concept of MQL5 is different from traditional C++, especially for getting pointer. I read the MQL5 document and quite easy to understand the concept of using function GetPointer(...) to get the pointer of a