Forum

[MQL5] ChartScreenShot() function can't work on tester

I call this in tester. ChartScreenShot( 0 , "test.bmp" , 800 , 600 ,ALIGN_LEFT); It's not work. I searched all over the my pc and couldn't find any file named "test.bmp." Everyone can try it with your self. It used to work, I don't know why it has changed now

[MQL5] ArrayInitialize in mql5 cannot use with long variables

double var_dbl[ 5 ]; long var_long[ 5 ]; void OnStart () { ArrayInitialize (var_dbl, 123 ); ArrayInitialize (var_long, 123 ); ArrayPrint (var_dbl); ArrayPrint (var_long); //Result //var_dbl[123, 123, 123, 123, 123] //var_long[0, 0, 0, 0, 0] } Everyone can test it. Fix it please. Thank you

ChartGetInteger(0,CHART_BRING_TO_TOP) does not work properly in mt5 tester

ChartGetInteger ( 0 , CHART_BRING_TO_TOP ); It should return a value of 1 (or true) in visual testing , but it returns 0 (or false). Meanwhile, in MT4 testing visual mode, it returns 1 (or true). It should be the same. Could you please check this? Thank you

ChartSetInteger(0,CHART_SHOW_TRADE_LEVELS,false) not work in MT5 tester visual mode

ChartSetInteger ( 0 , CHART_SHOW_TRADE_LEVELS , false ); It does not work in MT5 Strategy Tester (visual mode). You can try it yourself. This is important for me because it obstructs my trading bot’s display. Please check and fix it in the next build version. Thank you

ChartIndicatorGet function has problem

OnDeinit() event will not called if you call ChartIndicatorGet(0,ChartWindowOnDropped(),MQLInfoString(MQL_PROGRAM_NAME)) like this. (It's only on indicator process) In this code you will don't see print "reason: "+reason in log when you remove indicator or any deinit actions until you recompile it

result time_day_of_year of TimeToStruct() and TimeDayOfYear() is different

#property strict int OnInit () { MqlDateTime _Time; TimeToStruct ( TimeCurrent (),_Time); Print ( "_Time.day_of_year = " +_Time.day_of_year); Print ( "TimeDayOfYear(TimeCurrent()) = " +TimeDayOfYear( TimeCurrent ())); return ( INIT_SUCCEEDED ); } It's should same value ? I also tested with the

Indicator cannot call in OnCalculate()

"[MQL5 bug]" removed from topic title by moderator. Indicator call function like iMA(), iRSI(), iCustom() .... etc. It's strict must call only in OnInit() ? If call in other event like OnCalculate(), Buffer value will be distorted. (From code the red line buffer should be equal as moving average

Indicator still process after removed it

"[MT5 bug]" removed from the title by moderator Download indicator file and include file. Then try run on your MT5. Then remove it from chart. You will see log still run in Expert tab even close chart. Way to stop process is only close terminal. I want to tell this to the Metaquotes dev for solve

Over value in indicator

Who has ever this problem? Indicator buffer is over value at sometime. Getting strange values even though we didn't set that value. I don't know where it gets the value from

MT5 navigator window feature recommendations

In navigator window in MT4, You will can click on any items and type any letter on keyboard. The selector will move to nearest item with name same you type letter. But not in MT5. I want this. Anyone want this too