I want to add, that in the chart window the indicator is attached when I open the context menu and look for indicators.
heyday:
I want to add, that in the chart window the indicator is attached when I open the context menu and look for indicators.
I want to add, that in the chart window the indicator is attached when I open the context menu and look for indicators.
I think, you are missing the buffer and the bar:
hGNSD1=iCustom(cSymbolName,PERIOD_D1,"GetNextStopDay",timeframe);
hGNSD1=iCustom(cSymbolName,PERIOD_D1,"GetNextStopDay",timeframe, 0, 0);
Claudio Gerardo Hernandez Nunez:
This is mql5 code. There is no buffer and bar on iCustom.
I think, you are missing the buffer and the bar:
separate the indicator to have no input and call it from your ea
Tonight I had the breakthrough.
But I had no time to come earlier.
The problem is, never try to open a file with the same name in two modules.
logfile=FileOpen("log.txt",FILE_WRITE|FILE_TXT|FILE_ANSI);
After that the indicator just stopped working.
Thanks alll.
This issuse is solved.
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
I am just starting to build my first EA. I have written an easy indicator, which is working perfect when attaching to a chart in Meta Trader 5. Also when I debug the indicator all is very fine. As a result from my indicator I can see the arrows plotted to the chart. But when I try to start the indicator from my EA nothing happens. I can't find the error. Please have a look at the OnInit() function. What I intend to do is open "EURUSD" Chart if not already open, bring it top of all other windows (do I need to do this?). And then attach the indicator to that chart. Returncodes are all fine. No error. But indicator is doing nothing.