Forum

How to draw Line using ObjCreate() function from within Expert Advisor?

I am trying to draw bollinger band line from within Expert advisor using ObjCreate() function with OBJ_TREND type of object but it draws line that goes beyond two coordinated (Time1,PRice1) and (Time2, Price2). I would like to be line drawn only from first to second coordinate but line extend

How to remove Indicator line on Strategy tester in Visual Mode

Hello, In my MQL5 Expert Advisor I use iMA function to create Movie averages needed for logic. These MA lines are plotted using ObjectCreate() function using price and time values data generated with iMA. When I try to Backtest this EA in Visual Mode on Strategy tester these lines automatically show

How to specify ENUM identifier with two separate words

Hi, I am looking for defining ENUM data type with list of identifier using two separate words. For example : ENUM example{ Identifier one, Identifier two, Identifier Three }; Input example seperateWord = Identifier one; The intention is to get the identifier show up in the drop-down list the

What is the equivalent of OrderCloseTime() in MQL4 to corresponding command in MQL5

I am trying to get the close time of the order from History Tab in MT5. I used HistoryOrderGetInteger(ticket, property_id) where I tried property_id = ORDER_TIME_DONE as well as ORDER_TIME_SETUP but none of these giving me order close time. Is there any single command or combination of commands in

How to get History Order Close Time in MQL5

Can anyone tell me how I can get Order Close time for any closed order in History? I tried HistoryOrderGetInteger(tktNum, ORDER_TIME_DONE ) But it gives me order opening time which is the first column in History tab of MT5. I want the time which is specified in "Time" column of history tab in MT5

MT5 Strategy Tester says 100% History Quality means results are GOOD?

Just wondering how reliable MT5 Strategy Tester is. I am running my strategy and if it gives me results with 100% History Quality does that mean the results like growth in Account Balance/Equity will be same on DEMO forward testing as well as LIVE results will be same assuming that there is almost

unhandled exception error while attaching EA with DLL to chart

Error message I get when I try to attach myFxBook EA to MT4. I select 'Allow DLL import ' and enter my username and password correctly but as soon as I click 'OK' mt4 gives 'Unhandled exception ' error and then it gives out 'expert removed' message. Not able to attach myFxBook EA to chart. Please

error free compiled file while loading gives "can not load file ERROR" in MT4

I am using MT4 build 971. I am getting an error when I am attaching certain indicator to any chart. I have compiled that indicator without any error and then trying to attach to chart but I get error message "can not load <file path/fileName.ex4> error. Sometime when I restart my MT4 platform by

can anyone tell me how I can draw object in future time

I am trying to dra object using Object create function giving properly time and price coordinates . As far as time coordinate is concered if it Time[n] where n=0,1,2,... it is ok. I have no problem drawing object but hen I use n= -1,-2,-3,..... it desnt draw on future bar postions. I get time value

How to fix Error 133 (Trade is disabled)

I have EA running which works fine most of the time but suddenly once in a while I get error 133 (Trade disabled) for Pending order it places. Once I get this error I am not able to delete or modify this order. But although in my MT$ it still remains Pending order but actual broker server it shows