you can not convert mq4 to mq5 for renko chart generators,
mt5 renko is very different from mt4, you will be unable to convert it, don't waste your time with that
moreover, renko is not as good as it looks, it filters out time, but that's about it, time is important so you lose a lot of information
those offline charts for MT4 are generated from an incomplete tick history, or if they are generated forward, they will look different on each broker (due to different injection of tick data at highly volatility events) ... and you can easily lose them, they can be rewritten by the generator from a "simplified" history of 1-minute candles
Best posts made by miro1360
-
RE: Can I build my own Renko Charts?posted in Questions & Answers
-
RE: need advice on using variables to select buffers of a custom indicator...posted in Questions & Answers
this is code to round the number on a specific decimal places (set with decimals, now it is set on 2 places),
use it as is, just change the variables (curA0, ...) ... it can be omitted if you don't need rounding -
RE: getting the candle id for previous day high and lowposted in Questions & Answers
But there is no option to get Candle ID
anyway, you can always do a loop

-
RE: How Do I Create An EA With This Type of Custom Indicator?posted in Questions & Answers
your EA is right, but the indicator repaints on many past candles (indicator is useless for any EA)
How to check if an indicator repaints?
you can trace the values of indicator (in the main or a separate window) using trendlines
https://fxdreema.com/shared/5vQ8dwt0c
(Trace block can be used for indicator in the main window)
purple trendlines are the real values from the current and first candle
you can clearly see how the indicator repainted itself over time (where the values were at the beginning), crazy .... this youtube guy has a good reaction for the indicator
https://www.youtube.com/watch?v=kyPzl8M4yCE

see, how the same trendline is stable on RSI

-
RE: How can I get the same blue/red arrows for manual trades?posted in Questions & Answers
Something like this ... add all Draw Arrow blocks for each parameter of trade, include also a trendline ...
but not exactly the same arrows will be created (this I think is caused directly by metatrader) ... you can use wingdings codes
https://docs.mql4.com/constants/objectconstants/wingdings
here are the arrow codes: https://docs.mql4.com/constants/objectconstants/arrows

Try it

-
RE: Draw Lineposted in Questions & Answers
@l-andorrΓ
Don't worry, I am still here and I watch people to learn, to come, to try and give up and leave
-
RE: TWO DIGITS PAIRSposted in Questions & Answers
and why you dont set right "spread" values in tester for different digit brokers?
if you need 10pips spread for 3 digits broker in XAGUSD, set spread 100 (100points=10pips)
if you need 10pips spread for 2 digits broker in XAGUSD, set spread 10 (10points=10pips)
... I dont think yet that here is problem with EA ...

-
RE: Is it possible to have a dropdown list for inputs?posted in Questions & Answers
it were to easy for you if I made search in my replies instead of your work?

try this:
input ENUM_TIMEFRAMES timeframe = PERIOD_CURRENT -
RE: "Write to file" blockposted in Questions & Answers
the location for MT5 tester is:
C:\Users\username\AppData\Roaming\MetaQuotes\Tester\subfolder\Agent-xxx\MQL5\Files
crazy path ... -
RE: how to draw line in the futureposted in Questions & Answers
in block Draw Line use Shift Forward option and here you can give how much time it should shift forward from Candle ID (0) ... when you use 1 hour chart, use number 8 when you need shift it 8 candles forward (1 hour == 1 candle in 1H chart) ...

-
RE: EA based on custom indicator not runningposted in Questions & Answers
as I have not found bugs in fxdreema integrated pivots, here is solution for you how to calculate pivots based on formula which you posted in post above ...
calculate it like this:
https://fxdreema.com/shared/mJqHifx5ddont forget define variables:

and make sure that calculation of pivots is made first (first block number of pivot calculation is 1 or lowest, as in example project) ...
pivots are than stored in variables pp, r1-4, s1-4 and you can work with these variables in your next blocks, like open prices etc ....
