MQL4 and MetaTrader 4 - page 1668

Hi All! I'm a beginner MQL4 user. There are lot of little - and smart - things dont know about it. I'm working on an indicator. I found myself face to an interesting thing aboutmultiplication. I show you: This row is works well: MD[pos] = iMA(NULL,0,13,0,0,ABS[pos],pos) ; But this one doesnt...
[Deleted]
I wrote EA to place pending order with expiration 10 days and everything is finewhen I'm testing strategy with tester. But when I put EA on grapfic (demo account),placed order expires the same day at 23:59 with label "expires [good for day]"in Account history. Extract from EA code: int exp;...
On the website of the Automated Trading Championship 2006, the article "Automated Trading Championship 2006 Is Over" has been published. The 12th and the last week of the first annual Automated Trading Championship 2006 is over.There will be neither moves in the Top Three nor changes in the total...
If someone would be so kind... here is the system: The system simply buys or sells at a certain time of day, and either takes a profit or is stopped out. No indicators. 1) Must work on any pair, any timeframe. 2) Needs option for lot size 3) Needs option of buying or selling. 4) Needs option of...
[Deleted]
Dear Kind experts I want to make a trade at a sepcific hour, say at open of 13:00 and at open of15:00 automatically. can any one send me the code to do this any information you will be providing will be greatly appreciated, as I'm beginnerin this Hishamn
[Deleted]
  File Exists?  (10)
I have a EA that should react on the existence of a file. So I just call handle=FileOpen(FileName, FILE_CSV|FILE_READ, ';'); and if the handle > 0 the file exists. However now on every tick I get a message in the "expert"-part of theterminal: cannot open file ..... The logfile from the...
  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,...
[Deleted]
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 ??
[Deleted]
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 input parameters for the indicator. Exact example is Andrews' Pitchfork input, with three clicks determining the selection of high/low of three bars. Many thanks
[Deleted]
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,...
[Deleted]
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?
[Deleted]
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...
[Deleted]
  end of program  (3)
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
[Deleted]
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...
[Deleted]
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
[Deleted]
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...
  Interupt Timer  (6)
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...
-
  Buffer Drawing  (1)
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...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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.