Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 733

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
Please excuse me, I am 0 in MKL programming, please indicate how this is done in practice?
Insert that function in the expert, set
We have the result
I can attachthe moving averege indicator to the indicatorAccumulative Swing Index (ASI)? I have ma constantly attached to the main chart, but I need to attach it to the ASI indicator window.
You just drag the MA from the "Navigator" window to the ASI indicator window and select in the parameters to apply to
I haven't dealt seriously with this topic yet, but I would like to find out if there is any alternative? For example, what is the equivalent of iBarShift that will work in indicators for higher TFs in the Expert Advisor's testing mode than the TF of the tested Expert Advisor?
Recently I found out that starting from version 5xx the indicators that have reference to higher timeframes are not supported in the Tester. Checked it, iBarShift returns 0 for higher TF.
I haven't dealt seriously with this topic yet, but I would like to find out if there is any alternative? For example, what is the equivalent of iBarShift that will work in indicators for higher TFs in the Expert Advisor's testing mode than the TF of the tested Expert Advisor?
all supports it,
Only in the new build you need to watch out for arrays, they are capricious
all supports it,
only in the new build you need to watch out for arrays, they are finicky
Below is a screenshot from Tester in Visualization mode:
At the moment the Indicator is attached to the chart Shift_2 shows ~65 000, then 7,6,5...0.
Any ideas about this?
The moment the Indicator is attached to the chart Shift_2 shows ~65,000, then 7,6,5..0.
Any ideas about this?
The developers have made it impossible to address to high TF in visualization mode through iBarShift() (or maybe not only through iBarShift()), anyway it works in the tester, data are correct for Expert Advisors (again according to the developers), but there is no sense to attach such indicator to the visualization chart during tester operation, data will not be correct.
Have you disabled the operation only in visualization mode? Will it work without visualization in the tester, have you checked it?
In any case, the first question becomes relevant again -Thanks for the info!
Is it possible to write a user alternative to iBarShift (etc.), i.e. function that would perform similar calculations based on bars opened in chart visualization mode for higher TF? Has anyone come across iBarShift code written in mql?
The person above said that everything works, but as you can see from the example this is not the case.
Have you only disabled operation in visualisation mode? Without visualisation in the tester will work, have you not checked?
In any case, the first question becomes relevant again -Thanks for the info!
Is it possible to write a user alternative to iBarShift (etc.), i.e. function that would perform similar calculations based on bars opened in chart visualization mode for higher TF? Has anyone encountered iBarShift code written in mql?
You misunderstood the person above.
Your code works correctly in the EA. The matter is that when addressing to a higher TF, the indicator receives data of a closed real bar while this bar in the tester is not closed yet. And when accessing from the EA OHLC are modelled.
You misunderstood the man above.
Your code works correctly in the EA. The point is that the indicator receives data of already closed real bar while the same bar in the tester is not closed yet. And when accessing from the EA OHLC are modelled.