Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement iBarShift function on Renko Charts ? #11

Open
tzahimaimon opened this issue Aug 23, 2022 · 4 comments
Open

How to implement iBarShift function on Renko Charts ? #11

tzahimaimon opened this issue Aug 23, 2022 · 4 comments

Comments

@tzahimaimon
Copy link

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 ?

@9nix6
Copy link
Owner

9nix6 commented Aug 23, 2022

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

@tzahimaimon
Copy link
Author

for Both but mainly for EA

@9nix6
Copy link
Owner

9nix6 commented Aug 23, 2022

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.

@tzahimaimon
Copy link
Author

ok I will look at those
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants