Forum

Why not filling?

I see 2 lines, but not filling. //+------------------------------------------------------------------+ //| Sell_level.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //|

How to set charts?

How to set all charts with same template's TPL file. There is a command for it

GetDiskFreeSpaceExA

#import "kernel32.dll" bool GetDiskFreeSpaceA ( string & as_dir, double & al_sectorspercluster, double & al_bytespersector, double & al_freeclusters, double & al_totalclusters); bool GetDiskFreeSpaceExA( string & as_dir, double & ast_userfreebytes, double & ast_totalbytes, double &

TerminalInfoString

int error=GetLastError(); string a= TerminalInfoString ( TERMINAL_DATA_PATH ); error=GetLastError(); After run: a: valid terminal's path. But error is 4051, invalid function parameter. Please help me, who knows why this is

ObjectSetText why not to set the description?

string comnts= "Buy Calculated lots: 18.27 Loss: 13483 $ (2.04%) Margin: 12456 $" ; ObjectSetText ( "TradeMessageLotBuy" ,comnts, 8 , "Tahoma" , Lime); error=GetLastError(); if comnts="333333", then set description. In the old version, this working good. In 600, not. And the most interesting thing

Why not sleeping?

Hi, I probe this code. .........while(j<10 && (iClose(CurrentSymbol,ServerSyncTimeFrame,2)==0 || GetLastError()==4066)) // call the iClose() function with a shift of 2 to ensure we sample the timeseries in a likely unsynchronized span { j++; // increment the while loop counter if(verbose==true)

Market is closed

How can I get info that the market is closed? IsTradeAllowed ( ) is return true in time (weekend)

WindowScreenShot problem

Hello, In costum indicator WindowScreenShot is working prfectly. Create an pictures at 5 minutes eg: 10:15,10:20, etc... And After a period(random) of time does not work. Not write the file. Why? GetLastError() not signal error. Apparently all good. THX