MQL4 and MetaTrader 4 - page 1474

[Deleted]
I want to use FXCM to trade (using a practice account only for now) and I want to setup an automated trading system using my own system. The basics of it are opening trades with different currency pairs and then closing at a set limit and at the same time as the first positions close then opening...
What is the variable for the chart name in MQL4 code? eg how do I print out a message that says my alert is for Chart EURGBP
Hi. I need support, and open this topic to who is interested, about this one: It exist still, or it does not exist and so how to make a: EA or Program (embedded in mq4, not exteral .exe) that  work on an expert advisor automatically? In other words a method for changing variables, external variables...
[Deleted]
I was using the strategy tester to optimize an ea. Suddenly it is skipping data and only using data for Mondays (if it uses anything at all).....I've reloaded the data, tried different dates to test,tried different ea's, reset my computer, tried different brokers platforms...still it skips data....
[Deleted]
Is it possible to open up to 15 lots ? (= 3 trades x 5 lots) ?  Could someone from MetaQuotes Software confirm this ? Regards "The minimum trade size is 0.1 lot, the maximum one is 5 lots with the stepof 0. 1 lot for each order. The maximum amount of simultaneously opened positions and pending...
I am working on an EA where I want it to close out 1/2 the existing order on reaching a specified TP, and then moving the stop loss to +10pips of the entry price, then sending me an alarm. How can I right click over an order and enable this in the code or would I need to type in the Order number and...
[Deleted]
Hello everybody, I have query for EA program related to Moving Average. WHEN MA20 ( MOVING AVERAGE WITH PEROID 20 AND PERIODICITY 5 MNTS) CROSS THE PIVOT LINE THIS WILL SELL AN ORDERS. I have idea of pivot line and sell order program.My problem is on the main section "CROSS".How will i find the...
[Deleted]
Hello, To initiate this fascinating world of forex! I need a help! I want an EA with Stochastic that works like this: Buy whenStoch > 30 Sell when Stoch <80 (is an instance) I hope someone can help me! Now thank Paulo (I am Brazilian, not ever quit!)
  Using OBV  (1)
