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]
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...
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...
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...
[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.
[Deleted]
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 ",...
[Deleted]
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
[Deleted]
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...
[Deleted]
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 this loop for
It's posted at http://forexfactory.com/showthread.php?t=11937 A possible nice addition would be the option to enter with lets say 3 orders, the first 2 having a TP (maybe 50 and 100) and the 3rd as a runner with no TP. Close all orders at midnight Friday. I think it would be a nice EA to have...
[Deleted]
I am trying to pass messages between various windows. At first I was trying to useFindWindow() to obtain the handles of various windows, but my results always cameup as 0. So I decided to try just getting the handle of the calling window throughGetActiveWindow(). Again, the result is 0. Why is this...
[Deleted]
Please i need urgently to get the hard disk serial or processor serial number inchart??i need the code language
[Deleted]
I have built an EA and have been testing it out with a demo account and so far itis working just fine. I am attempting to use the Strategy Tester with this EA but every time I try itjust loads "zero divide" into the Journal. Can anyone offer a suggestionas to why when I run my EA "live" it works...
[Deleted]
Two questions, 1. How can I find out what effect the last closed trade had on account equity? 2. How can I obtain the equity history? (if at all).
[Deleted]
hi , i am a new user of metatrader. i want to get automatically trade signal ( buyor sell) . alerts show in my computer( metatrader4). i want the indicators putin custom indicator .such as alert trend , alert swing ,alert break .i have triedto find the file in metatrader4 in internet, but i can not...
The chart is making texts (OBJ_LABEL) unreadable in the intersection areas. Is itpossible to make the chart vanish?
[Deleted]
To moderator of Articles Site. I find a download problem from 'Эффективные алгоритмы усреднения с минимальным лагом и их использованиев индикаторах' on my computer. This very interesting article have no end, no author name, no downloadfile icon, no commentaries and no possibility to write one. Every...
[Deleted]
I want to use stochastic(3,3,3) cross points to enter/exit positions - meaning -whenever the main and signal cross each other, buy if the previous main line wasunder the signal and vise versa. i want it also to close any previous positionaccordingly (on crossover). I have used Expert Advisor...
[Deleted]
Good day, With many of the trading Experts I have been writing, there are valuesthat reference places on the graphs, I can't seem to find a way to have the expertgraph, or output on the chart. I know if you open a buy or sell it puts lines onthe chart, is their a way to do the same with a variable...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.