MQL4 and MetaTrader 4 - page 1453

hello to everyone giuseppe I just registered on this forum.  I would like someone to help me solve my problem  I would say to my EA to close the position at the opening of the next bar only if the position is in profit. I do not know how to do  can someone help me?
I have read articles regarding a null bar and also seen metion of a zero bar, what are they? Are they one in the same, do they arise from using historical data in an indicator into an EA? There is no mention of it in the documentation and seems to pass as common knowledge, any help would be
  % Wins  (4)
Is there a way to find your percent wins in an optimization runs? ---Tom
[Deleted]
Please I have this program that runs and draws the 3 lines well. But the other program below does not draw the 2 lines. The idea was to use the array as a variable inside start function. I have placed also as a static array and the same, does not draw the line. The idea is to use arrays declared...
[Deleted]
My trades comments are quite often completed by the server with "Started/gap", "Closed/gap", "tp/gap" etc annotations It means that the orders are not realized according to the initial specifications of zero slippage tolerence that I always apply to my ordersend() functions. In practice its a pip or...
Hello I am wondering if it is possible to preform logic tests on currency pairs other than the one shown in the chart? For instance if you had an EA running on the EUR/USD, could you check if the EURGBP was above the 20MA, or possibly a custom indicator. I have seen the MarketInfo()  command, but I...
[Deleted]
New User - Chart times top as of 9/08/09 Thanks in advance
[Deleted]
Hello, I have been trying to program my own EA. Since I have been programming only for a month or so, I cant figure out, what Im doing wrong. Its a very simple EA, which should detect a candlestick pattern "hammer" and put a pending order with 1 day expiration. It already works as an indicator and...
[Deleted]
  Nuisance Alerts  (2)
I get an alert everytime the price changes even one pip. How can I silence this? This is my first time in the forum and I may have missed something.Thanks. vk747
[Deleted]
Just curious if there are any plans for MQ4 to support classes/struct/OOP?
Recently made my computer much safer to reject viruses and trojans --->I made limited account and add that special account special restriction policy rules: To only run executable in ONLY one directory(It's directory where I have all priveleges). In that directory I have MT4 installed for doing...
[Deleted]
Hi I intend to develop on EA for multiple pairs and attach toone pair. I can refer the candles that native pair. Is there a way that I canrefer to the candles of other pairs than attached pair? Please advise. Thanks
[Deleted]
ciao guys first at all thanks in advance for help. i am trying to prepare my personal EA but i have a doubt : with command ordertotal() it's possible to specify the number of pending orders but ..... total orders.... . In this way if I use my EA on some differents cross i cant specify to...
Not being a programmer...i've tried to figure out how to make the EA only do one trade per signal....but not having any progress. I want it to close a trade by either SL, TP, or TS. Then wait for the reverse signal. But it would close the trade and put the same side trade in if the singal was still...
hi please help me how i can specify current timeframe with any method (function, .... ) that i active my EA ? same as Symbol() function that specify current Symbol that active my EA. thanks
Hello Im trying to use the 'Slope Direction Line' indicator in an EA and Im not sure how to tell when the color of the line has changed. Im using the following code to access the indicator -  double SDL=iCustom(Symbol(),0,"Slope Direction Line",80,3,0); but im not sure of the logic required to...
[Deleted]
Hi Guys, I have this code that gives a signal the first time a bar crosses a 20 period MA, unfortunately it does it before it crosses, ie, gives a sell signal the bar before it closes below the MA, which is obviously a bar too early. Does anyone know how to fix this problem, the code is attached.
[Deleted]
The English notated version of tradingexpert-1.mq4 does not compile - is this an expert waste of time or what? https://book.mql4.com/samples/expert
[Deleted]
We need good EA or someone who can make this us. We hawe managed accounts, where we use Ea´s Send details me. We can pay good price or good % profits. pnylander@hotmail.com
[Deleted]
I have an EA I had designed by someone awhile ago who I can no longer get ahold of for some reason. Anyways, I need someone to add a few small features to it. Easy 4 and 5 digit broker support. (automatic would be nice but having the user change a setting is acceptable)Mini and micro account support...
[Deleted]
I noticed that the the history database has 1 minute data from 1999 for pairs such as aud/usd, eur/usd etc. When I look at the timeframes such as 15 minutes the data starts from somewhere in 1999. But for 5 minute it starts somewhere in 2005 and for 1 minute from somwehere in 2008. The metatrader...
I have written many MQL4 EAs & Indicators for myself and for my clients. I ama professional EA/indicator coder. If you would like quality written code for your trading system, send me an e-mail:eacoder@hotmail.com
[Deleted]
Hi guys, I have coded a simple idea i had for the Henken Ashi Indy...but my EA just refuses to take sell trades. can anyone see what I have done wrong? its really not complicated code as I am still learning ...so hopefully you will see what my fault is easily enough. I have attached the...
[Deleted]
Hi, I am new to automated trading and I have a question about backtesting. I have FXT files with real tick data but I don't know how to use them : MT4 doesn't have the "recalculate" checkbox, so the FXT files are erased when I start a backtest. I have tried to use older versions of MT4 with the...
[Deleted]
HELLO, PLEASE HELP ME. I NEED TO DOWNLOAD SOME INDICATORS. BUT I DONT KNOW WHERE AND HOW TO DO SO ON THIS SITE. I AM A NEW MEMBER. KINDLY HELP ME OUT. THANK YOU. JYDE
I want to export live data on to my website how do i do that
[Deleted]
I am trying to list all Global Variables currently in an EA that are not being used, so they can be deleted using the GlobalVariableDel function. I am aware of the Global Variables screen available from the Tools menu F3, but I need to do this from within my program in realtime. How can I do this?...
[Deleted]
WindowsPriceMax(), is not updated with the correct information provided when the user click's the M1,M5,M15,30 or any Period Toolbox button. to get the correct information is need to wait until next tick. but, all other data like Period(), returns correct. This is MetaTraderBug? i have writen an...
Please I need someone to put me through on how to make up to 100 to 200pips, I just started and I finding it very difficult and I aways lose. Please I need a good advicer and also good robots to assist me with my trades as I am a student. I need help as urgent as possible so that I can pay my...
[Deleted]
Hello All: I have a successful EA running on an FXDD MT4 (which is a 4 decimal broker), and have recently imported the EA into the PFG MT4 (a 5 decimal broker), and for the life of me can't get a backtest out of the platform. One thing I notice is that in the FXDD platform you can import the data...