MQL4 and MetaTrader 4 - page 1149

I downloaded the data from http://ratedata.gaincapital.com/ for several different weeks and tried to analyse it. It's an interesting story, though! Here is the second week of April, from 9 to 13 April 2007. Total is 27516 ticks, i.e. slightly less than 4 ticks per minute on average. And here are the
[Deleted]
double tak=0; tak=CurrentBasket/Ilo; int Spread = (Ask - Bid) / Point + 0.1; if(tak>=60){TrailingStop = 20;} if (OpenPos==1) { if(tak<=-50){Print(tak); static int statik=1;} if (statik==1){if(tak >-30)CloseEverything();statik =0;} } 2011.07.30 23:09:47 2011.05.03 06:01 bulduk11 EURUSD,M5: Order 0...
Sorry for the beginner question, but I'm programming my first EA :) Is there a way to calculate indicator values after every tick? For example, a new tick comes in and my EA immediately calls iCustom (which uses the sample Moving Average indicator) to calculate the new average.
Hello! I am interested in trading on price differences. But for a long time I can't find "absolutely" different brokers. So that the difference in quotes would be tangible. The thing is that the lag is mostly small. If somebody knows something - write. Here is the access for demo account. Is it
Hi, I have gotten an indicator as *.ex4 with 6 Buffer. When I put this indicator I see the marker of the buy and the sell signal. I also can change the colour from them. But when I read the values from these buffers with my ea, I can only read "EMTPY_VALUE" everytime. How could this be? The...
Hello everybody, I have been working in this area for past few months and relatively new to this FOREX area. I see very wonderful topics in this forum and very exciting ideas. I have been working on my EA on which I posted some back testing results sometime back. I had problems with it regarding...
[Deleted]
Hello, Using the MT4 Manager, I am able to add enter Chinese characters and send the news appropriately as shown below. And in the MT4 Manager "News" tab, the following will be displayed. In my DLL code, I have managed to save the information from an external source to a text file in UTF-8. However...
[Deleted]
I am about to setup an account and wanted to find out if GO Markets accept Asian clients.
hi all Hi all, excuse my English I use google translator. could someone do repairs and modifications in this ema cross 4 ea -at first deleting hedging system it sux ad2 I think that in the section where is the setting for counterTrend error is about. when it is set // CounterTrend - true / /...
[Deleted]
I am looking at setting up an account with GO Markets, as I want to use the MT5 platform. Anyone use?
[Deleted]
Hello all! I recently made a EA using Molanis. The EA is triggered to purchase 10 lots (100,000) when the signal is triggered. However when I run the EA in the MetaTrader Strategy Tester I notice that the lot sizes change throughout the test. Can anyone please tell me why? Thank you in advance for...
  Trading a portfolio of currency pairs  (99   1 2 3 4 5 ... 9 10)
It's not the first time a topic like this has come up on the forum and after a heated discussion it has fallen silent. I hope it develops in the future. The main rule is to open/close all positions simultaneously. You can add positions for separate trading instruments. Closing of all positions after
Hi Guys, how can I code an EA that can trade 4 pairs, but each two pairs were traded with a specific magic number in one EA. EA: 1.) buy EURUSD / sell GBPUSD <-- both pairs get magic number 1234 2.) buy EURUSD / sell USDCHF <-- both pairs get magic number 5678 So EA check for both magic number:...
[Deleted]
I am using scalping ea.I want to reduce loss of false alert. My ea is a version of mastermind 3(here in this forum). it makes even in real account(2 pips fixed) X200 in year. but sometimes goes bad to 1/2...
Hi guys, I need your coding help. I have different open positions from different EAs with unique magic numbers. Now I want to let check every EA if the EA wants to open a new position to check if there is already an open position with a given magic number. How can help? Bset regards
[Deleted]
Hi, I have problem to write code that is monitoring open orders and if max orders is equal number of open orders, than it should close all open orders. I will define max orders maxordes =4; than: if (openorders == maxorders) { close all open orders ( all 4)} can me anybody help? I tried with orders...
  SMS LOOP  (4)
Hi please can any one help with sending of sms from mt4, I got it working fine for weeks but then the ea opened another trade strait after closing one, then the sms went into a loop and sent about 50 sms's until my sms account was empty, has any one got any idea how I can stop this, thanks
hello. Please help me to get the recent Parabolic SAR dot value by using this "iSAR(Symbol(),0,0.02,0.02,0)", Correct if my question was wrong. thanks.
[Deleted]
Hi! I have a question about how an expert interacts with many charts at the same time. I have this expert, which closes every order as soon as certain condition is met. The thing is that this is signaled through a variable, and, once every order is closed, I reset this variable to "stop closing"...
I have been trading with one system for 3 months on my real account, and the results are very good. Now I am looking for programmer to make an EA bassed on that system. If somebody is interested I am looking forword to write me back! Anna
I want to check if there are any open OP_BUYSTOP orders and when there are none to place a new buy stop order. But the code does not work. Can anyone please tell me what is wrong with this piece of code? for (i = OrdersTotal ()- 1 ; i >= 0 ; i--) {
Can somebody help me to change minimum pips for pending order ? I got minimum 300 pips in my program. i want to change it to 50pips or less . thank you
[Deleted]
dear all, when any body try to make changes on the program files of Meta Trader 4 that charts should be automatically be stoped working. i want to add these customization. pls can anybody suggest me how i can do this and in which file i need to make changes. pls provide me the solution as soon as...
[Deleted]
Is there any code that restarts MT4 platform. I remember I met in the past but forgot to save it.
[Deleted]
HI, I have an MQL code with me which is DT_ZZ_Impuls_Slope. Can anyone let me know how this works? I am trying to convert this in another platform. I want the description of this Indicator. Thanks,
[Deleted]
Do you get this error message frequently too, when using the forum search function?
-
I use a linear regression indicator (i-Regr) in my EA. Specifically, I use the slope of the linear regression. I define the "slope" like this: slope = MathAbs(1000000*(CurrentReg - LastReg)/Period()); (where CurrentReg is the regression's value at the current bar's close price, and LastReg is the...
I have the following code: double RangeSize = High[1] - Low[1]; Comment ("Range = " + RangeSize) It shows 0.00099000 If i want it to show it in pips (like 9.9pips) . How can i do that? What is the correct if-sentence if i want to ask if RangeSize is lower than 5pips?
Hello, Function ObjectGetShiftByValue( string name, double value) returns bar number by value. As I understood, it could not return negative numbers - it could not return future bars. Or could ? Thanks, Edas
[Deleted]
#property indicator_indicator_window#property indicator_buffers 2#property indicator_color1 Green#property indicator_color2 Red//---- buffersextern int MaxDrawBars=2000;double ExtMapBuffer1[];double ExtMapBuffer2[];int myBars;int tickCounter;int delimeterCounter;double CurrentTick;double...