newcoder: I have a custom indicator
Detailed explanation of iCustom - MQL4 forum
Thanks for your reply
I used icustom in many codes but buffer[i]=icustom( ,M5,...,i) does not give the value of buffer at the end of M5
Please advise
Certainly does. iCustom(NULL, PERIOD_M5, ... i) give the indicator's buffer[i] from the M5 chart.
iCustom(symbol,PERIOD_M5,indy_name,...,buffer_idx,i)
For i>0 you will get final indicator value for M5 bar i providing that the indicator doesn't recalculate its value for the last X candles (like for example ZigZag does).

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 am newbie and I have a custom indicator that I want to determine its value at the end of each period (e.g at the end of M1,M5....)
I need X= buffer value at the end of period
Please help