dmdamiyo
dmdamiyo
Friends 1
dmdamiyo
Added topic close[] vs iClose
I have a bar number that points to some specific time in history bar_number I'm running the chart in H1. Could you help me understand why: close[bar_number] returns a correct value iClose (_Symbol, PERIOD_H1, bar_number) - returns always 0.0. The
dmdamiyo
Added topic Should I ALWAYS initialize indicator buffers?
Hello, I saw it mentioned on the forum that we should initialize all buffers. However, when I look at examples (like CCI or Envelopes) I don't see any initialization happening. Being precise, should I have the following snippet in my every indicator
dmdamiyo
Added topic iBarShift() returns indexes in reverse
Hi, is there a way to make iBarShift to return indexes from left to right? I like to work with Arrays where 0 means the oldest bar, butiBarShift return it the other way round. Test case in OnCalculate:    for ( int
dmdamiyo
Added topic Standard library and Custom indicators
Hello all, A quick question. I'm developing a custom indicator based on multiple time frames. It uses regular indicators (like MA, CCI, Envelopes etc.). Should I use Standard Library for that? (like: 
dmdamiyo
Added topic Trying to understand iBarShift
Hello all, I have trouble understanding the basic concept of bar indexes. From what I see, bar with index 0 is the oldest one on the chart. The current one has index: rates_total - 1  I was trying to use iBarShift, but it seems to give me
dmdamiyo
Added topic CopyBuffer from another timeframe
Hi all, I'm new to MQL5 and I have a question about getting indicator data from another timeframe. Let's say I want to draw H1 Envelopes no matter what interval is displayed (M5, M15, M30 etc.). It means that for example on M15 the lines of the
dmdamiyo
Added topic Storing data on open orders or some events that happened
Hello, I'd like to store some information about open orders, closed orders, their relation to each other. Mostly for money management but also it's a part of my strategy. But it seems that in MQL5 it's not an easy thing to do. Normally I would go for
dmdamiyo
Added topic Testing EA and multitimeframe indicators
Hello, I'm considering moving from MQL4 to MQL5 for one main reason - I use 4 indicators that work on different timeframes, For example I have "ind1" that shows an arrow pointing up when RSI is lower than 20 on H4 interval. "ind2" checks "ind1" and
dmdamiyo
Added topic Problem moving my indicator from MQL4
Hello, I have a problem with my indicator that I'm rewriting in MQL5. I have 3 buffers with data, all are meant to display the same symbol (but in different color). The indicator is a separate window, and in MQL4 I was displaying all symbols at 0.0
dmdamiyo
Added topic Value of Bars while scrolling back
Hello, could you explain why as I scroll back in the history, value of Bars increases? From the description I imagine that it would contain all Bars I can go back to. But when I load my indicator, I can see around 250 bars on my screen, Bars variable
dmdamiyo
Added topic Passing previous calculations
Hello, In the onCalculate method I often want to see for example the value of a moving average 10 bars back. To do that I have a loop that I run for every tick ! for ( int n= 0 ; n< 10 ; n++)         {
dmdamiyo
Added topic A problem with iBarShift
I want to get RSI value from H1 when I am on other intervals like M15.  I have a following snippet of code in onCalculate method:   int counted_bars= IndicatorCounted (); // Number of counted bars int barNumber= Bars -counted_bars- 1 ;
dmdamiyo
Added topic Indicator correctly draws only on lower intervals and live data
Hi, I wanted to develop an indicator that when RSI is below 30 on H1 interval I can see blue arrows on other intervals - ex. M5, M15, H1, even H4. But I have a problem - on live data it draws correctly - but when I attach my idicator to the window it
dmdamiyo
Added topic Custom indicator from a chosen timeframe
Hi, This is my first post, so welcome everyone!  I'm trying to develop a set of custom indicators based on another custom indicator. The custom indicator I want to use is similar to RSI. What I want to do is to check if RSI is below 30 on H1
dmdamiyo
Registered at MQL5.community