Forum

Roc indicator + x

Hello, in mql4 it's not a problem, but maybe some has a solution in mql5 for the following topic: a standard built in ROC indicator (line) should get two kinds of arrows (green and yellow) placed on those ROC line values, when an external (custom) indicator touches a certain value. So, if the

Additional Buffer

Hello, coming from MT4 I'm trying to implement some code in mql5. A) an additional buffer is to be added to an already existing indicator with 3 buffers, to transmit a (buy, sell) condition to an EA. Now in MT4 it works, when changing #property indicator_buffers from 3 to 4, then adding to

Indicator integrate

Hello, I'd like to integrate a custom indicator into an existing MT5 indicator (being used in MT4) , it should show an arrow if a certain condition from the (custom) indicator is true. I set up : #property indicator_type DRAW_ARROW int Custom_handle; double CustomBuffer[]; and in the OnInit() part

EA only after number of ticks

is there a code to execute (especially test) an EA at certain (user defined) intervals of incomings ticks instead of each tick (with OnTick)? for hints, thanks in advance

execution by intervals

does anyone have the idea for a (complete)code part, which makes sure, an EA (alternatively) an indicator is executed only at certain time intervals, let's say every 30 seconds etc.? for eventual hints thanks a lot in advance

getting previous global variable values

hello, with MT4 the issue is clear by addressing iCustom (.... [1]) Bar 1 instead of the latest Bar 0 for example. How would one get - previous - values when an MT 5 EA is using a code like, let's say GlobalVariableGet("Indicator_EURUSD_5_CURR"); this code shows the latest value. But the Bar [1]

vertical line

hello, https://www.mql5.com/en/docs/objects/objectcreate a vertical line doesn't appear in my chart window (Bar 0 is needed) of a custom indicator when this function is defined (definition part) bool ObjectCreate( long chart_id, string name, ENUM_OBJECT type

value in Comment function

an Indicator using buffers and working fine. now, the Comment(buffer[0]) function (after OnCalculate) - and after a regular expression using that buffer(properly) is showing a value which isn't the indicator value and static. It works in MT 4 but not in MT5. for any hints thanks in advance

iCustom adressing

Hello to the expers, I want to see/check custom indicator values in an EA. This variation on built in indicators works fine: OnInit part: MA_handle=iMA(NULL,0,21,0,MODE_EMA,PRICE_CLOSE); OnTick Part: CopyBuffer(MA_handle,0,0,100,MA); ArraySetAsSeries(MA,true); Comment(MA[0]); the Comment

how the get custom indicator data to EA

hello, I'm just going step by step through an introducaton by a good russian expert how to build an EA. Now, I'm used to MT4 only. How do I get the values of a custom indicator(let's say Bar 0) --- in an EA? (and an indicator displayed) Since it's sunday and no real time data at the moment I put int