Download MetaTrader 5

MQL4 and MetaTrader 4 - page 567

To post a new topic, please log in or register
Hi all! This is kinda' a tricky question so read carefully! Can anyone provide instruction as to allow seconds to lapse until seconds reach a value of ten (10). Once seconds reach a value of ten, value ten (10) substitutes and FREEZES into vector "array j" element 0. (this means that once the value...
Sometimes my orders are closed for a price, which was never reached. The EA is programmed like this: if( loss > 150.0) { close Order; } Could it be, that the visual picture shows not the correct price or is it a problem with the brooker ?
Dear Community, is it possible to draw someletters instead of the Wingdings symbols in the indicator? Like on the following screenshot: Thank you very much!
Currently with the indicators I use, moving averages, bollinger bands in particular, there really are only 4 line styles...dashed...dotted and then a variation of longer dashes and dots. I would like to find a way to enhance these. For instance, why do the dots have to be so tiny? Why can't there be...
hi i want an indicator like zigzag by this property: i want indicator that show wave by width channel. i mean : for example in down trend, when one low break after (minimum)X candle, the wave show by indicator. one indicator i found in this link but it is not what i want .
hello my friend. i cant speake english.please excusme me.im not familiar with mql4 and programing.but for complete my trading system i strongly need the basic of calculation of this indicator.i attach indicator.i want know what basic of calculation of this indicator.what is fish0 and fish 1 and what...
What is the problem here (last bar do not draw): #property indicator_chart_window#property indicator_buffers 1#property indicator_color1  Red#property indicator_width1  1//---- input parametersextern int PERIOD  =12;//---- indicator bufferdouble Buffer[];int init()  {   SetIndexBuffer(0,Buffer);...
Hi Forum, I use the Ichimoku indicator and I wanted to see if the the price is above, in or below the cloud in a higher timeframe. I trade the M5 and wanted to know how the M15 looks like without switching the timeframe. Green = last bar is above the could Yellow = last bar is in the cloud (or part...
Hi there, From what I have read on this forum regarding Double Precision Math operations the concensus seems to be that one must use the NormalizeDouble function to produce expected results when using double precision numbers. However, I am still experiencing some strange problems when using double...
Wondering if somebody has done this already (save some time).. I have a SMA on my chart, I want a histogram in a separate window showing the distance between the price and the SMA. Also I want the histogram bar to be RED if the last bar was taller, GREEN if shorter. Thanks in advance. Mo
We know that, in order to access such order details; the order should be selected first by indexing the opened positions. i.e. for ( int i = 0; i <= OrdersTotal() - 1; i ++ )    {    // --- Select & Gather Order Info ...      } Now, the gathered OrderOpenPrice() at i = k should be stored somehow in...
hello guys I wanted to develop a site like myfxbook.com. I am wondering how does it fetch all account history. they must be having an EA or something through which they can change login account. so my question is "how to change login into metrader through ea or dll or any other programmtic style"...
Hi, I am trying to write my first indicator. Well, I am just playing with code and having some fun. I would like to display a message box when the specified parameter is TRUE and when I okay the parameter box. Below is the code, it does not do a lot. #property indicator_separate_window#property...
I believe I have seen this request a few times so with my best programmers hat on I have written the following, yet to test it on demo account criticisms please Note it was written for clarity not efficiency - I'll screem if you also ask for it to place a trade at price :-) (maybe I will add that...
HI EVERYONE I was trying to develop a code on metaeditor in which I need to retrieve previous candle information, i.e., open high close and low. can anyone help me in that?
How can I check, if the custom indicator exists??
Hi Can someone help me with code that I can use to find high/low for a period from x to y, and which I will be using later in the day? For example to find the high/low for at period from midnight to 4:30 AM, and which I will be using in the afternoon. Thanks in advance. GJ
  AccountStopoutLevel (12   1 2)
Can anyone better describe AccountStopoutLevel() than the metatrader documentation? 0 - calculation of percentage ratio between margin and equity; Is it the Margin used? The Free Margin? Is it Margin / Equity or Equity / Margin? How is it calculated? Best regards
Hi, how can I draw two rectangles a little bit shifted without transparency??
sorry but anyone - ......and the best and fastest way to get a .........sharpe ratio is ?????????? please????
Just a beginner... Would this be the most efficient way of displaying the value of a variable on a chart in a script or expert? Note I don't want to use Comment() because font is too small. If there is a more efficient way, please describe. Thanks //-------------------------------------- double...
Hello all, just want to use the chance and ask all the "experts" or experienced traders out there if it is somehow possible to detect the current value of an ema (inside the MT4 platform) - expect from what I see on my chart? Or is what I see the true value? Regards Hubinator
  Dynamic Array (13   1 2)
Hi all .... I'm absolutely hopeless when it comes to arrays, sort of a brain freeze, so I hope to get some help here. To really simplify, I am trying to add an orders ticket number to an array whenever a new order is opened. For example, the first orders ticket number will be in the first cell of...
In a saturday or sunday, how do you test an EA? I've tried putting the code on init but it doesn't run.
Put a stop(loss) to typing in your trades manually. Use visual aids to place and manage your trades according to your personal trading plan. Put any number of trades simultaneously with a click of a button.Visual trade manager will place stoploss and profit targets according to your custom settings....
Hello! I have two questions. 1. I want to buy/sell after crossing two WMA on new bar but for price close prev bar. And after place an order 5minutes later if order will be still active (no transaction), buy/sell for every price. Someone can tell me how to write after 5 minutes buy/sell for every...
Crosshair or [+] sign not available in android MT4 apps. Its quite difficult to see previous Candle at particular time frame. I hope the developer will seriously look into it. Thank You.
What should I do ? I need Some One to create EA. I'm Newbie and didn't understand Coding EA MT4. I use Osma with 4 different paremeters and 4 different timeframe.
The second if statment "if(OrdersTotal() == 0 && LoMidBuf1 > LoMidBuf && SellOrder == 1)" is running even though the OrdersTotal() equals one (set by the first if statement). The print statment shows that OrdersTotal is zero but the code still runs. I don't understand. Thanks for the help. 2012...
When run, produces the error : 2012.08.24 18:15:04 osma expert inputs: MagicNumber=0; Lots=0.1; Slippage=5; StopLoss=50; TakeProfit=60; TrailingStop=30;