MQL4 and MetaTrader 4 - page 489

To post a new topic, please log in or register
  reopen a closed order (11   1 2)
Hello, I'm trying to learn the code. But for the following problem I have found nothing in the documentation: How can I start the same buy-limit order again after it was closed? for example: buy_limit EUR / USD opened at 1.35, tp closed at 1.3510. Now I want that this order is always opened at 1.35...
Hi everyone, I can't find a complete tutorial about programming in MQ4. Do you know any ? I don't understand the use of Bars, IndicatorCounted, etc. Why must I do a loop in the start function while I only have to compute -ONE-dot each time start() is called (for each tick) ? Thanks in advance,...
Hello to the fellow traders, I am having a serious problem with my mt4 platform, it stops/freezes and loses connection to the server. my server is US-05 Upon trying to restart (ie both the pc and metatrader), ''no connection'' still persists preceded by ''common error''. When it does return to...
Hi, I found this stochastics slope indicator at forex factory. It's actually everywhere. But I cannot find an MTF version of this particular indicator. I say this particular because I like this one. I've seen others, but I do not want other mtf stochastics. I like this version. I had a programmer...
Hello Friends Friends i want that please can any one make this ea for me for using that ea on ofline chart. Buy if previous 1 candle is buy candle ea open buy order on next opening canlde, Sell if previous 1 candle is Sell candle ea open Sell order on next opening canlde, Exist when one oposit...
Someone has the indicator and oscillator CandleCode developed by Viktor Likhovidov? Could someone develop?
Hi, I just realized that there are two template-folder one on the level of the terminal.exe this one is used for the charts and another one in the expert-folder for what is this folder? Is this one used if I want to create a new indicator for its structure? Thanks in advance! gooly
  Get Profit (13   1 2)
Hi can somebody tell me how to calculate profit for all orders in the history ?
New article Marvel Your MQL5 Customers with a Usable Cocktail of Technologies! has been published: MQL5 provides programmers with a very complete set of functions and object-oriented API thanks to which they can do everything they want within the MetaTrader environment. However, Web Technology is an...
It is requested that somebody create an indicatorfor me with following parameters, Thanks and regards in advance 1.      The standard MT4 envelop indicator in theoscillator section should be used 2.      The indicator should indicate envelop prices,both upper and lower by adding spread to upper...
hello everybody im looking for a method to save chart data : date; time; open price; close price; and also indicators data Does anyone here know if it's possible to export indicator data from MT4 to a text or CSV file thx a lot ;)
  cannot detect new bar form. (23   1 2 3)
Hi, I have create a code which detect new bar been form. but seems there is a bug. What i wanted is, when we attach the EA to any chart, if at the time when attach to the chart.... the current bar still not yet finish perform.... it will wait for new bar to begin then alert new bar been form. If...
while((AB * (GlobalClosur / 100)) > H){ This produces Wrong results while((AB * GlobalClosur / 100) > H){ This produces correct results Is this not the same code ?.. except brackets that I hope the order is prioritized
MetaTrader4 code for price extremes indicator Indicator buffers: #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Yellow #property indicator_color2 Blue extern int      CountedPeriod=5; Buffer names: double hi[]; //  for high border double lo[];  // for low...
In a recent post, see "ea runs on my broker but not on another", I posted my code for a program that automatically sets the stoploss given the lots opened on a trade and a predetermined risk level inputted to an extern variable. It would not run, so it seemed, on two different brokers. It turns...
Is there a more elegant way of running a cycle loop in increments greater than one: i = 0;While(i < 100){.....code.i = i + 3;} Is there a format using the 'For' function? thanks
Hello everyone, After wrinting serveral indicators for the first time, I'm facing a simple, but very annoying, problem. My indicators work well. But they update to the current situation only if I change my timeframe to another one. If I keep my screen on the same timeframe, the situation between my...
Hi I am trying to export the historic data to some tabuled format. I know to export to csv from History Center, but it export on selected timeframe M1, M5, etc. But I wanted it tick by tick. There is a way to do it trough MetaTrader 4, or it have to be trough some script? Thanks.
Hello coders, I would like to program a very simple indicator which displays an alert when the last bar's low is above the SMA20 and the space between the bar's low and the SMA20 must be smaller then the bar's size. Until now that is no problem. But the indicator should check this not only for the...
Greetings All! I am trying to get to the bottom of an incredibly strange issue, where my experts log and journal log are not matching up. The primary problem is that i am seeing two trades taken in the journal, but only 1 in the experts log, which from looking at the code is impossible. Please see...
I don't know why, but when i was making an indicator, i can't obtain a correct division. Is this bug or is missing me something?? Example: double ResultOf=5/2;// Should give the Result of 2.5, however in comment i have 2.// Anyone knows why?? or is one more Bug??
There is a serious bug in MT4 for ipad version. I lost money because of it. When the keypad is open, if you hit the "SELL" button, "BUY" command is applied. VERY WORST BUG!! Note: I tried it on demo accounts of various broker companies. This problem does not occur on all of the broker companies'...
I developed an EA on EUR-USD pair using Eikon Reuters data but the results and signals on Reuters feed and Mt4 feed are vastly different. In Reuters,I am generating the signals on bar close,But in mt4 while doing strategy testing there is only an option for open price only. Even discarding this,...
Hi Coders! I have a DLL file (download) consists two functions for simulating new tick arriving. The functions are: IceLock_StartTicker() and IceLock_StopTicker(). Usage: #import "IceFX.TraderAgent.dll"   void IceLock_StartTicker(int a0, int a1);   void IceLock_StopTicker(int a0);#importint...
Someone knows how to access to the value of a compiling property? if we Define this property in the head of our ea... #property link " http://www.yotrader.com/ " How may I access to this value set in "property link"? because this not works... Print(#property link) Print(#link) Is there any system...
Hello all. Just landed in the big world of forex trading and remeber when all you lot started out I have a ton of questions Have tested a few demo brokers made some profits made some huge losses but picked up loads of information along the dayabout forex some Ive digested some doesnt make sense Have...
SackMyCook
I put this question, as the leading free signal provider for MT4 has changed his signal from free to a subscription charge, in the belief that less people will subscribe. Consequently those that continue will sustain less slippage when trades are copied. Or is it that brokers have the foresight that...
Hi, anybody know of a program, indicator, ea, etc that will close my position when a candle closes on the wrong side of the stop loss, not when it punches through just to go right back in your favor, dramatically...? I hate those pesky stop hunters...
//+------------------------------------------------------------------+//|                                           SupportResistTrade.mq4 |//|                                 Copyright © 2008, Gryb Alexander...
Hello, The Print command has no effect in a script? Thank you kindly confirm.