MQL4 and MetaTrader 4 - page 818

To post a new topic, please log in or register
Hi, I would like to draw to vertical line on the current chart. Let's called these lines "start" and "end". How can I obtain the prices within these lines (time period). Please help. Thanks.
Hey there, I want to close an order when 3 candles have closed in the stop loss area. It just seems like the logic is never true. I have other conditions for closing trades and they work fine. Here is my approach. P.s The Print functions don't get printed....
am new at this buisness,i understand the layman understanding of the buzz but i cant just really figure out thr grapichs..actually i was doing mis own currency exchange locally which the idea came to me when i changed school from my country to another,i now discovered the difference and thought more...
Hello Friends, I am newbie, age 32yrs, learning first time the FXRICH terminal DEMO client for EXCHANGE of EURUSD. Currently i am still working on DEMO version to understand the parameters. Can anybody explain me this ?? Using logic's i am still confused that if i invested on 500 US Dollars and...
according to my strategy ineed help to add and modify position i had done this but it has problem if (Volume[0]>1) return; //here i want to modify all open orders with new sl for (ii = OrdersTotal() - 1; ii >= 0;ii--) { OrderSelect(ii, SELECT_BY_POS, MODE_TRADES); if (OrderType()==OP_BUY &&...
Hello, Somebody know an expert advisor that can trade in two broker that use mt4 plataform ? I would like to buy eurusd in one and sell eurusd in other. A want to trade in the diference of the prices. Buying where is cheaper and selling where is expensive. Regards,
I have been reading through some code in the codebase and came across //+------------------------------------------------------------------+//+------------------------------------------------------------------+extern bool EachTickMode = False;int BarCount;int Current;bool TickCheck =...
Hi guys im new to MQ4 and i have built my first EA i want to know how i lock it to an account and broker plus also so will only work on EURUSD pair? All i need is the code and know were to put it for this im happy to pay please get back if u can help:)
I have strategy that I wrote an EA for and it is supposed to place an OCO for the instrument it is attached. 2011.10.11 03:00:03 DailyBreakOutAUDUSD,H1: open #57394810 buy stop 4.20 EURUSD at 1.36901 sl: 1.36401 tp:1.37901 ok 2011.10.11 03:00:04 DailyBreakOutEURUSD,H1: open...
Hi, if an object on the graph has name= ABC_DEF_EHIJKL_MNOP_QRST How can I get only the part "MNOP" and save to a string With many thanks in advance :)
Hi I've created an EA that works, but I want to take it to the next level, atm I compare the account balance with the "previous account balance" with a static double... So I record the account balance, and then after the trade is completed, the EA checks if the account balance got less or more, if...
Hello, I need of the history data tick by tick of the pair currency AUDUSD, someone can help me with it? thanks []'s Leandro
Hi: I'am new using the program (Mt4) and iam currently using it in demo mode to practice. The point is that i have this problem, what i thinks it is a big deal, at some random moment the program connection seem to stop (even when my web browser connection is doing fine) and a few seconds later it...
Good night or good morning accordingt to where you are. I am testing an EA I am coding and I use the print function to know what it is doing in order to debug it but it's appear to be heavy because there is news informations every ticks and the automatic refersh is a little boring even if I can...
Hi, When I used this function, the value returned defers for different values of total. In most examples, the value for total is the same as that returned in Bars. However, Bars is dependent on the number of bars per chart which the user customized via the Options menu. So my question is, what is...
In a thread I learnt that if you would like to have an accurate test result for Scalping EA, a trustable data source with every tick is very important.(MetaQuotes's data is not very good from this point of view, course it "make" candles by itself rather than using real historical data). Someone...
Hi Has anyone noticed and whether or not there is going to be a fix made for these two problems I have run into... I've had loads of MT4 installs on my PC, and currently have lots of them installed too, and each do the same thing. 1. strategy tester; the speed slider, when moved to maximum, you can...
  Help please ? (2)
Hi all, First - please excuse my ignorance in MQL4, I'm still a newbie when it comes to this one, your patience is appreciated. I'm trying to create an EA based on 'Urban Forex 10 Pips Scalping' strategy (http://www.urbanforex.com/forex-trading-strategies/68-10-pips-per-day-scalping-strategy) This...
hey guys i jsut have two questions which i cant answer myself by googling or with the book: what does this mean?: int/bool something if (!something) what does the "!" tell me and why is there no condition in the ()? and the second question is: its almost the same as top what does it mean when...
I was curious about the speed of mql4 compared to mql5, so I did a little test. I implemented a simple prime searching algorithm and ran in MT4 and MT5. Code in MQL4: int filehandle, i, d;double x;int start() {   Print(TimeLocal());   filehandle=FileOpen("primes.txt",FILE_WRITE);   for (i = 1; i <=...
  Beep (4)
Hello I use MT4 and I configured an indicator (RSI), currently I'm working on my computer and occasionally I'll see if the RSI is not within my chosen. It is not possible in the configuration of this indicator to my attention when he reaches the upper or lower limit by a sound? Patrick
hello, can any one help me, i want an EA for stochastic that when %K of stochastic cross 70 level then automaticaly buy a 0.1 lot size position without TP and SL and same when %K of stochastic cross 30 level then automaticaly sell a 0.1 lot size position without TP and SL according to stochastic...
Hi all experts here, need your help I created an EA based on price volatility. It will buy/sell if price jump up/down suddenly. When I compile, no error but when I test in Strategy Tester, it fails to open any buy/sell order, it gives error 0 in error message below is the code you are welcome to...
Any one help me I hereby attached one indicator. can anyone convert the indicator to expert advisor. kindly do the needful. This indicator accuracy above 80% . Regards J Johnson
  Very Strange (14   1 2)
My EA will not work unless i check the (Allow Live Trading) + (Manual Confirmation) If I just check the (Allow Live Trading) it will do nothing ... just skip the step of OrderSend() and generate an alarm!! do i need to add some sleep time or what? //---- buy conditions   if...
  New to Robots (3)
Just loaded 2 Robots to the FXCM MetaTrader 4 Demo platform - Best Secret EUR/USD & GBP/USD. I get the smiley's in the top Right hand corners - but the robots are not trading? Looking at the Navigator - they are greyed out? Any advice?
Hi, can anyone point me in the right direction. Thanks in advance ObjectSetText() indicator code problem I have a problem with indicator code that, although placed on all charts, output is only at the first position or chart opened. The code attaches a text of pip calculation (OrderStopLoss...
  Tester Spread Problem (22   1 2 3)
I have a problem with the tester that I'm hoping someone knows how to fix. When I run a backtest the symbol properties tab appears to get populated with the current spread data (at the time the test starts). The problem is, if I test on the weekend when the market is closed, then the spread is...
I am placing the same indicator on the same chart and drawing objects on each of the two indicators. I next want to identify which object(s) belows to each indicator. I can get the window number from each object by using the ObjectFind(name) function. This returns the window index. Great. But I...