Forum

Get text from clipboard

Hello I use this script for get text from windows clipboard. When copy "HELLO" to clipboard, function returns a big number like 19522312522325488 How can I fix this code or convert this number to "HELLO"? #include <WinAPI\winuser.mqh> #include <WinAPI\winbase.mqh> #define GMEM_MOVEABLE 0x0002

script bug in monthly timeframe

Hello friends! I wrote a script in which I used the following code Print("111"); x= iTime ( _Symbol , PERIOD_MN1 , 0 ); Print("222"); When the execution of the code reaches this part, the execution of the script stops So that the print is executed before it but the print is not executed after it

optimization speed

Hello friends, I have a question about mt5 strategy tester . When I test my expert in visual mode, it takes about 2 minutes for testing eurusd in last 6 mounts, but when I want to use optimization, it take 3 hoarse to test only 10 cases. I select "fast generic based algorithm" but it is very slow

CopyFileToClipboard

Hello fiend I need a code to copy a file to clipboard and paste from clipboard by DLLs Something like CopytextToClipboard : https://www.mql5.com/en/forum/124802 is it possible by mql4 or mql5

OBJPROP_ZORDER in mql4

Hello friends I hace an Object (Orange diamond) it is under the other Objects, When I change the time frame, now it is under some bjects and falling over some other objects. how can I fix it to be allways under other objects? I checked ZORDER parametr but it seems not working. Thank you

Order Lotage

Hello Friends, I'm surprised by one thing I use this code: double min_lot = SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_MIN ); double max_lot = SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_MAX ); int lotdigits = ( int ) - MathLog ( SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_STEP ));

font size in deferment laptops!

Hello I have a problem with fonts size in EA, font size in my PC is OK (Left photo) but in my friend's PC is very big(Right photo), My another friend use this EA in tablet and he has same problem. what is the standard solution for this problem

TICKVALUE

Hello Friends, I receive wrong value from MODE_TICKVALUE in s&p (symbol : US500.F) for example in this position Loss is 2931.44 - 2933.03 = -1.59 = -159 Points , and this position profit in terminal is 1.59$ So this symbol tick value must be 0.01 but when I get tickvalue and comment it, it is 1

copyImageToClipboard

Hello I make an image by WindowScreenShot and I want to copy this image to clipboard and paste in other programs (like telegram desktop or paint) I saw very good code for CopyTextToClipboard in this link : https://www.mql5.com/en/forum/153674#comment_5020915 I'm trying to use copyImageToClipboard