I can draw a text or create an object on main indicator window, but I use sub-window number to draw a text on sub indicator window, it draws on main window. Any one can help?
Hi, Could someone please help me with my LotsizeCalc() function. I would like to multiply my lotsize with the 'MartingaleAmount' if my last trade was a loser. If my last trade was a winner I would like to use the 'normal' lotsize. Unfortunately, when I backtest the EA I get error 4051 from the ,...
Question one. each desk has about 2880 bars of data that can be accessed from. iclose, bid[] or copyrates. When does it look at the \history\desk= *.hst files? Question two: When are the *.hst files updated. Upon exiting ? Question three: tools options charts sets the memory pool that metatrader...
New article MQL5 Cookbook: Implementing an Associative Array or a Dictionary for Quick Data Access has been published on mql5.com: This article describes a special algorithm allowing to gain access to elements by their unique keys. Any base data type can be used as a key. For example it may be...
I'm relatively new to MQL4 and have been loving it, however I have run into a problem. I have created an EA and I need to access variable: 'CaseNumber' from multiple functions and also change it. I have error checking in my code and everything else seems to be functioning correctly only...
Hi guys I have been working hard to get an EA send Alerts and it seems to work just fine. Now I am working to make the EA place trades but everytime I try to set an automatic Trailing Stop feature it just doesn´t work. I receiving these codes: OrderModify error 1 I know it means that OrderModify...
Hi everyone, I'm writing to see if anyone can help with how to increase the size of the below mt4 platform? I have a Lenovo Yoga 3 and am using Oanda Australia demo. Any assistance would be much appreciated. Thankyou.
please explain how I enlarge the mt4 platforms writing in the fields what steps do i take already tried the win 8.1 setting and it dod nothing at all for the Mt4 please can someone give me the exact steps thanks
All, I have been running in to and error i cant seem to get rid of, any ideas? Here's is the code: attached is a screen shot of the error. any help would be appreciated. thanks, Blax
Hello Programmers, I need your help for the purpose of doing some changes in my EA. It is actually a scalping EA and it's result are very best. Few changes are required in that EA to make it's work perfect. Please if your MQL programming, then contact me, so that t we can abe able to make...
Previously I used Windows XP notebook, everything is smooth. I just bought a new Windows 8.1 notebook ASUS K401LB. I install TickMill demo on the new notebook and recompile my EA. When I attached my EA on a chart, I press the "OK" button but no effect. I have to keep on pressing for nearly about 1...
Hi! My ea puts opening and closing arrows plus trend lines connecting them on chart. It names those objects, starting with '#'. When testing, for the sake of not cluttering the chart, I want to delete all those chart objects (starting with '#') but last 6. I have been riddling this quest for few...
Hi everyone When I compiled a get this error: "if" - expressions are not allowed on a global scope, on lines 42 and 50. Thantks //+------------------------------------------------------------------+ //| trendcatcher.mq4 | //|...
Hi, I'm new to this forum and mql4. I'm working on my first EA project that handles real-time symbol data using SymbolInfoTick(). So far so good, it works fine on MqlTick.ask and .bid data, but not on .last and .volume, they are always =0. I'm running on the downloaded MT4 demo account, Win7....
Hi, my Mt4 programme has just stopped working. Its been working perfectly for a few months but for the last week its not been opening up when i use it on my windows XP, Its just been restarting my PC evwrytime i do. I've tried to download other platforms but no luck it still restarts my whole PC....
hi, I keep getting this error, and not sure why? i know in the book it states "Open price and expiration time can be changed only for pending orders. If unchanged values are passed as the function parameters, the error 1 (ERR_NO_RESULT) will be generated." But what is this referring to? Below is...
I have a very simple EA which just outputs an alert each ontick or each ontimer event, with the 2 stochastic values. int OnInit() { EventSetTimer(1); } void OnTick() { Alert("Tick ",Hour(),":",Minute()," ",iStochastic(NULL,0,5,3,3,0,0,0,0),",",iStochastic(NULL,0,5,3,3,0,0,1,0)); }...
Hi all, I have a strange problem with this expert. I attached it on the EURUSD M1 chart, using 2 as Renko Time Frame. Then I tried to open the offline chart but I didn't find it. So I switched to time frame 3 and I had the graph, but it doesn't refresh with new prices. Could you help me? thank you
Hi all, I have come across an issue I don't seem to be able to resolve. When writing data (iOpen, iClose etc..) to a csv file, not all but certainly a lot of entries have an extra of 10 decimals on top of the 5 decimals I normally would like to use. Examples: 9.105409999999999 or 9.106960000000001 I
Hello. I've faced with a strange problem in my terminal. The logic of the EA is based on placing the Limit orders and deleting them in case of changing the market conditions. In the 99.9% of cases it worked and works ok but today I got an error #3(ERR_INVALID_TRADE_PARAMETERS) when was trying to...
Hi, working on a mutli time frame EA that runs on a m1-chart I have to fill an array of quotes for the higher timeframes. At the end I compare the values (tme, op, hi, lo, cl, vo) with this function: int NumOfErr=0; double HiOfErr=0,LoOfErr=0,OpOfErr=0,ClOfErr=0,VoOfErr=0;string checkPrc(datetime tm...
I need to retrieve in an EA the info regarding the number of max open orders allowed by broker for the running account. Searching in the documentation I found the function for the max allowed pending orders ( ACCOUNT_LIMIT_ORDERS) but not the function for max allowed open orders. https://docs...