MQL4 and MetaTrader 4 - page 1073

I am familiar with the typical example in MetaTrader which allows only one trade at time: total=OrdersTotal();   if(total<1)      {      .....     } But how can this be altered so that it can open one trade max per pair?
[Deleted]
i need to find the top (or bottom) of the price from last night 02:00 but i have condition so if the first doesnot match i want to find the next top price later in the day . the ibarshift( ) can help ? how ?
[Deleted]
I recently downloaded a custom indicator from this site and once I applied it to my charts, I noticed that if I change the time frame or even close and reopen my platform, all the previously drawn bars in the indicator disappear! Is there something missing from the code that would cause this? I need...
[Deleted]
i have a C++ dll that calls a C# COM dll my c++ dll is of course called by MT4, and is just a wrapper for my C# stuff. t my c++ function, analyze(double *opens), needs to convert the double array to a SAFEARRAY I googled and found some sample code that helped me. I came up with this: for (int i...
Hello Everybody... Please some one guide me how to write the code for export the chart data in a .csv file (like click on file -> save as)
[Deleted]
I would like to script for an export of several history files to .csv format. Manually I go into the History Centre select a currency pair, select the time frame and click the export button. Is there a way I can create a script that will do all this automatically for the history of a number of...
[Deleted]
How i can do it export past daily data in csv file, i try to add thi on my chart but don't work if i put it in scripts it's work but give me just one day!!! i want like one year high,low etc etc of daily bar int start ( ) { static int flag ; int handle , i ;
I need the info on how to make MT4 transferring the CLOSE value of daily for the days: Yesterday --before yesterday-- before before yesterday..etc.. in other words : for at least 5 passing days NB: I know how to transfer Bid, Ask, H, L --- but not daily close nor open . Thanks
[Deleted]
Guys, I just discovered DDE and able to get live data to excel, fantastic stuff. I like to ask someone, how and where to get started if I want to record the data of OHLC of certain time frames, for example at the close of the hour, I want data of the last hour in 60 min candle, 30 min candle etc......
Is it possible to get historical data from mt to excel through dde server. Eg: The last 500 4 hour OHLC? Regards to ALL dsg7012
[Deleted]
  Chart drift  (7)
Does anyone have a problem with objects drifting on charts? For example, I have an EA that draws a line and some text at the top of each chart using WindowsMaxPrice to find the maximum price (it deletes the old lines /text and creates new ones each tick). This normally appears at the top of the...
[Deleted]
I have a windows based Mobile the phone is touchscreen, is there a specifically designed Mobile platform which can be used on a Touch Screen windows mobile If so can you point me in the right direction please. Thanks
[Deleted]
Hi, I have a problem with MT4 Opening a Deal, then Closing it again straight away. It happening with MT4, Built 226, with 4 different EAs and two different brokers. It only happens occassionally, but has cost me about $4,000 in losses from the spreads Basically, MT4 * Opens a deal * Closes is...
New article Contest of Expert Advisors inside an Expert Advisor is published: Using virtual trading, you can create an adaptive Expert Advisor, which will turn on and off trades at the real market. Combine several strategies in a single Expert Advisor! Your multisystem Expert Advisor will...
So i moved my installed MT4 folder from Program Files (x86) to C:\MT4, opened 4 new demo accounts, and this is what i see. Is there something else that needs to be transferred or a registry value that needs to be updated? I'm on Vista home premium x64.
Sometimes I am making an indicator that reads some input from the chart using ObjectGet function,e.g ObjectGet("PivotLine",OBJPROP_PRICE1) which will get me the price which represent Pivot on the chart. Is there a way to use ObjectGet function to read text of a label? Thanks
[Deleted]
  Slippage?  (4)
Hello, Here is my problem! I want to open a order at the market, I do not want to have a OrderSend failed due to the slippage. How to do it? Slippage = 0 and the Price = Ask (for a buy) ? OrderSend(Sym, Op, Lot, Ask, 0, 0, 0, Comment, Magic, 0, CLR_NONE); Thanks
hi there, is there a way to detect non-hedging brokers automatically inside mql? or do i have to make workarounds? regards
[Deleted]
free graphical and numerical spread indicator that works in real time. Features: * Graphic and numeric * Customizable * Works in real-time * Can be used in multiple charts Video:
[Deleted]
Please excuse me for what maybe a very simple question, but i am just a beginner and came to GURUS of the MT4 for help. I have an indicator that send out an alert ( message box ), How would i capture this alert from EA? I know how to place an order through EA, I just dint know how to capture that...
I have been trading for a while now and one technique I use for my stops, is that I stop out the trade ONLY if price can CLOSE past my stop level. However, it doesn't seem that MT4 has a built in function for this. I have been looking all over the internet for quite some time and cannot find any...
  64 bit MT4?  (15   1 2)
I'm using some rather memory-hungry methods in my EA since it necessitates the use of very large multidimensional arrays. The 32-bit memory address limitations are forcing me to use a much shorter history than i would like, and i'd really like to take advantage of 64 bit memory addresses and...
I am trying to develop an adaptive moving average indicator based on Perry Kaufman's method. So far, I have modelled the indicator in excel and I am now trying to code it in MQL4. I haven't gotten very far and could do with some help if anyone would be kind enough? Here is my code to date:...
[Deleted]
Hi, If you are looking for an experienced MQL4 programmer to code anything for you, I am your guy. I will code anything from the simplest indicator to the most elaborate EA. If you are interested, please contact me via the forum, or at my email address: tutbalut@gmail.com Successful trading to us...
  rectangle style  (1)
does anybody know how to code a rectangle (OBJ_RECTANGLE), so that it only shows the surrounding lines (of the rectangle) and not a rectangle completely filled with colour? thanks in advance
[Deleted]
Hi, I understand how to calculate the OrderProfit in Forex markets. Could anybody explain how I could do the calculation in MQL in CFDs and Future markets? [ I want to simulate the OrderProfit() Method with different ClosePrices to estimate the win/loss...] Thanks in advance.
[Deleted]
I want to use a inter timeframe indicator with iAD, part of code goes as: int start() { int limit; int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; //---- for(int i=0; i<limit; i++)...
Hello everyone! I ve downloaded this indicator. But then i ve dropped that on the chart - no lines appeared. That problem with this ?
  ICS.mqc
hey everyone..... ordinarily a simple google will find what's needed..... not so here.... several indicators i've been lookin at are asking for "ICS"...... i can not find it anywhere...... in the heading it always says Presence ISC.mq4 ...... which i'm guessing must be a typo........ can...