Forum

Does Metatrader VPS support sqllite databases?

Hello, I have made an EA for Metatrader 5 that uses a sqllite database file in the background, which is stored locally. Does the Metatrader VPS support sqllite databases and can I make my EA work on the server? How could the locally stored database file synchronise with that on the VPS ? The

Function with struct parameter, DatabaseReadBind

Hello there, there's a function in MQL5 that can accept struct parameters, it's DatabaseReadBind bool DatabaseReadBind ( int request , // the handle of a request created in DatabasePrepare void& struct_object // the reference to the structure for reading the record );

MT5 strategy tester visualization arrow/line color

Hello there, I'm backtesting my EA, which is based on MA crossings and other indicators. Right now, I get blue arrows and lines when partially closing a sell position. I use ctrader. However, it's still a sell position, not a buy position. That happens just in the strategy tester visualization

How to handle and calculate positions on a netting account

Hello there! I'm converting my expert advisor to Metatrader 5. With hedging, the handling and calculation of positions is quite reasonable. I might need to stay away from netting accounts. But how do you handle positions with netting accounts? Example 1: You buy 0.1 lots of GBPUSD at 9 am and

How to calculate time with periods

Hello, please help me with this. Let's say I'm in H1 and I'd like to calculate the exact time of an intersection like that intsections[i].time = TimeCurrent() - ( shift * 3600) shift is the amount of periods (hours) the last intersection happened. I substract that amount of time in seconds from the