Median-and-Turbo-Renko-indicator-bundle icon indicating copy to clipboard operation
Median-and-Turbo-Renko-indicator-bundle copied to clipboard

How to implement iBarShift function on Renko Charts ?

Open tzahimaimon opened this issue 3 years ago • 4 comments

Hi Arthur I need to implement iBarShift function on the Renko chart, The function return the number of the bar by specified date as you can read on the help section of MT5

how can I acheive this goal with the Renko Bundle ?

tzahimaimon avatar Aug 23 '22 16:08 tzahimaimon

Hi, Do you need this for an EA or for an indicator?

9nix6 avatar Aug 23 '22 17:08 9nix6

for Both but mainly for EA

tzahimaimon avatar Aug 23 '22 17:08 tzahimaimon

I have something similar for use in indicators conversion, you can modify the idea in the code for your personal need. Please see the MedianRenkoIndicator.mqh file.

These are the functions:

bool     CanvasXYToTimePrice(...);
bool     TimeToCustomChartTime(...);
bool     CustomChartTimeToCanvasTime(...);

If this is not helpful to you, please send a bit of context explaining what you are trying to do. I'll try to help.

9nix6 avatar Aug 23 '22 18:08 9nix6

ok I will look at those Thank you

tzahimaimon avatar Aug 23 '22 18:08 tzahimaimon