Forum

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

[MQL5] OBJPROP_LEVELCOLOR not working

This is problem on MQL5 I set ObjectSetInteger(0,".....",OBJPROP_LEVELCOLOR,.....); to fibonacci retracment object. But color not change. Check and fix it please. Thank you so much

I want to skip the absent ticks

Hi everyone. I'm MQL5 programmer. I backtest on "Every tick based on real ticks" model. But my ticks data is so many real ticks absent. If tick is absent MT5 will generate tick replaced. I don't wanna trade at absent ticks (generate ticks) time. How to skip it ? I mean how to check this time is

How to change value in Trade Settings

I can't change value in Trade Settings (MT5 tester setting). Anyone else encountering this problem as well

Margins in Trade Settings can't change value

Margins in Trade Settings can't change value. Fix it, Please. Thank you

Ticks data from brokers can trust ?

Can I trust ticks data from brokers ? I thinking for create "Write ticks" indicator, If ticks data from brokers can't trust. Comment your mind, Please. Thank you