You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thank you Admin for merging the two posts.
I made changes to the source code, I wonders to open new thread or to delete the current and open new one.
Ok the next time I will post the updates to the same thread.
Thank you again
if you mean the 10 bars from the right then change it to
bar [0] is the oldest
But then you will also have to paint the bar that slides out of the 10 bars rangeAlthough it works, but I am not satisfied. It is against my logic.
I there a way to make plots from right to left (New bars to old)
Thanks
Although it works, but I am not satisfied. It is against my logic.
I there a way to make plots from right to left (New bars to old)
Thanks
yes use ArraySetAsSeries - Array Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
otherwise if i is the index from left to right
then i_mirror is the index from right to left
i_mirror = rates_total-1-i
yes use ArraySetAsSeries - Array Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
otherwise if i is the index from left to right
then i_mirror is the index from right to left
i_mirror = rates_total-1-i
Ok that's fine.
But what makes some logical confusion, other mql5 functions such as iOpen(), iTime() .. ets, they consider bar0 is the newest created bar, from the right
Thank you again
Ok that's fine.
But what makes some logical confusion, other mql5 functions such as iOpen(), iTime() .. ets, they consider bar0 is the newest created bar, from the right
Thank you again
Yeah , if you are working an indicator on mt5 avoid those . Prefer the on calculate arrays.
Although it works, but I am not satisfied. It is against my logic.
I there a way to make plots from right to left (New bars to old)
Thanks
since you are still figuring all this out, it might help you to look at some code examples in the codebase, and here I make two versions of a moving average (each code working the same but one of them with buffers set to series so that the buffers are indexed as in MQL4)
Code Base
Portable Moving Average
Conor Mcnamara, 2025.02.03 14:35
Calculate a moving average in one function call. Code that can easily be transported between different projects.since you are still figuring all this out, it might help you to look at some code examples in the codebase, and here I make two versions of a moving average (each code working the same but one of them with buffers set to series so that the buffers are indexed as in MQL4)
Thank you for your educational indicator code. it is the slope indicator in MQL4
I will try it