Forum

String to Char, Char to String, Uchar to Char behavior.

After long inspection, I found many behaviors related to char, are not documented. I'd probably miss out them and I chose to experiment. Suspect I: when a string contains hexadecimal code, the hex code always become 2 bytes long, \xFF becomes \xFF00. Instead of prepend, it appends, losing its

DLL or SQL RPC for full HTTP capabilities

I was trying to build a browser dashboard that displaying EA processed info and these must be somehow stored somewhere. I'd wonder which is the best way to build, as I much afraid that I will only realize I'm so wrong when I almost 'done' all the jobs. My first attempt was FileWrite in MQL4 then

Finding a way to set all parameters at once when buy/sell limit via pre-written script (manual -> semi-auto)

I find it inconvenient to go thru the cycle of: move pointer > right click > buy/sell limit > set lot > set SL/TP >= 6 operations But the cycle of: move pointer > right click > buy/sell limit + preset lot + SL/TP >= 3 operations Is that possible to code this thing out? Searching the internet doesn't

Label with monospaced font unable to change font size

//+------------------------------------------------------------------+ //| DrawUtil.mqh | //| Copyright 2024, Ting | //| https://www.mql5.com |

Why JPY pairs returns Digits 5 to me?

//+------------------------------------------------------------------+ //| TradeUtil.mqh | //| Copyright 2024, Ting | //| https://www.mql5.com |

Limited account size lead to EA inconsistent performance as lot size rounding up / down, how guys proposed to mitigate this?

Given a scenario, my account size is small, so the risk size small, henceforth the lot size is very small. This is not good when the lot step is generally bigger, and broker not accepting your tiny lot size that represent your accurate risk control . In the worst case, it could totally remove the

Let's discuss how to avoid memory leak in a C like language and possibly make this thread informative

Question I - dangling pointer, memory leak in MQL4, is it same as C/C++, in terms of definition and their actual behaviors? Question II - citing William's words [ https://www.mql5.com/en/forum/347811 ], does avoid using `new()` will get rid of most if not all memory leaks? From my perspective n his