the same EA does run in the strategy tester with another indicator using arrow buffers, so I don't understand at this point.
I'm thinking it might be closing the connection instantly as I don't enough enough RAM. I would appreciate it if someone else would see if it works on their machine. I'm attaching the indicator and the EA.
Files:
maEA.mq5
3 kb
MAwithArrows.mq5
5 kb
phade #:
I'm thinking it might be closing the connection instantly as I don't enough enough RAM. I would appreciate it if someone else would see if it works on their machine. I'm attaching the indicator and the EA.
I'm thinking it might be closing the connection instantly as I don't enough enough RAM. I would appreciate it if someone else would see if it works on their machine. I'm attaching the indicator and the EA.
I replied to your message in general. Check for error messages returned from ArrayResize().
Finally I fixed the issue and see the EA consistently working in the strategy tester. As you might have guessed, the problem was the indicator and not the EA.
I removed ArraySetAsSeries, and I copied rates_total into the copybuffer instead of [rates_total - prev_calculated]
Then I changed the main for loop to iterate from prev_calculated until rates_total
// Calculate the indicator values // (rates_total==prev_calculated) is 1 if it's true // (rates_total==prev_calculated) is 0 if it's false for (int i = prev_calculated - (rates_total==prev_calculated); i < rates_total; i++){ // code }

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 testing out iCustom with my own indicator which is a simple MA with arrow signals (long and short signals based on how the market price moves over the MA). This indicator is not to be used as an EA in live scenario as the indicator has no risk management features and it is not making exit signals. So this is purely for educational purposes. I don't know what's wrong, I followed Renés cool tutorial on making EA-from-indicator using iCustom. The EA should simply open one position at the long signal (up arrow), and open another position at the short signal (down arrow).
Here is my indicator called "MAwithArrows" which implements two arrow buffers at buffer position 1 and 2:
Now here is the EA:
I have the buffer numbers set correctly in the EA, I'm so confused why the strategy tester just doesn't do anything when I hit the "Start" button. It loads for a minute and then doesn't bring up the chart or any data. What could be wrong ?