Hi,
I slightly modified the iFractal indicator and I called the new one MaxMin. It seems to work properly but some problems arrive when I try to use it in an EA.
I call it with the function
and I get the data from it with this code
the first time the EA get correctly the data from the indicator but then, when from EA I try to get other data, it stops to work.
I tried to use iFractal in place of iCustom and my EA code works well. So I thought that the problem is in the indicator code but if I copy and paste the iFractal code in the MinMax file and then I use iFractal by iCustom I get the same behaviour. It doesn't work properly!!! It works only the first time the EA call the indicator Data.
Can someone help me? It seams an iCustom() bug
I attached all the code...
I think this is not a iCustom bug.
if((m_handle_MinMaxM1=iCustom(NULL, PERIOD_M1, "MyIndicators\\MaxMin.ex5", MinMax_nBar) )==INVALID_HANDLE) { printf("Error creating MinMax indicator"); return(false); } //-- what is MinMax_nBar? This is supposed to be part of input parameter of a custom indicator
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I slightly modified the iFractal indicator and I called the new one MaxMin. It seems to work properly but some problems arrive when I try to use it in an EA.
I call it with the function
and I get the data from it with this code
the first time the EA get correctly the data from the indicator but then, when from EA I try to get other data, it stops to work.
I tried to use iFractal in place of iCustom and my EA code works well. So I thought that the problem is in the indicator code but if I copy and paste the iFractal code in the MinMax file and then I use iFractal by iCustom I get the same behaviour. It doesn't work properly!!! It works only the first time the EA call the indicator Data.
Can someone help me? It seams an iCustom() bug
I attached all the code...