MQL4 and MetaTrader 4 - page 1262

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:...
  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
  THE NEW NIPPLE SYSTEM!  (119   1 2 3 4 5 ... 11 12)
1) Simultaneously we make a sell on dollar/japan pair and a buy on euro/japan pair. 2) We close orders when the total profit is achieved, and then swap buy and sell
[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...
[Deleted]
pomata provate una formula this vedere ma mi da l'Una marea di ERRORI, io vorrei Semplicemente IL SISTEMA Che mi dia Segnale quando chiudere crossa la media mobile al rialzo SUA e viceversa ! La formula di base Essere dovrebbe : chiudere doppio = iclose ; closeprec doppio = iclose [1]; mov doppio =
[Deleted]
Hello Great forum. We have encountered an issue with the Mobile MT4 Platform. We are unable to install to our HTC HD2 running Windows Mobile 6.5. It tells us that it is not a Pocket Pc Application. Is there a specific technique i should be using to Install the Platform, is the .cab or .exe file more...
New article Adaptive Trading Systems and Their Use in the MetaTrader 5 Client Terminal is published at mql5.com: This article suggests a variant of an adaptive system that consists of many strategies, each of which performs its own "virtual" trade operations. Real trading is performed in accordance...
[Deleted]
Hi all,   I'm trying to create a buy statement as if :  MA2=iMA(NULL,0,12,0,MODE_SMA,PRICE_OPEN,1);   iClose(NULL,0,0)>MA2    But every time I test it with strategy testing, it creates buy positions even if iClose lower than MA2.. How can I state that BUY ONLY if Bid > MA2 ?  Thanks 
[Deleted]
Hello all. I have a very sticky issue for which I cannot find any solution and would very much appreciate any pointers or ideas. My EA is gernerating the error 4007 no memory for temp string. Has anyone else ever run against this? I build strings to add to a log, but truncate to 248 bytes before...
How do you get the zigzag line length (wavelength in essence) in any units, knowing the coordinates of two points? Needed to compare the wavelengths of the two as a percentage === edit=== Respected sergeev on page 9 gave the code, I tweaked it to suit my task: Important note: when rewinding
So far I have found the following characters used to form Symbol or Instrument names: #ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._abcdefghijklmnopqrstuvwxyz are there any others? Thanking you all in advance.
  Time[0] in the backtester  (11   1 2)
Does anyone know if the backtester handles the Time array properly? i.e., if i run a backtest starting July 1st, will calls to Time[0] in the EA return July 1st, or whatever time it is now?
[Deleted]
Hello felows, I need a help to start my first project. There is an indicator called FFcal that use forexfactory.com website. This shows Important news relative to currency of opened chart. If pair is EURUSD, it will shows all news from EUR and USA dollar. It trace a line with hours of anticipation...
Hello, I am writing indicator which scans different symbols and timeframes for candlesticks. Candlesticks formations are early trend changing signals. The idea is: 1) Scan array of symboks ("for" cycle) 2) Scan array of timeframes ("for" cycle) 3) Find symbols/timeframes which matches criteria...
I am a newbie (like so many others here) to both MQL and Forex. I am working on building an MA crossover EA, and am challenged to understand how one can get an EA to identify the crossing over of MA's with the same time period, while one is offset by an MA shift of 2 as compared to the other MA....
[Deleted]
Wondering if anyone out there uses or has or knows how to add a crosss over alert to the RSI (Relative Strength Index) I want an audio alert to sound when the RSI crosses either up or down through the central 50 line Would appreciate hearing from anyone who can help me out Thanks - Leith
  Happy Birthday!!!  (77   1 2 3 4 5 ... 7 8)
Happy Birthday to Matemata! Please join us
[Deleted]
  MT4 Library.  (1)
Hi, I have been trying to transfer E/As and indicators from the MT4 library to the navigator section of the platform with no luck. Sometimes they do appear on the platform, but then dont transfer to the charts. Very frusstrating. Any help appreciated.
[Deleted]
Hi Guys Having trouble with this OrderModify error 1. The most basic error in the book and one I haven't been able to fix as yet. I downloaded an EA and have it compiled but can't get past this error: if(Bid - OrderOpenPrice() > Point*TurnSourLimit && Bid - OrderOpenPrice() < Point*TrailingStop) {...