But there is no option to get Candle ID
anyway, you can always do a loop

Best posts made by miro1360
-
RE: getting the candle id for previous day high and lowposted in Questions & Answers
-
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 ....
