MQL4 and MetaTrader 4 - page 746

To post a new topic, please log in or register
hi, i have a csv-file whcih has a lot of rows like this: EURUSD,H1,00068, 1.37360, 0, -1 EURUSD,H1,00069, 1.37370, 1, 19 EURUSD,H1,00070, 1.37380, 0, -1 EURUSD,H1,00071, 1.37390, 0, -1 EURUSD,H1,00072, 1.37400, 0, -1 EURUSD,H1,00073, 1.37410, 0, -1 EURUSD,H1,00074...
//+------------------------------------------------------------------+//|                                                    Parabolic.mq4 |//|                      Copyright © 2004, MetaQuotes Software Corp. |//|                                       http://www.metaquotes.net/...
I'mlooking for advice from people with programming experience. Ihave created my own currency strength indicator which I have added to my ownea. However, the indicator is resource intensive and I can't run the eaon more than a couple of charts. I need it on at least 10 charts. So my question is...
Hi For any MACD crosses, or EMA crosses or candle patterns is seems that my print statements print continuously. I understand that the condition is true and continues to be true for each tick, and many of my strategies are position trades and thus I don't need ticks but more of closed bars etc. How...
Hi everybody, I'm trying to code a dll template with Microsoft Visual C++ 2010 Express to protect my EAs from unauthorized access. Of course I need ArrayCopyRates() to get access to the rates ... but unfortunately it doesn't function. I studied the samples and cannot find the mistake. The error...
I have been struggling and Loosing money on Forex for a Year Plus, But yet I dont know when to Sell / Buy I try to Study e-books but am not familiar with some indicators terms and there is no one to put me thru, Please can anyone help me out here! am really very interested to learn this forex from...
int i;                                             for (i = 5; i >= 0 ; i--)        {OrderSelect(i,SELECT_BY_POS,MODE_HISTORY); My problem here is; I have for example 12 tickets in my history, i want to select the most recently closed 5 tickects and read there tickect numbers. But my code here is...
  Sierra Charts (1)
Can this set up be done on Sierra Charts or do I have to have your charts? T. Ellerbee
How can I change plattform/broker-time in MT4 so it will be syncronised to "system time"? I know how to change time to local time (I add -2h), so that I get my local time in my scripts. And I could change all to MT4-time, it would work perfekt, but my external algo runs on system time... Background:...
just look at the pictures what the tickdata do in backtest on visualmode. after the candels are close you can never see that the price where there but on my picture you have see the error, how have you slove that and how is that possible? i know it is a tickdata error, but how does that wrong...
please advise whether MT4 allows also trading ETFs/stock
HI GUYS!! I GOT THIS EA FROM HERE: //+------------------------------------------------------------------+ //| mo_bidir_v0_1.mq4 | //| | //| - Works best in 5M timeframe...
I'd like to know how to make Mt4 make an alert sound when one of my indicators performs a certain event. Say when %K and %D equal one another in a Stochastic (Crossing over in this case). Is there a simple way to make the MetaEditor do this? I'm not good with C language and I'm bit confused as to...
Hello, i need help with my EA. i need a simple trailing stop and a simple break even but i dont know how to do this. Thats my EA Code dont laugh its my first EA ;-) please do not change so much. if possible just only insert the trailing stop, that i can still simply put there my strategies. ive made...
Hi, I have EA like this: intinit() {  long_running_function_that_access_timeseries_array();}intstart() {  while(!IsStopped()) {    RefreshRates();    another_function_that_access_timeseries_array();    Sleep(50);  }} Suppose that init() takes 30 minutes to complete. After that MT4 will call my...
Hello ; I would like the distance between 2 trend lines (the height) so i begin to create a program which can get the object property like (price and time) . My problem is I can take those information for one trend line but not for the one (there is to) as you can see in the pictures, I draw 2...
Hi, I have an indicator calling iMA() to return a moving average. If I use MODE_CLOSE in the code, it uses the LOW prices. If I use MODE_OPEN in the code, it uses the CLOSE prices. I can tell this by setting the period to 1 and seeing what prices the moving average tracks. Here is the line of code I...
I am using ATR TRAILER EA, but there is a problem in ordersend() its not doing trading but when I am testing it using strategy tester its giving me right result. please help me regarding this. I am attaching my code file with this . please find attachment. Thanks in Advance.
//+------------------------------------------------------------------+//|                                                    Parabolic.mq4 |//|                      Copyright © 2004, MetaQuotes Software Corp. |//|                                       http://www.metaquotes.net/...
My MetaTrader 4 was working perfectly when I was testing the megabreaker EA, when all of a sudden the pips stopped moving. All charts seem to be still, permanently. What could the problem be? Red
Hi I am looking for a sample code or how to implement Student-T Test http://en.wikipedia.org/wiki/Student's_t-test or Wicoxon Test http://en.wikipedia.org/wiki/Wilcoxon_signed-rank_test in my EA in order to improve the probability of my expert advisor.There are some great articles about...
The i-Regr indicator (as well as numerous others) calculates the linear regression of X bars and displays it on the screen (green line): At each new bar the index buffers are cleared and re-written with new values; the indicator repaints (as it should). When it does this all prior regression values...
Hi I was creating some code and was wondering about Bid price when it is between 2 points. For example if(Bid < High[5] && Bid > Low[1]) Print("Bid is between High[5] and Low[1]") or something similar ? Any problem with this ? Or should I be using MODE_BID ? Or perhaps none of this ? Please advise...
  Indicator getting corrupted (56   1 2 3 4 5 6)
All, I have developed an indicator which runs fine for the first 16 hrs or so, after which it gets corrupted and starts to draw lines all over the chart. I am also checking the value of IndicatorCounted() and its value does not become negative when I get the corrupted lines. I do not want to...
Hi, i need help cause each time i order, it's always come out signal timeout message. what does it means? is it related with connection, as i know the connection is ok? is the proble in client or in server? many thank's..
I have this function to look for line crosses to initiate a position. The problem I have is that when I add the EA to the terminal it immediately takes a position. I'm not sure what to add so that it waits until a subsequent line cross before it initiates a position. int Crossed (double line1 ,...
My previous posting titled "Multiple instances of EA" hasn't got an effective solution, Here comes another one... After attaching an EA to a chart, the EA will initialize itself every time you switch intervals (for example, M15->M1). By "Initialize", I mean it resets global and static variables and...
I use different profilesso I can get EURO charts or JPY charts etc in groups. In one set of profiles Ihave 8 charts, each on a different timescale. This all works well apart from abug with a custom indicator. When I change profiles the custom indicator inquestion does not get its init() re-run and...
Hi All, I'm getting a 130 Invalid stop error in Production but not in Test. I'm sure its something I'm over looking, I'm looking for any suggestions before I begin debugging it. thanks K
I am new to the forum and am looking for an existing expert advisor, or someone who can design a script to alert the trader on crossovers between the following EMAs: 13EMA, 21EMA, 34EMA. An alert must sound whenever the three EMAs crossover each other. Specifically, when the 13EMA is under the...