MQL4 and MetaTrader 4 - page 613

To post a new topic, please log in or register
Hello, I am looking for a function or EA that closes all open positions when the equity reaches a certain amount. Basically a SL or TP for the entire accont. I want to use it when I open two positions that hedges themselfs. e.g. Balance 1000$ I open two positions manual. Long Dow Jones, short S&P500...
Hello everybody. I wanted to ask what I can do if I need to backtest an indicator based on the recent strength of other currencies. Here at this link there are few indicators I wanted to use in backtest but seems that is not possible. https://www.mql5.com/en/articles/1464 Can somebody tell me what...
how is it possible that an expert advisor be coded to do the following: buy when the price trend is going up and sell when its going down. (this is only a part of my ea plan)
Hello To begin with I only trade the USD\CAD so that way you knowthat I don’t have a bunch of different pairs going to help make this simple. I already have an existing EA that I use from time to timebut the problem is that it opens duplicate STOP orders when it is only supposeto fill in one STOP...
hallo, I'am new here and in mql4 ;( , but I want to learn and i hope, somebode could help me. ... I tried the hole night , but I didn't find a solution!!! How can I get my iCostum() get running. I want to integrat the DSS Indikator into my EA with iCostum().   "DSS.mq4" is in -->  C...
Hi everybody   i've written this cycle code but i don't know why an error always happens:  the code:   for(index=OrdersTotal();index>=0;index--){              if (OrderSelect(index,SELECT_BY_POS)==true){                   if (OrderType()==OP_BUY && MarketInfo(Symbol(),MODE_POINT)>upBB){...
forexparvenu
i have some curious, how to coding 1 ea with different strategy ? how to code these trading condition ? using {&&} {||} and {else} ?? give me some guideline ... thanks to everyone.
Hi all,  I'm using the below code to prevent any new Order from being sent if there is already an Order sent to server within the same candle. This code works fine......   <SNIP> similarly i substituted the lastorderbartime to lastclosebartime hoping that i could use the same code to prevent a new...
j ai téléchargé un  ea basé sur le croisement de deux moyennes mobiles et je souhaite y ajouter un multiplicateur de volume ; j ai essayé mais pas de resultat 
  OrderModify() question (53   1 2 3 4 5 6)
Hello MQL4 forum, {OrderModify(ticket,0,Ask-500*Point,0,0,Blue);}}}} The code above works, but moves the sl up or down as the ask price moves up or down. I tried this, as a solution... {OrderModify(ticket,0,OrderOpenPrice()-500*Point,0,0,Blue);}}}} (the order being selected is a buy order) I checked...
 Below, after the start function , in the for cycle, i am triying to calculate increase/decrease ratio of bars. the bars from 1 to 48 . you will see red sections for calculations. result is always zero. why? i have tried braces.    <SNIP>
Hi, I'm trying to get an MQL4 program to talk to a C++ program via memory space instead of file handling.  I have run the following example successfully: http://msdn.microsoft.com/en-us/library/windows/desktop/aa366551(v=vs.85).aspx Now i'm trying to port the "second process" to MQL4. I'm trying to...
Does someone know a good way to convert price<>coordinate on chart somehow please? I have found very good code here capturing coordinates of mouse but nothing yet to convert x,y mouse to price. Any help is appreciated
Hi guys, i'm begining to make my owner expert advisor but i'm blocked in some instruction my question is what is the instruction for re-opening the last trade in the history help me plz
Hi I need help to add options to this EA that makes it open position on each signal. I dont want to open only one buy and only one short posiotion. How to do this ?   //+------------------------------------------------------------------+//| This MQL is generated by Expert Advisor...
//+------------------------------------------------------------------+//| This MQL is generated by Expert Advisor Builder                  |//|                http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ |//|                                                                  |//|  In no event...
Is there a guide/article for converting data and functionality of hist csv txt fxt files?
is it possible to receive signals from mysql database using php auth file? I'm looking for information about storing trades into mysql and provide as trading signals ...
Hi, does anybody knows an sample EA or a dll to integrate for sending EMails without the SendMail-Function from the metatrader? Lot's of thanks, sunshineh
Hi all,  I've been trying to write 2 separate codes that simply do the following:  The first code: * checks particularly whether a new PERIOD_H4 bar is formed with an alert, with the option to change it to any other timeframes if needed.    The second code: 1- places a pending sell order if:...
Hi everyone! I am using MT4 demo with FXCM and would like to know where on the MT4 platform I can find the rollover percentages. Also if you have some opinions about working with rollover to profit I'd love to hear about it. Thanks everyone.......... Seth.
forexparvenu
as mentioned above...
hi I am having some issues with my VPS when it reboots for whatever reason, like possible maintenance or an outage. When I log back into my VPS after one of these incidents, I find all 4 of my MT4s at their respective login screens, which means none of my EAs are running. I have tried it various way...
Hi all! Please help me to add further functionality to the command by the predefined signal while the old order still exists. means I have to buy or sell signal to buy or sell signal, now I want it to continue to sell the same volume as the previous order buy sell signal appears or buy if the...
Few lots to buy the index from which I would like to know the loss index is - 10% of the principal.    How to create such a secondary indicator?
Good morning, I wanted to ask a question does anyone know how to get historical orders Metatrader 4 in an Excel file type or. Txt to discuss the results?. thanks
I have the forex-metal MT4 and every time I try to open it, I get the error: terminal.exe has encountered a problem & needs to close." It's build 445. I'm running it on Windows XP Professional service pack 3. I've also tried opening the FXDD MT4 and got the same problem. Does anybody know how to fix...
Hello,  I'm using a demo account downloaded from metaquotes (metatrader 4) and I absolutely cannot trade some of the currencies EG the EUR/CHF. Weather I click Sell or Buy it's the same. It's giving me the "Off Quotes" message every time. Anybody has an idea what is going on? 
  Kalman filter (13   1 2)
Hello; I have completed a preliminary version of a Kalman filter and it is available fordownloading from http://www.gammarat.com/Forex/BlackBoxes/Kalman/ . You will need the three files: 1) GRFKalmanFilter.mq4 - put this in the indicators directory 2) GRFMatrixMath.mq4 - put this in the libraries...
Yes, I know this topic has probably been covered many times, so I'm asking for patience.  I've been watching the championship for a couple of months now, and see a lot of articles and talk regarding the capability of MT5 to run a multi-currency EA.  So my questions are all based around that one...