Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1050

To post a new topic, please log in or register
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...
This is a nice simple little ongoing job for someone. I need someone who has experience with MQL4, expert advisors and general knowledge of automated trading. I have a forum that has a lot of traders who would like to learn more about metatrader and expert advisors. I need someone who can spend an...
Hi I just wonder how can I add a signal line to MACD? Normally, MACD consists of two lines, right? But mine has only 1 line. -_-''
hi all, need some help here ... am trying to make a script that can check the moving average value. so far i have that done but its just that the value does not refresh. so i was trying to loop the thing so that it will be refresh. i tried using a while loop but it seems that the refreshing is too...
I have 2 EAs - one to do buys, one to do sells for this strategy I'm playing with. In the EA log file I'm getting the wierdest logs that seem to show that the platform is confusing which EA initiated the trade. Log excerpts are below. These are the lines automatically generated by the platform -...
Hello Guys, Think this froum can be very helpful so I ask this question: 1) Im trying to pull a value from an indicator into an EA. The indicator is a custom indicator which I believe requires me to use icustom. The code from the indicator that has the value I want is this: if...
Can any one tell me how to select the 2 open trades with the highest profits from a number of open trades... e.g. : if I have 6 open trades and want to close only to the 2 with the highest profits...how do I do this? I know how to use a for loop to cycle through all the open trades and then use...
Does anybody know how to do this? My EA will always be in a hedge and I want to close the biggest winning trade at the same time as the losing trade hits stop loss... e.g. if i have a buy trade at -30 and its SL is -40 and I have a Sell trade at +20 and another sell trade at +10 ...then I want to...