-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time post in the correct place. The moderators will likely move this thread there soon. - EAs have no eyes. They don't need the lines. If you want to see the indicator, put it on your chart.
- Fix your title; you can read any bar you want. Only if the indicator doesn't process older bars will you read EMPTY_VALUE. Fix the indicator.
Hi William,
Thanks for help to move this post to correct place as I seldom to post.
I would like to plot a graph to have a better visualisation for thinking of strategy as the indicator is from Market which I have no right to fix it. (As it will show the support and resistance lines on Bar0 only)
Thanks.

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
I could only read Bar0 value from indicator by using below code. How can I plot a graph while doing Back Test?
double value = iCustom(Symbol(), PERIOD_CURRENT, indiPath, 0, 0);
// tried to read Bar1 and old Bars but failed (i > 0 will be fail)
//double value = iCustom(Symbol(), PERIOD_CURRENT, indiPath, 0, i);Thanks.