Hi, When an order is opened and closed on MT5, an arrow and line are drawn on the chart from the opening and closing price/time. If the chart is closed and re-opened, these lines do not re-appear. Is there any built-in function or indicator/script that will interrogate your order history and...
I try to create an indicator that Bollinger bands and the moving average changes color depending on the trend.
I took the code already written "BB" but I have some problem writing the new code for several weeks.
Could someone help me please, I don't know why the indicator does not work as...
Hi, im new into Forex in general and into expert advisors tools, but im looking for a way to do the following and was told that it is possible using EA tools: Im trading the USD/JPY and I need a way to create an order but to have it valid only when the pair reaches a certain rate. For example, say...
I use the ADX Wilder buffer in my EA and realize that value in the array for the current bar  is different from the value I see in the data window of Strategy Tester, for the same bar. Values  and  are correct. For example the Data Window shows :
- ADX Wilder(14) = 46.70 (for bar...
I'm having issues with the Hector Trader Indicators on my MT4 platform. It makes it very sluggish and to the point that it freezes. Has anyone had this problem? I also deleted the History folder and lowered the max bars in the charts menu from 65000 to 5000 and deleted the chart files in the...
New to forum. Have searched custom indicators cannot see what I want. In a nutshell.
1 hour chart
At the commencement of each hour bar I want to calculate the value that the MA40 and WMA5 will (may) intersect indicated by a horizontal line, a...
I'm now learning about creating objects.
How can I change colors of bar and candle in chart objects( OBJ_CHART ) ?
I also wanted to know how to hide OHLC values in the upper left corner.
I have a few years experience with MT4 EAs but now I'm trying to learn MT5.
In MQL4, I could see the drawing of a custom indicator (called with iCustom) in the chart of the stategy tester.
If I call the iCustom() from a EA in MQL5 (I know it's differnt with handle etc.), the indicator works...
Is it possible within the same indicator script to display two data sets, one with DRAW_COLOR_CANDLES and the second set on top with DRAW_COLOR_BARS.
Both data sets are within the same 0-100 range, so that's not an issue.
If you can point me to some sort of an example script, that...
Hi, I would like to create an indicator that, when a couple (bullish or bearish) forms, colors an arrow (green-bullish) end (red-bearish).
The size of the body of each candle must be at least 5 points
is it possible?
Is there a way to avoid zero plots? I am plotting candle sticks around e.g. the 900-1000 range, and when I get a candle where I don't have data for, the candle ohlc all plots at 0.
This squeezes all the candles to a 0-1000 range. Is there an option to avoid this? In Sierra there is the...
I have a custom indicator that calculates a MA line (like ma in MT5 indicator), I plot up arrow and down arrow for the direction. I have a problem when I put this indicator on more than one chart (different currency...it seems they are effecting each other. the last loaded chart doesn't draw...
I am trying to generate bars with data from another program.
First step is to read a text file located in \files\ES3.txt, with the content below.
The file reads fine, indicated by the comment "Success", however, when I try to loop through the lines it appears the code created an...
I have been trying to write a script that displays the correct hours of my time zone, which is at -7h of the server time.
I have been partially successful, the problem is that the time labels don't move when a new bar is added, and when I change time frames, some labels don't get deleted...
in MQL4 I often grouped several indicators in one, filling the buffers with standard functions:
GD[i]=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i); Short[i]=iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_LOW,i); Long[i]=iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_HIGH,i); Large[i]=iMA(NULL,0...
Hi there MQL5 community, first of all dont mind my english i hope itll be enough for you to undrstand the situation.
I need a complementary indicator to the RSI STRIKE custom one which u can find here https://www.mql5.com/en/code/640.
The idea is that this indicator gives good signals, but in flat...
I have the following problem:
in one of my EAs, I want to change the lookback period of an indicator, depending on market conditions.
should do the trick.
However, I constantly run into "out of memory" errors...
I am searching for an ADX Indicator for Metatrader 5 wich give me an alert with popup when +DI and -DI are crossing each other. I didnt found anything. Can anybody help me?
Sorry for my English. I hope everyone understand what I mean.
Dear Forum , with my Indicator Im evaluating tick data to paint some graphical objects in a subwindow. the objects doesnt have any releation to the time information of the x-achsis of my chart. Therefore I did not connect the objects to any timeseries like the way would be implementing an indicator...
I'm making an indicator where I need open close high low of each bar.
the problem is that open[i] == close[i] == high[i] == low[i] so if I need to compute Log(close[i]/open[i]); I always get zero!!
why is that happening?
I've used the debugger on mt5 built in indicators (ex ATR)...
The OnCalculate() function is called when a new tick is received.
Is it possible to call it at a specific timing?
int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time, const double...