Hello
I'm looking for the proper way to call a .ex4 indicator with no source code in my Expert advisor. I'm having issues with the inputs and line index
One way I found was to save a preset file of the indicator, which will look something like this(depending on the indicator)
FrBarsLeft=10
FrBarsRight=2
InfoPanel=true
s1=----------------------------
AlertOn=false
EmailOn=false
PushOn=false
Then you can change the variable values in the iCustom call....
double customval(int buffer,int bar){ static string indicator_name="market/myindicator"; return iCustom(_Symbol,_Period,indicator_name,10,2,false,"",false,false,false,buffer,bar); }
One way I found was to save a preset file of the indicator, which will look something like this(depending on the indicator)
Then you can change the variable values in the iCustom call....
And to determine the buffer indexes, I would save multiple iCustom() calls (one for each buffer) to variables and then Print() text and corresponding variable values to the Experts tab.
I can't even tell you how many times I did this while learning to code back in the day.
[I'm assuming that MQL4 still doesn't require handles nor CopyBuffer()].
And to determine the buffer indexes, I would save multiple iCustom() calls (one for each buffer) to variables and then Print() text and corresponding variable values to the Experts tab.
I can't even tell you how many times I did this while learning to code back in the day.
[I'm assuming that MQL4 still doesn't require handles nor CopyBuffer()].
I found the problem was working out which each buffer value actually meant.
All I could do was compare visually the values with whatever the indicator was showing on the chart.
I found the problem was working out which each buffer value actually meant.
All I could do was compare visually the values with whatever the indicator was showing on the chart.
Generally, an indicator's buffer colors are listed in the Colors tab of of the indicator windows upon attachment to a chart, and listed there as buffer index 0, 1, 2, etc. from top to bottom. Presumably, you're tracing the value to the color, and the color to its position on the Colors tab. I recall having done that in the past as well.
Of course, hidden buffers and/or dedicated color only buffers can hinder that.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I'm looking for the proper way to call a .ex4 indicator with no source code in my Expert advisor. I'm having issues with the inputs and line index