Forum

Programmatically set OBJPROP_COLOR

// Instead of using a static color literal ObjectSetInteger(0,name_,OBJPROP_COLOR,C'128,128,128'); // I would like to set the color value programmatically like this ObjectSetInteger(0,name_,OBJPROP_COLOR,"128,128,128"); Is this possible? I see nothing in the OBJPROP_COLOR documentation that hints at

Chaining Variable Assignment

I've read the variable assignment documentation and it doesn't mention anything about assignment chaining. Is it possible to write: double a = 1 ; double b = 2 ; like the following? double a, b = 1 , 2 ;

Is there a sqlite query size limit?

@Alain Verleyen or @William Roeder , do either of you know if there is a query character limit in mt5's sqlite connector? If so, I may need to use triggers as a workaround (which is ridiculous). I've tested a bunch of valid sqlite queries on my db. When I try to execute the same queries from mt5

FileReadString can't read more than 8192 bytes (MQL5)

I am using the following function in mql5. (which is basically a copy-paste from the documentation https://docs.mql5.com/files/filereadstring ). Why can't I read more than 8192 bytes from any file? The file read doesn't fail -- it just get's truncated. (No, there is no "\r\n" at location 8192.)

Mql5 Built-in Machine Learning

Hi there, I heard that mql5 has recently added some built-in machine learning packages. I must be blind I can't find the documentation anywhere. Can someone give me a link? Thanks

using try,except in mql5

I want to use try,except logic but can't seem to find an example anywhere. How would I write the following in mql5? try: #include <dependency.mqh> except: Print('Could not load the dependency');