MQL4 and MetaTrader 4 - page 1126

To post a new topic, please log in or register
New article Recipes for Neuronets is published: The article is intended for beginners in baking "multi-layered" cakes. Author: Алексей Сергеев
Hello. I need help about the programming of an EA based mainly on the  ZigZag signal. Even if the documentation/book of mql4 reccomand to NOT use ZigZag as a strategy for forex trading and/or EA programming, i want to  practise with programming in this indicator. In particularly i want try to adapt...
Hi guys, I wanted to make some educational videos, I've read those articles, 'Easy Way to Publish a Video at MQL4.Community' 'How to Enrich Information You Present? Use Videos!' However, I couldn't find any thing on "fast forward" play. i.e. I want to show the candles closing faster than the...
Hello: The expression "iLow(NULL,0,0) show me a Open Value of bar. Do you know what is the reason?. I need the low value of currently bar. Thanks. Regards.
Have somebody experience to create a .dll file with Dev-C++ that can be used for Metatarder. When i trie it i think the .def file is not correct includet in the .dll file, and i become the error 127. I have find a tutorial how I can create .dll file for MetaTrader with Visual Studio, but not with...
Hi, I am using MT4 and trying to get a clear answer on this since it seems there were conflicting answers to the question on various threads. When extracting historical data using HC, the O/H/L/C are Bid prices, correct? So one can simply add their own Spread to the these prices to arrive at the Ask...
Hello, I have developed an indicator with the help of my friends. The indicator seems to be perfect... I am not a good programmer.... I had a different ea based on the different indicator. I just did some correction in the ea and added this indicator..... But fortunately... The ea is doing...
I'm looking for a programmer for an EA. Confidentiality agreement required. Straight forward concept. I've programmed for 25+ years - just not in MQL4 and, quite honestly, after work, I would rather trade. I'll provide as much detail as possible. If you're just learning MQL4, please dont email....
miso
Hello I'm trying to implement system from TradeStation to MetaTrader. I don't know how to implement 'BarsSinceEntry' function in mql4. Mirek (PL)
Hi, I have an indicator that I want to turn into a new custom indicator:  this new custom indicator should have a value of +1 when the value of the indicator in the current bar is higher than the value of the indicator in the previous bar, and -1 vice versa. Is there a short way to do this? Maybe...
  error=129 (2)
Dear all guru, My EA shows "last error=129" what does it mean? Thank you
Hi everybody! I'm experiencing the problem with testing of expert where is invoked ObjectGetValueByShift("res", 0) function, but unfortunately the value it returns is very shifted (like 50 barsback) on M1 period. I've tried to use the function in real mode and it works fine, but in the...
Hello: What means exactly this expression:? Ask + TakeProfit*Point, If Ask = 1.2850 and TakeProfit = 50, what is the calculation? 1.2850 + 50*(1.2850) = .... Thanks for your support. Sincerely Regards.
Hello: I am learning about MQL4. I would like to do this question: 1.- I can Exit, ( Buy Position ) with this statement? If Ask > Ask + TakeProfit*Point then OrderClose(OrderTicket(),OrderLots(),Bid,3,Red) 2.- I can Exit, (Sell Position) with this statement? If Bid < Bid + StopLoss*Point then...
code from standard ZigZag Hi this code is from standard "ZigZag.mq4" "if (counted_bars==0 && downloadhistory) // history was downloaded" counted_bars==0 : checking if the value is equal to zero........ its ok. downloadhistory : there is no condition check why ??? please clear this Thanks.
Hi, I test my EA on EUR/USD and I dont understand the why the error 130. many of stop loss modification are rejected ( for a long position, all my new stop loss are -20 pips of the current ask), here is the error message and my alert. PLEASE help me. 2009.03.27 07:31:56 2009.03.04 05:42  ST_002...
Is it possible to build and use a custom data set for testing purposes in mq4? I would like to feed some special price patterns to an EA I'm working on to verify the logic. If this is feasible, any suggestions about how to go about this would be welcome. William
Can anyone recommend a broker that uses MetaTrader, has small spreads, trust-worthy and can set up account with as little as $250? Have account already with Oanda, but Oanda does not work with MetaTrader.
  FXDD News (1)
Any idea why the live news on FXDD has quit working? The last news update was 3/24/09. Thanks
How can i make the data windows keep updating data feed without hovering mouse over current price? As by default the data information will only be display in data windows when we hovering the mouse cursor over the current price. If we remove the cursor to the empty space at the right side of the...
hello everybody how can I set MT4 to alert playing different sounds at follwing events: a position hit SL a position hit TP a position is about to hit TP(as TP box turns to green color) a position is about to hit SL(as SL box turns to red color) one more question: how can I exit part of a trade with...
Hi, i want to draw a vertical line in next days or week Bar. How could i do so for example today date is = 2009.03.26 and when i want to draw a vertical line i'm writing this: ObjectCreate("line1",OBJ_VLINE,0,Time[0],0); it works fine, BUT when i want to draw a vertical line at 2009.03.27 (tomorrow)...
i want to stop ea for 10 minutes everytime the ea enter a trade, is there any way to do that beside using sleep() ?
  sending mail (4)
Hi All, How can I send mail? I used from options side but couldnt... Is there anybody who can help me about this subject....
dear all, i have problem for make EA... please tell me... - how to make EA code for 1x open in 1 day (in 1 day just 1x open position) - how to make EA code for 1x open in 1 crosing signal (ex. if close > envelope is (buy) ater that signal is silent into sell signal (close <envelope)) for all master...
See 'Error code 1 but not all the time ?' for details. In basic trailing stops code this error occurrs when the new stoploss price is the same as the old one. Trying to filter this out by compairing the two prices does not always work (see the above forum link). This seems to be a bug in mql4....
After I downloaded data for the EUR/USD symbol using the History Center, I can only see 1 minute data from 03/25/2009 till 03/27/2009. There is no data available prior to 03/25/2009. Is this correct? How to get all data, i.e. starting from 2000? Not sure if I'm correctly verifying this: I expand...
The same to the topic. where can I change the shortcut key of the MT4 ? Thank you .
Does anyone have code or an idea how to evaluate the accountbalance(for example, at the start of the day or some hour) and set that value to be used later? For example: if(Hour()==0) get accountbalance and set that to a value like SB1(starting balance) then if equity = SB1 + arbitrary value(such as...
Hello everyone, I was wondering if it was possible to create an ea that would trade based off the signals provided by daily fx signals. Unfortunately you will need to have an fxcm account in order to look at there signals. I would like an ea to trade exactly when they post there signals, otherwise...