Trouble pulling indi data via iCustom...
0-3 for arrow buffers and 4 for buysell buffer.
try :
Print("fvg " + iCustom(Symbol(), PERIOD_CURRENT, "FVG", lineCount, buffer_index ,shift));
Check iCustom documentation.
iCustom - Technical Indicators - MQL4 Reference
- docs.mql4.com
iCustom - Technical Indicators - MQL4 Reference
"linecount" can be omitted.
Hey gang. I've been struggling for a couple hours to figure out why iCustom in my EA isn't pulling data from an indicator I just coded up.
The indi is working properly on my charts, but within the EA it's only outputting a value of 0 no matter which buffer I try to access.
I've tried different Shift values in iCustom, no difference.
No errors reported from within the EA.
I've double checked iCustom by inserting parameters for another indicator, and those values print fine. For the sake of troubleshooting here's how I'm trying to access the indicator from within the EA:
Here's the code for the indicator, any insight would be much appreciated!