Download MetaTrader 5

MQL4 and MetaTrader 4 - page 453

To post a new topic, please log in or register
Hello, They are many financials symbols given by my borker(more than hundred)  I want to sort them all in a mql4 program for detecting a particular candles configurations The simple way is to put them down one by one in a array ,eg      smb[]={"NZDCAD","EURUSD",....} but its boring How to import...
Sorry, I'm a newbie trying to learn how to code my own EA. I'm trying to simply push the string, "Top" or "Bottom" to my variable, "SAR_DIRECTION" when the dot is on the top or bottom of the candle on the 1hr chart. It now says top...even though it's not on the top. It usually is correct only the...
Any tutorial recommendations on getting started setting up and basic platform use? Thank You Joseph
Hi, How to assign the value of first 4hr candle high[],Low[],which i will validate for remaining candles. int whigh=0; int wlow=0; whigh=High[1]; wlow=Low[1]; when i display the value of whigh,wlow using Comment(whigh,wlow), shows o or 1 Can you help me,whether i did wrong,if yes support me to fix....
Please help me, How to validate one order per candle?
Hello All, My question is the following:  Suppose a script calls a built-in indicator for multiple symbols on a given time frame. The charts for these symbol-time frame pairs were not opened or otherwise refreshed recently. So at first call to the indicator the corresponding historical data are out...
Ea I'm working on will back test fine however will not enter a trade when placed on a demo chart and also will not take a trade during optimization testing. The ea is suppose draw trendlines on a chart and then trade accordingly and will only trade in set time ranges of the day. ~ The ea when...
Hi,   does someone have a ready lotsize calc function or indicator which is able to manage non USD base currency please?   regards taskin 
I am trying to get an EA to activate buys and sells to the following conditions: if stoch crosses 90 then condition A if condition A + stoch crosses 50 then sell order plus delete condition A if stoch crosses 10 then condition B if condition B + stoch crosses 50 then buy order plus delete condition...
  Using Arrays (2)
Hi guys,    I know this may seem like a really easy question but I've been struggling with using Arrays. I've write some code with variables which work but now I want to learn to use Arrays as my next code requires me to use an unknown number of variables (expected to be large). I'm hoping Arrays...
What is the probability that in the course of working with Meta Trader 4 and running robot, the source code of that robot (full source of expert advisor) will go into the hands of a broker or in the hands of the creators of the Meta Trader program, living in the Russian Federation? I kindly request...
Hello every one, I am trying to calculate account margin level. I know that the way to do it is     if(OrdersTotal()>=1)      {           double lev = (AccountEquity()/AccountMargin())*100.0;      } but I am getting a Zero Divide error. How do you think this is happening? and how can i avoid it??
  Spread? (1)
so yea, when im in the strategy tester, is spread 2 a spread of 2.0 or 0.2 on for example eurusd ?
Hello gurus, I am a newbie and would like to solicit your expertise in using icustom.  I was wondering how can I write the crossover of 2 lines, such as MACD, ADX, or customized indicator from icustom.  The reason being is that I would like to have a confirmation signal from a customized indicator...
Hi all,  I need to trail price once it passes a MinProfit and then when it bounces back and hit Trail value we have a close. I've already gained a lot of support from WHRoeder,but still to do not understand how to deal with this issue and am afraid to get more of WHRoeder precious time. Follow is...
in the picture above , there is 4 server , i want to use the .ru server , but after a while it change to another , so is there anyway i can remove the other 3 and keep only .ru server to use ?
Please note that forextrada.com has escroqued  various of his clients by  making  hemselves illégal negative trades   to put them account at 0 ! The clients who has still a little amount and who  begin to cleam they just blokked them  netatrader 4 account so they can not put orders anymore.......
  please help (2)
how can i code this ? what kind a loop or if type ? i want there is an orders and i want these orders tp will be different, for example this ea open that orders.  1. order buy 1.3000 2. order buy 1.2990  3. order buy 1.2980 4. order buy 1.2970.       i want 1. and 2. orders tp will be 1.2996 , 3....
  iBarShift() (10)
Please confirm if I am right or correct me if I am wrong: If I use this function like this: int NumberofBars = iBarShift(Null,0,OrderOpenTime());Will it show me(assign to the var NumberofBars) the number of bars that have been created since the time my order has been opened? ( i run it in the...
Hi I'm having trouble expressing how i would like my stop loss set. I can only do, for a long position,         StopLoss_   = iLow( Symbol(), 0, 1 ) > MarketInfo (Symbol(),MODE_ASK ) ;  which is great when i enter as my stop will be the low of previous bar. But as soon as a new bar starts my stop...
Hey guys, I was testing out my first EA and it seems that i cant get any results due to this error: TestGenerator: unmatched data error (volume limit 65403 at 2008.11.20 00:00 exceeded)  I tried everything to fix the error but i guess my lack of experience wont let me figure out whats going on. Here...
. Hi, I'm trying to develop an indicator that gives the SLOPE of the regression line at each point. The slope formula is this one:  http://s12.postimg.org/fumrf7s3x/Sem_T_tulo.png I've already wrote some code based on the Moving Average indicator. But I not very sure about those cicles are given me...
I want my EA to avoid doing any transactions within a period after the last transaction closed. Something strange is happening. My variable that records the closing time for the last transaction "LastOrder" is set back to zero for one iteration when a transaction closes and the bool variable that I...
I've got a smiley face, a moving chart, and a preloaded strategy running on a 1 minute chart (should have plenty of signals)... but no trading. Ideas?
Problem: (2nd) Trade  re enters straight away when the Stop Loss or Take Profit is hit even though the " xcross " for the entry signal/criteria has not changed from eg; from a Buy to a Sell. I am aware that the static will reset , if the Ea initialises again.   When I place this on the chart and...
Hello,  is it possible to write something directly to the experts journal ? The 'print' sends to the experts log. Maybe anyone knows kind of workaround  The reason why I'm asking is that I want to synchronize my own log-entries with the messages in the experts journal. Another solution would be if...
I have a very strange problem that has just started occurring after MT4 upgraded itself to build 500. Prior to the upgrade I could compile a script, indicator, or EA and the Terminal  had no problem reloading the newly compiled file. Since the upgrade the Terminal no longer successfully reload the...
other two possible upgrades! 1: insert in the order form (or in ordersend function) the ability to activate the trailing and how many pips! conseritrebbe what to avoid placing it subsequently from the terminal example: com buy trailing stop 10 points ... or buystop with trailing 10 points! 2: knok...
Good day   I'm using the following code showing the result of the current 2 moving averages but it is not updating even if the MA Chart is moving...   int start()  {   int ctr=0;   while(IsStopped()==false)   {      double MAa=iMA(NULL,0,3,0,MODE_SMA,PRICE_CLOSE,0);      double MAb=iMA(NULL,0,10,0...
I have written a small EA and have this strange thing happening where the same code that I use for detecting a Buy transaction that stops more Buy transactions from happening in that loop, does not work with the Sell transaction, therefore making it go in a loop and repeat Selll transactions until...