Forum

REALLY strange behaviour of MQL4 when trying to do a simple division operation.

Look at the following simple line of code: double ratio = candles[ 0 ].body / candles[ 1 ].body; When trying to debug this simple line, I get the following results: This result is all wrong! In other words, instead of: candles[ 0 ].body / candles[ 1 ].body // this is what I want to do... it does the

non of the agents in MQL5 Cloud Network are working?

As you can see in the below picture, I've been trying to utilise MQL5 Cloud Network for an hour but in vain! None of the agents are working. I also paused my antivirus on my laptop but nothing happened. Very occasionally a few agents (5 to 7 at most) work for a short period, but then nothing again

Why doesn't this indicator get plotted on the chart?

I really can't understand why this custom indicator doesn't draw anything on my chart? #property indicator_chart_window #property indicator_buffers 2 #property indicator_type1 DRAW_ARROW #property indicator_color1 clrOrangeRed #property indicator_width1 1 #property indicator_type2 DRAW_ARROW

What exactly "History Quality" mean?

I tried to test my strategy for the past month, but I realized the "History Quality" was very poor (30%). I counted the candlesticks for the time frame in question and for the past month ONE BY ONE to see if anything was missing. No candlestick was missing! So, the question is what does "History

Is Metatrader Strategy Tester really that useless?

Ever since I started seeing " 30% History Quality " in my strategy Results tab (MT5), I've been searching for the reason/remedy. Now 11 days has past and I've still been unable to find a solution. I've set "Max bars in chart" to "Unlimited", I've "refreshed" the chart for like a million times, I've

Is mult-threading possible in Expert Advisors?

First, look at this scenario in an Expert Advisor: STEP 1 : ChartSetInteger (chart_ID, CHART_BRING_TO_TOP ,0, true )); // bring a chart to the foreground; STEP 2 : Sleep (2000); STEP 3 : do a job; We know that each single Expert Advisor runs in its own thread. But when I run the above code, I

ObjectGetValueByTime() returns wrong results

Each time I call ObjectGetValueByTime (), NO MATTER what datetime parameter I pass to it, it ALWAYS returns the same value: datetime valleyArray[]; CopyTime( Symbol (), Period (), 0, 40, valleyArray); ObjectCreate(0, valleyObjName, OBJ_STDDEVCHANNEL , 0, valleyArray [0], 0, valleyArray