Download MetaTrader 5

MQL4 and MetaTrader 4 - page 402

To post a new topic, please log in or register
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.
Heya guys (and gals perhaps?)! I´m new to metatrader, been doing some very simple ea's and slowly making them more advanced. I am now trying to make an ea that buys when RSI is below 10 and when the last periods MA50 is higher then it has been duuring the last 50 periods. I have been searching alot...
I saw it somewhere but can't dig it up. Don't even know how to describe it. In strategy tester you can move through the preceding bars (or ticks?) instead of hitting the pause button every other second.
Hello sir how to show copy right on the chart lets say #property copyright "Copyright 2012" but this is not working on my chart ?
hi can somebody tell me how to remove comment in a through code ?
Hello, I would like to have something (I don't know if it should be called na EA or a script) that automatically opens a position if the timeframe candle (that the ea is running on) closes beyound a certain level that we define. Note that it is not when price reaches that level (for that we have...
my EA has written the value of "Bars" to the MetaTrader log file. Since yesterday afternoon there is an unusual phenomenon. Nearly every two hours, the value is reducing by 128 points. example given: time     value of Bars14:30    120014:31    120114:32    120214:33    107414:34    1075...17:41...
Today i got a never seen before error when i tried to compile. It read like this "Variable name too long". I dont recall reading anything like maximum variable name length in mql4 book. Could this mean some things weren't published in the book?
  When will mt4 market launch (36   1 2 3 4)
Any updates on the launch date?
  NULL string comparison (16   1 2)
Hi, I've read https://www.mql5.com/en/forum/46695, but I still don't know how to test, if a string == NULL. The following results in false: string Str;string NullStr;      Str = NULL;Print(Str == NullStr); So what's the solution? Thanx.
1...395396397398399400401402403404405406407408409...1244