[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 122

 
eddy:
Alsu ,what's wrong?
а?
 
Cod:
Is it possible to overlay the MA from the regular hourly chart on the Renko chart generated by the EA (e.g. https://www.mql5.com/en/code/9358)? Is it possible in principle? Is it possible to make such an indicator for money?
The points of time corresponding to the beginnings of RENCO bars do not generally coincide with the beginnings of hourly bars. Therefore, when we impose it, we will need to synchronize with the nearest bar time - but even then we will not obtain the full positioning accuracy. The task is not too difficult, but requires a lot of fiddling.
 
alsu: (page 118)
it's written in such a way that it's better not to put it in your terminal)
what's wrong with it?)
 
eddy:
what's wrong with it?)

You can break your eyes))) jokingly.

Try to reprint the i-index value and look at it when the rendering stops. It will be a starting point for searching for a bug.

P.S. Do the Rel[], Rhi[] and Rlo[] arrays have to be filled out completely at every tick?

 
alsu:
The time moments corresponding to the start of RENCO bars do not generally coincide with the start of hourly bars. Therefore, when we overlay, it will be necessary to synchronize by the nearest bar time - but even then we will not get full positioning accuracy. The task is not too difficult, but requires a lot of fiddling.
Wait. There is an hourly chart. It has the MA. What prevents drawing its location every time a Renko bar appears on the Renko chart exactly where it is drawn on the hourly chart? Is it really a serious programming problem? Look - we determine that there is a new Renco bar - read the native iMA function and draw it in the same place..... What's the difficulty? (well, apart from the fact that I can't program?) :)
 
Cod:
Wait. There is an hourly chart. There is a MA on it. What prevents us from drawing its location every time a Renko bar appears, on the Renko chart exactly where it is drawn on the hourly chart? Is it really a serious programming problem? Look - we determine that there is a new Renco bar - read the native iMA function and draw it at the same place..... What's the difficulty? (well, apart from the fact that I can't program?) :)

is that the point drawn on the H1 chart has 2 coordinates - price and time, if we bluntly transfer it to the Renko chart, we get a price match, but not a time match. This is the first inaccuracy. The second problem is that several RENCO bars may appear within an hour, or vice versa, one RENCO bar may hold for several hours: in the first case we draw extra points, and in the second case we miss MA values from H1.

There's not much complexity, I repeat. You just have to program carefully and foresee all situations.

 

alsu, fill in the whole how?:)

and why print i?) i equals Bars-counted+2. how can it be negative?

 
alsu:

1. several RENCO bars may appear during an hour - we draw extra points

2. one RENCO is held for several hours: we skip MA values from H1.

A new RENko bar appears, we calculate where the MA is at that time on the hourly chart (is it somewhere?), and draw it at this point. When a new Renco Bar appears, we again calculate where the MA is at that moment on the hourly chart (where is it?) and again it is drawn... We do not miss anything and do not draw anything unnecessary... Ok, I must be very stupid, or there is a purely technical specific bug that I can't understand, due to my ignorance as a programmer. I thought I just wrote a simple indicator with the simplest iMA function, prescribed timeframe of 60 and attached such an indicator to Renko... But it somehow draws some kind of pornography, man, the worst thing is that I don't understand why, stupid fool.

Ok, thanks anyway, I figured it's possible and I have to go to a job... or something... :)

 

Question about "ORDER ACCOUNTING"

When a Pending Order is placed -> Total Numbers of Orders 1

When the pending order is executed -> total orders are 2 or 1????.

Is a market order added or does the pending order become a market order or what happens there in general?

 
robot:

Question about "ORDER ACCOUNTING"

When a Pending Order is placed -> Total Numbers of Orders 1

When the pending order is executed -> total orders are 2 or 1????.

Is a market order added or a pending order becomes a market order or what happens there in general?

When the pending order triggers, it becomes a market order.

Total number of orders = 1.