I have made a Custom Indicator which works. It displays on the Chart and everything
I am now wanting to use that in an Expert Advisor and the only value I get is 2147483647.
It has one parameter which I pass in and that is all. (Below is the code
What am I doing wrong??
Thanks in advance,
2147483647 is default EMPTY-VALUVE.
"What am I doing wrong??"
Perhaps if you show a bit more of what you ARE doing, it would help.
2147483647 = EMPTY_VALUE.
There is IndicatorEmptyValue function too. ;)
void SetIndexEmptyValue( int index, double value)
Sets drawing line empty value. Empty values are not drawn or shown in the DataWindow. By default, empty value is EMPTY_VALUE
Thanks for replying...
The Custom Indicator used to work and I have not changed it. But I am getting another
error that now might explain as to why this is happening.
The error I am getting is: " '106134': DataCenter connecting failed "
I get this error when ever I start the application. Although it says that the connection
fails everything else works.
This is a demo account? Could that have anything to do with it???
Thanks in advance.
Thanks for all the responses,
I thought of doing what you are suggesting Dave, but the problem I have is that
I sometimes dont get a correct value returned for hours!
Could it be that the Custom Indicator has a bug in it and it is not returning a
value in some instances and that is why when I query it from the Expert Advisor
it returns this Empty Value.
Or is it something else?
The problem I have with the theory I just mentioned is that the Custom Indicator
draws correctly on the screen!
Thanks in Advance,
Post the code so people can see what is happening.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.