Please put your //comments on a different line so the code is not too wide to fit my screen
winterf3ll: For that I would like to loop I couldn't backtest my code
| Don't loop. Remember whatever you need. Return from start. Wait for the next tick. Process. The loop is in the terminal, not in your code. |
GumRai: Please put your //comments on a different line so the code is not too wide to fit my screen | Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling back and forth trying to read it. Edit the post with formatted code and you might get additional help. |
WHRoeder:
winterf3ll: For that I would like to loop I couldn't backtest my code | Don't loop. Remember whatever you need. Return from start. Wait for the next tick. Process. The loop is in the terminal, not in your code. |
GumRai: Please put your //comments on a different line so the code is not too wide to fit my screen | Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling back and forth trying to read it. Edit the post with formatted code and you might get additional help. |
Hi WHRoeder,I couldn' see the start() function on my EA code, is it a pre-defined function likewise OnTick ?
I've splitted the comments into diferent lines.

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
MT4 version 5.0 build 1035
I'm trying to write a function to identify a transient High or Low value in the current bar to place an order or close it using EA. For that I would like to loop until a certain number of consective pips to be achieved on reverse direction or a maximum delta is achieved.
I couldn't backtest my code because it's been traped in an infinite loop on refreshData() using Strategy Tester. It follows my code, I would appreciate any suggestions.