MQL4 and MetaTrader 4 - page 901

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
  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 ?
[Deleted]
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....
[Deleted]
  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...
[Deleted]
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...
[Deleted]
  Linear Regression Slope - Help  (22   1 2 3)
. 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...
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 );
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...
[Deleted]
Hello all, and thanks in advance for reading this. I'm having a little bit of trouble figuring out how to get two orders to close consecutively.  For some reason, when I run the below code with live trading enabled and the "manual confirmation" box checked it brings up both trades for confirmation....
Hello, I am an usual Metatrader user. I used especially MT4. Ilived in Canada where MT4 worked perfectly. I have just moved in French Guianabecause my father has just died from a serious illness, and I have to supportmy mother during several months. I try now desperately to put on MT4 or MT5, but...
  HAMa Step Histo  (5)
All, How do it get the two values presented by this indicator using iCustom? I've tried the following and other variations and it's not working.        iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 0, i);        iCustom(NULL,0,"HAMa Step Histo",1,3,6,5, 1, i);    Thanks in advance!! 
  two suggestion  (5)
OCO Order Suggestions, MetaTrader 4, Open, Start: 2013.07.10 09:11, #791487 can be implemented pending orders OCO? tie ticket between them ... so as to allow the use of strategy!    Label on the vertical scale Suggestions, MetaTrader 4, Open, Start: 2013.07.09 17:20, #790653 why not put a label on...
Hello, I'm not receiving notifications of subscribed topics. I have to go to the topic's page to check the answers. In my profile, all topics are in the subscribe section. Please, does someone knows what can be?
[Deleted]
  indicatore di %  (6)
salve a tutti c'e qualche brava persona che realizzi un indicatore di percentuale ( % ) da poter inserire sui grafici grazie
[Deleted]
Hallo zusammen Ich bin new im forex handel und möchte gern meine trades automatisieren. Ich habe viele EAs gefunden, aber keines wo mir erklärt, wie ich meine eigenen angepassten Indikatoren mit einem EA verbinden kann. Meine Vorstellung ist, wenn mir die Indikatoren ein buy oder sell Signal auf dem...
I want to copy trades from one of my account from other broker to other account from diff brok
[Deleted]
Hi everybody,  I have >= 2 sell orders, how can i get OrderOpenPrice each of them??? Exam: i have 2 sell orders, 3 buy ordesr, 1 buystop order, 1 sellstop order. I want get OrderTicket each of them to compare OrderOpenPrice between sell order vs  sellstop, buy vs buystop,  This is my code, it get...