MQL4 and MetaTrader 4 - page 1515

I'm new to MQL4.  Trying to use iMA in an EA to identify HA close cross a MA on bar 1.  It compiles with no errors and no exceptions.  Here's the logic and code lines: (HAClose1>MAH1) HAClose1=(Open[1]+High[1]+Low[1]+Close[1])/4; MAH1 = iMA(NULL,0,SMMAperiod,1,MODE_SMMA,PRICE_HIGH,1);  //I tried...
Hi, I've experienced a really strange thing with some self-written indicators. I ran MT Client for 1 or 2 days live and found that my indicators show wrong values. So I double-clicked the indicator and the settings-menu popped up. I just checked the variables but DID NOT change any values there,...
[Deleted]
Hi, This is my first EA, and i would like to put a limit of number of continueos OP for a cycle of trend, i have crack my head and search for the code for almost two days returned with no result. eg, when EMA 20 cross over EMA 40, this EA will OP with TP 15pips continueously without stop until the...
[Deleted]
I tried two aproaches. a: Passing a paramter by reference via an include files works, thats obvious since its the same ex4 file after compilation. b: Passing a parameter by reference with an ex4 library file does not work. Is this intended? Why? Thanks for your help
[Deleted]
Hello, I have a system that I've been trading, and would like to write 2 indicators that will help me more easily identify when my conditions exist. Though I might find and pay someone to write the code for me, I'd like to write them myself, with the help of a tutor. Can anyone recommend a...
[Deleted]
Hi, I've been reading the MQL4 book and searching the forum but unfortunately, I haven't found what I'm looking for. I am pretty new to programming so I appreciate any help you can offer. :) I'm trying to write an EA that will have two parameters before trading. The first parameter is to define a
[Deleted]
does anyone know how to clear/delete the indicator name that display on the chart window and sub-window?
on version 220 I am getting a very anoying popup on start up of platform any help _____________________________________ Themida An internal exception occurred (Address 0x830aa0) Please, contact support@oreants.com. Thank you ________________________________________
[Deleted]
Hello I have developed an external c# application that saves some commands in a text file and then an EA reads these commands. There were no problem when I checked it with meta traders of ODL and Windsor. then I distributed it in between a group of users and users of Fibo were claiming that...
Hi everybody, I am new to programming with the mt and have an question: I use a custom indicator which shows up and down arrows each time when a signal is generated. How does it work, that each time an arrow comes up an email is sent to my mobile phone. Cant realy see what to give in, how and where...
[Deleted]
i'm the newcomer in mql4 code.. coz i dont to understand this Mql4 code... What is the most easy to understand the Mql4 code.. i want to made the automatic trade by combining several indicators, and candle to make the entry point by using stop sell and stop buy.. please help me to resolve this......
[Deleted]
i use stochastic cross overs with a custom finger pointing short and long positions, i want to add money management of 20 points whenever the finger points and it should automatically open the position for me and close based on the take profit or stop loss. i am learning mql4 language presently but...
  i need help  (4)
pls i need som1 to assist me, with my auto pilot that i just aquired. i nid to know how best to use it.
I know we can start a tester when terminal starts when we indicate this in an .ini file. Is it possible to start tester using a command so that we can start and stop tester as needed. I do NOTwant to open new terminal for that purpose. Can any one help with that? Thanks
[Deleted]
Hello to everyone, I would like to create a simple EA that does the following (unfortunately having no programming experience): - inserts 2 limit orders with SL & TP @ a specific time of the day, taking as the price for the 2 limit orders, the opening price of the candle @ the specified time plus a...
[Deleted]
you know a super simple EA that work well in backtest and in live mode....? I'm not a programmer and I'm looking for a EA.... I'm tried the EA on this site and i'm disapointed.... all the result are not the same than showned in the presentation.... My parameter is identical but the results is very...
[Deleted]
After changing the code in a function, and then compiling, I get a Function Definition Unexpexted Error for another function that I have not changed. The unchanged function is listed after the function that I changed. What would cause this compilation error?
[Deleted]
Hello, i just got new computer equipped with Ms. Win Vista. As soon as i code mql in metaeditor.. i found weird thing... it's the files that i code can be overwritten (access denied).. i try to "save as" with the same name and it successful, BUT... when i attached the ex4 to the chart.. it always...
-
I need some to revise my ea, I can't set this ea with this condition : I want this ea only trade Max 2x per day
Hi, After my first order is opened, I'd like to add orders based on some ATR multiple. For instance, after the first buy order, I'd like to buy again every time the price increases by 1/2 ATR, up to say ten orders. Any ideas on how to approach this. Thanks, Kevin
[Deleted]
Good afternoon! Probably, not in earnest to ask in my age, 35 years. But. Never thought that this devil world crisis will touch and me personally. Shortened, remained out of employment. Two credits, wife in a maternity leave, on that to live? Heavily! We live in a depth, in Russia, in the Seashore...
Hi gays. When I tested my EA,there is a error like this: "incorrect start position 0 for ArrayMaximum( )"; Can anybody tell me the reason. Thank you! A part of the code: int start() { int ticket,total=0,cnt; int SearchRangeMAofRSI=7; int SearchRangeRSI=13; double MAofRSI_0,MAofRSI_1; double...
Hello Coders please somebody can help me. I try to create an EA with the Options to Close all open trades at specified time and / or day. The function for open trades at specifed time and / or day seems it's working. But the closing function by time, i don't found the solutions. I have try to code...
[Deleted]
I NEED HELP WITH USING TESTER WITH EA EXPERT. I SEND ME AN EMAIL AND WE CAN WORK OUT DETAILS. I CAN CALL YOU SO WE CAN WORK BETTER. WILLING TO PAY REASONABLE AMOUNT. N7QWQ@HOTMAIL.COM
I have a MaxTrades feature that I would like to edit. Email me a sweetislands@yahoo.com This is the EA program: 'Multi Lot Scalper'
[Deleted]
Is it necessary to use OrderSelect before using OrderClose? My orders are not closing. Are there other prerequisite conditions I should check for before closing an order?
[Deleted]
I loaded a new Expert Advisor and everything went fine. However, when I activateit I receive the following message: FellowTrader's RangeTrader E.A. only runs on a Live account. This is a live account. What am I doing wrong?
[Deleted]
Hello, Been having an issue with my trades that started yesterday. After placing a trade, it will exit by itself without hitting my stop loss or take profit settings, it just bounces out. Luckly I'm still using a demo account becuase the losses are starting to add up. Has anyone experinced this...
Hi All, Do you know of any indicators which autoplot horizontal lines inmetatrader. I have a system i would like to test. I need 2 lines drawnfrom the data which is calculated inside my spreadsheet. The lines would be upper resistance and lower support. I have checked out the system manually by...
[Deleted]
Below is a piece of my EA which trades a few pairs. I need some help getting the following put in here as a condition to trade. I have also added the custom indicator at the bottom here-it is simply support and resistance which can be found here in the code base articles. I want the expert to buy...