Forum

Problem with Expert Advisor execution

Hi Guys, Is it possible to place orders via your EA using a demo account ? When I try to place orders I get this error: sell: Order has not been completed -error 4752 ERR_TRADE_DISABLED 4752 - Trading by Expert Advisors prohibited I have 1000 equity in my demo account. Maybe my broker doesn't give

Problem with coding on MAC

Hi gurus, I have problem with coding on MAC. I create my expert advisor (MQL4) on PC and test it. It works fine. When I bring my EA on MAC compiler brings me an error, for example: iHigh, iClose, iLow, iTime function --> error is "iHigh - function not define" OrderSelect error is "wrong

Array out of range in function with for loop

I try to build function which will calculate pivots for specified price and put it in array of MqlPivots structures. in src is code of function. when i call it in a script whit this: MqlPivots pivots[]; Print(GetPivots(_Symbol, PERIOD_D1, 0, 3, pivots)); I get critical error Array out of range

Can't open include mqh file or Libraries

Hi, i create mqh. file with Statistical formulas which I want to use in my EA or script. At first I try to tested them and I include my Statistical.mqh into my script. But without success. I have an error "can't open "C:\Program Files\MetaTrader 5 \MQL5\Scripts\Statistical.mqh" include file

Data from Test process for Expert Advisor

Hi Gurus, When I Test my Expert Advisor i want data of "deals or orders" what are generated during test process bring into CSV? I can't use TesterStatistics() function because it is for Optimization process . I need CSV to put into database and automate all process. I need every info about buy or

Problem with debugging mode

Hi gurus, I have problem when I want start debugging with Breakpoints. When I put breakpoints on lines which are in OnTick function it doesn't bring me back to MetaEditor when I put parameters for EA in Terminal. I try to come back with options MetaEditor but i can use Step into, Step over and Step

Problem with testing Expert Advisors

Hi gurus, I have problem when I try test my Expert Advisor. I can't put period or currency pair, only I can choose expert advisor and type of calculation like on my photo. When I start my testing when it is finished it dooesn't bring me a tab Resault of my testing. I don't know why. Thanks

Calendar and Market tabs in Toolbox

Hi, I can't see calendar and market tabs in my MetaTrader 5 toolbox window. Does somebody knows why and How I can put them in? Thank you

Metatrader 4 orders

Hi, I am beginner in forex trading and I am using platform metatrader 4 for the first time. I need help with orders in demo account. I want invest 1.000 EUR with leverage 1:100. When I calculated balance will be 100.000 EUR, and Margin will be 1000 EUR. MetaTrader 4 doesn't calculate like this