"fx" is indicator buffer number 0. Use iCustom(..., 0,0). Of course, generally not a good ide, since the indicator fills and refills fx[0] by the ever changing Close[0] while the bar is developing. Or maybe that's just what you want....
Got it.
Thanks lot!
this is exactly what i was looking for..

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
Hi,
This might be a very simple (or very tough?) question for the experts in this board.
Here is the code from a indicator:
ObjectCreate("pr"+sName,22,0,Time[p],fx[p]);
ObjectSet("pr"+sName,14,159);
ObjectSet("pr"+sName,OBJPROP_TIME1,Time[p]);
ObjectSet("pr"+sName,OBJPROP_PRICE1,fx[p]);
Question is: how to get the value fx[0] at time[0] in the EA?
I don't see any coding samples in the EAs I have.
Thanks in advance
Jimmy