MQL4 and MetaTrader 4 - page 730

To post a new topic, please log in or register
ok, my problem is on very strange array action. I got a 2D array called filecontent where on that is [50][1] in size. its set as a global variable. The problem is that although i set for every element of the array a different value when i m trying to print it back i keep getting the same value for...
Hi, Can you give some advice here... The preliminary goal is to extract pairs of ticketnumber & orderprofit from history, and copy them to multidimensional array for sorting ascending by ticket. This I think is the most reliable way to 'get hold of' the last N orders for further investigation....
hi guys, i coded something that if some condition becomes true it will create an object in my chart. the object is a text and a rectangle. my problem is that if i do backtests over a day/week/month, my code will only create 2-5 objects. but i this periode of backtesting the code should create about...
I have a problem with a MetaTrader from a Broker, I have use with many different Brokers my EA,s but with this broker i get to often the same problem. The problem ist that, when i have the Expert Advisor on the chart running then i look sometimes and see that is has not send orders, then i want to...
I need some help with this stop loss issue. the following code gives me a 130 error (invalid stop loss). Even though the stop loss and take profit are above the minimum limit? i dont get it at all thanks to anyone who can help...
hi..guys.... i created an indicator with values from the total profit of the opened orders....whenever i restart the platform or refresh the screen, the data gets lost....how do i make the data persistent??..
Hello fellow traders, I am currently working on setting my MT4 program up for my live account (been only trading with something else before). Now i am getting really irritated at the way the objects (trendlines, fibo's etc) work. Why isnt there a tab in options that adds hotkeys to every single...
From 01.01.2012, it's not possible to open a demo account after a fresh installation of the MT4 Client Terminal. It's the same with every broker I tried. It works if you log on to an existing account first. Apparently it's some date-related issue, server side. Thanks for fixing it.
This may be a silly question, but is there any way to refresh the contents of the Navigator window within the MetaTrader 4 terminal? The equivalent window within MetaEditor does have Refresh as one of the options in its context menu, but I cannot see any equivalent in Terminal. If the answer is...
G'day from downunder, Firstly, is it possible for the EA to control the timeframe (hour, day, etc.) or does the EA use the timeframe of the underlying chart? In other words, can an EA running on a 5-minute chart be using a one-hour timeframe for its decision making? If it is possible for the EA to...
  TREND FOREX (2)
I've been all through the archives and all I can find is more people asking this question with no answers. The question varies and is usually related to "non-reproducible backtesting results". It is just become obvious to me that "bid" and "ask" are not stored in the data. Since data is...
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...