Hello, is there any practical method to use the parameter(or function) "OBV"( On balance volume) in the code(in custom indicators etc.) instead of "close"? i.e. replacing the symbol "close" by a symbol(or formula)that represents "OBV" If anybody has an idea, thanks in advance.
can some help me where to place a tralling stop i have use extern double TakeProfit=250; extern double TrailingStop=15; i have placed it here but it is not working if(OrderType()==OP_SELL) { // if(Open[1]<Ema && Close[1]>Ema) if (SEMA1>LEMA1 && SEMA2<LEMA2) OrderClose(OrderTicket(),OrderLots(),Ask...
  More strategies? No problem!  (114   1 2 3 4 5 ... 11 12)
Completely in MQL. There is no code generation, but it is possible to use source code with a given strategy. The conditions are added. It's true, you will have to dig in the code. How to add: Looking for line "// here" on top of it you have to add or change... What to change -- hopefully you will
[Deleted]
Is MT4 used by big instituitons like Hedge Funds?
[Deleted]
Was thread Conditional Statement failure... [At wits end] if ( 1.4225 > 1.4225) is NOT TRUE!!!!!! At the suggestion of AIS, I have changed all my double comparisons to format    if ( double1 - double2 <relation> 0 ) // Fails if double1 == double2 My EA obtains parameters from a custom...
[Deleted]
I am just starting in MLQ4 I want to know if someone can tell me how to test to see if the price bar has crossed the upper or lower Bollinger bands, and how to test to see if the close is above or below the bands. Thank You wmwhit
[Deleted]
Hello all, I am using the equation of Pivot for any startup day is.. double Pivot= (High[0] + Low[0] + Close[0]) / 3; double R1 = (2 * Pivot) - Low[0]; double R2 = Pivot + High[0] - Low[0]; double R3 = High[0] + 2 * (Pivot - Low[0]); double S1= (2 * Pivot) - High[0]; double S2 = Pivot - High[0] +...
when i select a position with the left mouse in the terminal, the correspondent bar in the chart turns bright (and viceversa) dear metatrader gurus, when will this dream become real?
I have only one chart open, the AUDUSD window. This is where the EA is running. When a certain condition is met, the EA will attempt to open a position for a different pair, for example the EURUSD. The result is always a 129 error. Here is my code-- iTicket=OrderSend("EURUSD",OP_BUY,0.1,Ask,3,0,0...
[Deleted]
I'm trying to find out how you would show open orders on a chart. To show the point where and when they were opened. Can anyone point me in the right direction? Tried several seaches, came up with nothing. Thanks!
[Deleted]
HELLO TRADERS, AM NEW TO THIS WEBSITE AND DECIDE TO POST MY PERSONAL SYSTEM. IT HAS BEEN MAKING ME STEADY PROFIT BUT SOMETIMES WHEN AM LATE IN THE MARKET I DON'T MAKE ANY THING AND THATS WHY AM HERE SO THAT I CAN GET HELP URGENTLY. THE SYSTEM: TIME FRAME:DAILY NO INDICATORS CURRENCY: ALL STRATEGY:...
[Deleted]
I'm trying to setup a function that will remove all 0's from a string. This is what I have so far: int length=StringLen(text); int index=StringFind(text,"0",0); for(int x=index; x <= length; x++) { string cut=StringSetChar(difference,x,32); } string...
Didn't hear a thing about it in some time...
Hi, I just need a simple MACD Cross Alert from Mobile MT4 on a mobile device like a PocketPC. Is this impossible? Thanks, JForex.
[Deleted]
I have written EA code to cycle through all pending orders and compare the price for each pending order to a "new" order price to avoid placing duplicate orders, but it does not always detect all of the duplicate prices. It works sometimes on some prices, on some buy stop or sell stop types, and on...
[Deleted]
  Read HTTP Files  (3)
I've got a locally hosted site that I would like to deliver signals to via http text. I know I can use WinAPI to read files locally but is there a way to read text via http,ftp,etc?
[Deleted]
Hello Blessed TRADERS, PLEASE CAN SOME ONE HELP ME TO BUILD A SIMPLE EA THAT DOES THE FOLLOWING: WHEN A NEW CANDLE OPENS FOR THE DAY IMMEDIATELY PLACE TWO PENDING ORDERS BY ADDING 30 PIPS TO THE OPEN FOR BUY SUBTRACTING 30 PIPS FROM THE OPEN FOR SELL TAKE PROFIT 10 PIPS STOPLOSS 50 TRAILING STOP 5...
I have created an indicator, but I want to uncheck the indicators Fixed Maximum property. Currently it is enabled and I would like to have it disabled. Any ideas?
[Deleted]
Hi, I have an EA which uses the iClose function with a shift value of 1 to get the close price of the last candle. I have noticed that occassionally, when using the H1 timeframe, the EA has opened trades one hour late!! It seems that the close price information of the candle that has just closed...
Hi, I have demo accounts of "alpari" and "FOREX", I use MT4. When I try to download the data via history center, it tell me data from metaquotes differ from the data stored on the trade server. Now, could anyone tell me how to download the history data on "alpari" and "FOREX" server? Thank you...
Hi BarrowBoy, Thank you for your information. Could you please kindly provide the complete one? Your help will much appreciate Shams void WriteIniFile(string strFile) { int handle0 = FileOpen(strFile, FILE_CSV|FILE_WRITE, ";"); if (handle0 > 0) { FileWrite(handle0, "EURUSD", "0...
Hello, Does anyone has the MetaTrader 4 code for Hull Moving Average? And if possible also de RSI, Bollinger Bands and MCAD based on Moving Average ... Does anyone ever tried this? Thanks, Miguel