Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1268

To post a new topic, please log in or register
  How many of you are successful ? (65   1 2 3 4 5 6 7)
I've posted this question elsewhere, but didn't get a response ... so I thought I'd start a new thread. We are all here, presumably, to discover a way of generating income from Forex .. and in particular, in this section, using Expert Advisers. From reading the threads, most people are testing,...
Is there a function that can detect data coming into MT4 to say servers are active. Say difference btw weekend and trading days. Like MT4Active = TRUE ??
  Braintrading EA (168   1 2 3 4 5 ... 16 17)
This EA was created by Igorad according to Braintrading system (trading on H1 timeframe with M15 confirmation). About BT system and rules you may find in this section: - BrainSystem: Trading Rules; - BrainSystem: Setup Questions; EA was created according to H1/M15 confirmation rules. And you may...
for example if i only want the indicator to show the past 500 bars (i am assumingthis will same some calculations for EAs) //+------------------------------------------------------------------+//| MACD Histogram.mq4 |//|...
I would really appreciate code example of how to capture the mouse clicks as inputparameters for the indicator. Exact example is Andrews' Pitchfork input, with threeclicks determining the selection of high/low of three bars. Many thanks!
Can anyone tell me if indicator arrays (including custome indicators) are calculatedevery time they are called, or whether it is a once per chart, then whenever anew tick or bar is completed? For instance, if I call iCustom() twice in the same tick, will it be much slowerthan if i call it once,...
Hi again. Maybe this is a simple question for too many but for me that I´m doing mi first steps into programming it´sa little hard. I´m looking the way for make the levels for the indicator attached indicator which is not restricted in a range(0 to 100 like rsi) looks like CCI levels. With CCI,...
How do I determine that the condition of the chart is daily data ?
Hi: With the help from this forum, I was able to write a custom indicator that plot3 traces. When I looked closely to the return argurment of the "int start()"function, I was amazed. How can the start function return "double" whenthe declaration indicated "int"? I am guessing that the function...
Does anybody know if (and how) it's possible in MQL4 to build an Indicator withthe purpose of generating a recalculated Candlestick Price Chart, istead of a simple line?
Dear supporters, I am living in Vancouver, BC, Canada. My experience of margin trading has morethan 5 years. According to my experience, it is much more reliable on a MTS thanon myself. That is why I am trying to code a program with MQL4. However, it is unconvenient for me to stay in front of my...
I am improving prolems with compiling it is giving an error code as '\end_of_program'- unbalanced left parenthesis . Is somebody could help me? Thank you
my code.. int limit, RPeriod =5; double EUR; int counted_bars = IndicatorCounted();if(counted_bars > 0) counted_bars--; limit = Bars - counted_bars - RPeriod;// From left to Right on Chart for(int i = limit; i >= 0; i--) { EUR = (iClose("EURUSD",0, i) - iClose("EURUSD", 0, i + RPeriod)); } Bar on...
I wrote a custom indicator that draw a line using moving average. So far, it drewa line. However, I have a scale that use a timeframe as a switch to select twoscaling parameters. How do I get timeframe from the current chart so I can selectthe proper scaling parameter. I am not concern about the...
I have written an EA for managing an open trade to close it as safe as possible.The EA receives the order ticket number as an external variable and then managesTP and SL to close the trade safely. I shared the EA with some people. They wantto use it in their EAs but I do not want to share the source...
Hi all I thought that the server always reports time as GMT, but I am getting a 9-hourdifference betwen my TimeLocal - Vancouver, Canada, which is in the Pacific StandardTime zone, which is the same as GMT(-8) - and the server time (TimeCurrent()).That would mean that the time I am getting from the...
If some one will help me, I will provide the full course being sold on the internetwhich describes the the Binary Equation Strategy. You can check my site - www.profitsareup.com This is my site, so I am not providing any "bootleg" material. The assistance of one of you programming experts would...
  SuperScalper (5)
In Back Testing This EA by investorme performs extreamly well (EURUSD, M30)but in forward testing I get an error. I know very little about programming. Maybe it needs to be changed to be compatible with the new metatrader 4. I would really want to forward test this EA and post results if I can get...
I have an array with data that is made up from calculations, I need to find thesimple moving average of data in this array.. My code is not working note : limit is just total records in array. 50 is desired period. Call the function in Start area >> MovingAve(Array3,Array2,50,limit); void...
Does MT have an Interupt Timer, eg: in a customer indicator, I wish to do somethingexactly once every 5 minutes, NOT depends on the price tick. Or does anyone know how to realise this function? In script, it can be done by using Sleep() function, but the time of each cycleis not exactly the time...
I´m modifying some pivot indicator to display weekly values but I can´t manage to draw the buffers. The values are calculed correctly and the labels are good too. What I´m doing wrong :( Thanks in advance. Here´s the code #define IND_NAME "Weekly Pivot S&R"#property indicator_buffers 7#property...
I know how to place info into a single dymension array CalculationResult = Result of some function or forumla for each bar in chart. double Data[]; Start loop i Data[i] = CalculationResult end loop i But if I wish to store two pieces of information in the array, like Date and...
I have been pulling out my hair trying to write a simple EA for a breakout strategy! The strategy/Expert Advisor needs to work on these simple rules: (1) Determines the High and Low of the period starting at 3:00 GMT and ending at7:00 GMT (the "Tracking Period"). (2) Beginning at 7:00 GMT and ending...
Hello, I was write a multitimeframe indicator by this way.... ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),iTimeFrame); for(i=0,m=0;i<iLimit;i++){ if (Time[i]<TimeArray[m]) m++; dBuffer[i] = iCustom(NULL, iTimeFrame, "#Core_Indicator", iPrice1, iLength1, iFilter1, dDeviation1, 0,...
There are 7 indicators included, MACD, (2 MA), Stochastic, RSI, CCI, WPR, RVI. There is no drawing, just alert on last bar or shift adjust. There is option for all or each alone or more of them, but it's not shown whichindicator gives the current signal.
IM a relative new member here, Thanks for all the good work Here is my contribution to you all: I'm sure im not the only one to be plagued by automatic computer restarts when running multiple demo/live EAs. VPS are more susaptable to this. I've had my share of sleepless nights over this. But I feel...
Hi, I am writing an expert advisor that works on the weekly chart. I am trying tofind the first bar on the hourly chart that corresponds to each bar in the weeklychart. I call weeklyBar = iBarShift(Symbol(), PERIOD_W1, TimeCurrent(), false);Print ("This is bar number ", weeklyBar, " at time ",...
int limit, records, N=2; int counted_bars = IndicatorCounted(); limit = Bars - counted_bars; if ( counted_bars < 0 ) return(0); if ( counted_bars ==0 ) limit=Bars-1; double JPY; for(int i = 0; i < limit; i++) { JPY = (iHigh("USDJPY", 0, i) - Low[iLowest("USDJPY", 0, MODE_LOW,N, i )]...
I am finding that when IsConnected() == false the Terminal can never recover. I am actually having to shutdown metatraderand restart it, then the connection is reset. What the correct thing to do when the code gets this error. Should I handle thiserror by attempting to call init() ? thanks in...
I have this code.. int limit, records; int counted_bars = IndicatorCounted(); limit = Bars - counted_bars; if ( counted_bars < 0 ) return(0); if ( counted_bars ==0 ) limit=Bars-1; for(int i = 0; i < limit; i++) { ...do something with i records += 1; } Q1: So when I look at a chart is...