MQL4 and MetaTrader 4 - page 1156

Hi everybody i am new in codding but yesterday i convert two indicators in expert advisors .Unfortunately they don't work.I really need help
Hi, I am a novice as you can see. If I want the EA to trade only on daily chart should I use the constant as below if (Period() == PERIOD_D1) or should use the value as below if (Period() == 1440) Both seem to do the trick but don't know which is the proper way to do it. Thanks
[Deleted]
Please I want people using this forum to help me correct error that could not make this attached ea backtest or demo trade. There was no error during compilation yet doest work. Please help
[Deleted]
Hi! I don't know why OrderClose() is not working. Could You help me please. extern double TakeProfit = 500; extern double Lots = 0.1; extern double TrailingStop = 100; extern double StopLoss = 200; double sar,imacurrent; int cnt, ticket, total;...
  mt4 platform  (1)
Hello. Can you please be able to help me to set up mt4 platform to Oanda using API libraris from Oanda?
[Deleted]
  Histogram base  (1)
I am trying to write the TRSI indicator showing the SMA line as a histogram, and think I am pretty much done. The only problem is that the Histogram starts at 0. Can anybody help me, or tell me how to use the 50 line as a histogram base. I have searched for how to do it in the forum, but have not
[Deleted]
  Chart froze  (6)
Hello, I had a problem with my terminal today when i checked it, the EURCHF chart completely froze up until i have restarted the terminal (closing and re-opening the chart window also helped once). The last candle was at 19:01 (yesterday), and i restarted the terminal at around noon (today). It
Hi, I'd like to copy my Fibonacci parameters set up from one MT4 to another. Can someone tell me please which file from which folder I have to copy and paste? Thanks in advance
[Deleted]
Hello everyone, First post from me so go easy. I'm no programmer but over the last few days thought i'd give it a go. I have made an alert indicator that I want to email me specific, more complex email. After some reading I found and used the SendMail(Subject,Body) function well. It worked...
Hello, I am mew in MT4 .... what is the best way to scan (with EA) many pairs (ex: EURUSD, EURGBP, EURJPY, USDJPY) on ONE computer?
[Deleted]
Plese review the attached picture. Can someone explain the code to draw those rectangles in the right lower half that you see in the picture? Thanks ForexWatchman
Hello everybody, The crosshair tool calculates thedifference between two prices and the number of bars. Is there a possibility to change thisin order to calculate the number of calendar days on a daily chartinstead of the number of bars? If this is not possible, is there a wayto write a tool like...
Hello, I'm experiencing connection errors in the terminal. The errors are shown below: - TradeContext: ping error - Cannot login [No connection] - DataCenter connecting failed [6] The account is demo with broker Alpari UK. These errors seem to be occurring fairly regularly. Can someone please tell...
[Deleted]
  parabolic EA!!!!  (3)
Ok so i admit im a little new to the trading world and already im getting sick of watching my screen. So i think its time for an EA. After looking at what i think would work, what i want is pretty much is the parabolic indicator to the "t". The only difference i want in it is that when it makes a
  Zig Zag  (1)
Hello, I Don’t understand the 3 parameters for the Custom Indicator:ZigZag. 1/ Extdepth 2/ Extdeviation 3/Extbackstep. Could someone explains what means those 3 parameters. For others softwares, I use to have 3 parameters (Price field, Reversal Amount and Percent or Point). Best regards.
[Deleted]
Hi anyone can help me? I already reference other programs how to do. They use timeday() function to check if close[i] and close[i+1] are different days. However, because the time is data server's time. Over 00:00am may not be the next day! Anybody can help me? How can MT4 can seperate the dates...
[Deleted]
I downloaded the platform to my computer (Vista) and installed a custom indicator to my experts folder in drive C, I could access the indicator on my charts and all was well. But later I downloaded another platform, thinking I could keep 2 mt4 platforms on my computer. The 1st platform was...
[Deleted]
I'm new to this whole thing and I don't know about your first EA but mine has been exhausting so far but I keep learning new stuff so it's kind of fun. Here is the deal as simply as I can put: If the sell condition is met I'd like to sell and then close all buy orders and vice versa. I keep getting...
Hi, After nearly two years writing and testing EA's I'm experiencing a problem running optimization. I wonder if somebody has already had such a problem and how can be solved. I run optimization for any EA and after looking at the results I choose, for instance, the line with the best net profit....
Hi, I am writing EA to trigger alert on price crossing the line, but it is not working, could you help ? extern string MLine_Name = "MLine"; extern color MLine_Color = Goldenrod; extern int MLine_Style = 1; extern int MLine_Width = 2; extern int...
PLEASE I HAVE BEEN WORKING VERY HARD TO GET THIS SOFTWARE WORKING ON/ PLACING TRADES ON ALL PARABOLIC DOTS OF ALL TIME FRAMES, CAN YOU PLEASE HELP OUT WITH THE ADJUSTMENT OF THE SOFTWARE. GAB
[Deleted]
Hi, I have the error message when I backtest my code. I wanted to write a code which move the SL to breakeven the pair moves 5.1 pips in the good direction. But so far it does not work, actually sometimes the modifcation works (really few times) and usually I receive the error 0 and 4051. Does...
Hello, currently i am working on a multiTimeframe indicator for m5 timeframe. for this i need the position for the candles in upper timeframes. my idea was to draw the indicator from now to past. so that i can compare times in a nice way. basically:    for(int...
I have had weird results poping up in the profit factor column of the bac tester results. I read that there should be at least 30 trades before results can be calculated correctly but shouldn't the system just leave the table empty rather than put some values in the boxes at random? Also it seems to...
Dear Traders and Expert Advisors Developers, Organization and conduction of the Automated Trading Championship isa very complicated project. For the maintenance of this competition ourcompany needs to involve tens of specialists from differentdepartments. Among persons involved in the conduction of...
meta trader 4 mobile ver is not connected with GPRS. My GPRS is working .If you have any setting please tell me. My mobile HTC P4600 window base 6.1
[Deleted]
Hello I urgently need India ( prefer Pune/ Mumbai) MQL programmer Please contact via email mahesh_joglekar@yahoo.com Thanks MJ March 23rd
I wrote this simple code in order to send a SELL order for both EURUSD and USDCHF . I let the EA running on EURUSD chart only ;-) If I don't use the "StopLevel" and TakeProfit on the second order, then it work, but when I use them then it does'nt work Can somebody help me ? Thanks Fabio #property...
  Friday closure  (8)
I have seen other entries about this, but none seemed to address a solution to what I am seeing. I want to stop opening new trades on Thursday night at 2300 hours. Then on Friday prior to market close, say by an hour, I want to close all open trades. Here is my code snippet:    if ()   {      Print...
I'm making an EA that makes pending orders for breakout strategies. However during backtesting orders couldn't be sent. It kept displaying the following 3 errors: "OrderSend error 130" "OrderSend error 4107" but I'd already allowed dll imports and "invalid takeprofit for OrderSend Function" I've...