Hello, i try to write a file in the file section. The should be created. string terminal_data_path= TerminalInfoString ( TERMINAL_DATA_PATH ); string filename=terminal_data_path+ "\\MQL5\\Files\\" + "myfile.txt" ; int filehandle= FileOpen
Hello, can't get a string member variable initialized. /////////////////////////// /// my_pos /////////////////////////// class my_pos : public CPositionInfo { public : my_pos ( string symbol= "" ) : CPositionInfo()
How to achieve this please ? CChartObjectEdit - not suitable as you can't disable it CChartObjectButton - not suitable as you can't disable it Other objects seems not have background or can put text. Thank you
Hello, have a Problem with StringFormat. The function SOMETIMES writes "(null)" to resulting string and there is no reason why this happens. Find below the code for a complete script demonstrating this: string get_string( void )
Hello, there is a problem with CChartObjectLabel::Description function . Please look at the sample below. It should print 0 to console as Description is empty. CChartObjectLabel x_label; x_label.Create( 0
Hello MetaQuotes, when trying to add triple EMA to chart, this EMA is not visible as it is always added to chart window instead to open extra data window. No way to change it. (This chart already has 1 indicator in data window). Another chart shows
Hello, have EA 'A' and EA 'B'. When attach EA 'A' to symbol USDJPY and EA 'B' to symbol EURUSD, both run well. Now go to MetaEditor and recompile EA 'B', then i see in the Experts Log ( in chronological order from top to down) : 'B' uninitialized
Hello, my question is about the order of prices in price arrays passed to OnCalcuate. I know, there are many tags for this subject, however, my problem is this: Now the problem: The sample below outputs on each tick CURRENT close and
Hello, within an indicator i tried to use CiMomentum. #include <Indicators\Oscilators.mqh> CiMomentum cMomentum; void OnInit () { cMomentum.Create( Symbol (), Period (),my_period
Hello, i am looking for an efficient formular to change period of a moving average. This article https://www.mql5.com/en/code/75 seems to promise this but after my opinion this is not the case as the recursion used
Hello MetaQuotes, - when i do a backtest , TERMINAL_DATA_PATH returns a location below tester -> tester..../mql5/.. where no expert advisor located. - when applying EA to a chart, TERMINAL_DATA_PATH returns a location below terminal ->
Hello MetaQuotes, when a backtest , without visualisation has been finished, a new chart window is opened showing trades. Unfortunately, the chart is going over all available data instead of showing the interval selected for backtest. Could you