MQL4 and MetaTrader 4 - page 1326

[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...
I find myself in the need of understanding PSARs better. In a particular strategy I am using I have tried to code opening of trades based on use of PSARs. In one version, if I want to place a buy, I check the PSAR to see if it is above or below the current price. based on anothers suggestion, I...
[Deleted]
Hello everybody, I have a very important question to ask, I have searched throughout the forum for my answer but did not come accross the answer, if I missed it I am sorry to ask a question twice but I reallly need help. The strategy I use is to go long when the MACD crosses below 0 and points up...
[Deleted]
hello there i cant get my EA to email (alert) me the profit / loss amount for when a deal has closed. the following is happening: i get 100s of mail alerts (every tick after the deal has closed). what is the logic to check (only once) the profit / loss amount? thanks in advance. jm78
[Deleted]
Could anyone give me a hint? I'm trying to code a horizontal line which is intended to start at the last high/low. If there's a new high/low the line should be deleted and be drawn right from the new high/low. Sadly, it doesn't work. I don't understand why it always refers to the first high/low...
...for a very long time, more than three years, and not on a micro, but at least on a mini (> $1K), then these options are possible: 1. you are greedy beyond all limits: a million quid is obviously not enough for you, and you want to have many of them. Or you have big ambitions and want to become an
[Deleted]
I have written a simple DLL that processes an array and returned it to MT4 float* getArray(float* input) { // // // // Process // // return value; } How do I import the DLL and make use of it? Am I allowed to use pointers in MQL4? #import "test.dll" float*...
[Deleted]
  Order Modify  (1)
Hi... Can anybody help me how to use "OrderModify" Function ? I need to change my stop loss everytime I hit certain value (trailing stop loss) Thanks
[Deleted]
Installed MT4 on Windows 7 and found that logs are not created in /experts/logs. Either they are not being created or Windows 7 is not allowing me to see them. Has anyone experienced this or know of a fix?
Hi! I would like to know if it is possible to open more than 1 MT4 application in the same Windows session. It would be useful to work in more than an account simultaneously but I didn't find any way to do it. Thanks, Gustavo
[Deleted]
I am using a charting software similar to MetaStocks for creating buy and sell signals. The software can exchange Date via DDE. So I am searching a way to translate the signal of the software, which would be for example "EURUSD:Enter LONG", into an order for MT4. Maybe through DDE or a DLL. In the...
[Deleted]
Hi, I am new to trading and would appreciate some help, is it possible to have somekind of indicator in the form of an arrow on the screen, to show if the close of the day is smaller or bigger then the opening, and that for the last five days? I know it migth be easy but for me impossible to...
[Deleted]
I am trying to develop the Chande Momentum Indicator but something mysterious is happening. If you can take a look in my code you will find at the last step of the calculation the following code: cmo4 = scmo1[i]+cmo3; If you comment this line you can see in the log file, in CSV format, that the...
[Deleted]
Hello fellow traders, I have some problems using the metaquotes history for 90% modelling quality. I have downloaded the Eur/usd data from the history center so I now have the files in the downloads folder in metatrader, it looks like this http://screencast.com/t/NGZkYzRl but when I do the backtest...
[Deleted]
Hi there i looking for EA that can manage manual entry to set automatically20pip.Just for Take Profit,no need stoploss and trailling..do anyonehave one that really work very well?
[Deleted]
I have been looking for the following three indicators for almost a week now with no luck. They come with FX Accucharts but were no where to be found for MetaTrader. Few people have suggested indicators which were similar in name, but not in the shape they provided when compared with Accucharts !...
Have written first EA using iStocastic( etc, ect,andsoon). Get a value on one platform and not on another. Is there a function call not mentioned in the MACD sample, that initialises bar values for these indicators?
[Deleted]
hi guys.......i have a problem. i need to avoid to open an order after i have closed another order in the same bar so...i have thought to introduce a delay. i have tried with " sleep " but it doesn t go. i tried with " timecurrent()-orderopentime()> x "............but nothing....