Topic: EA out of array was automatically removed

Hi Popov,

With the new features of auto calculation of the maximum bar for each EA, some of my EAs that were profitable in the past (before the update) are not being automatically removed from the MT4 and not allowed to be use.

Kindly enable me to use my EA and remove the auto removal function so that I can still run those profitable EA.

Thanks

Re: EA out of array was automatically removed

...are not being automatically removed from the MT4 and not allowed to be use.

What do you mean?

Is the EA crashes?

3 (edited by hannahis 2015-05-31 16:43:48)

Re: EA out of array was automatically removed

Attached is the screen shot of from the MT4 Expert tab description.

EA 502 was removed.

Sorry, I mean that the EAs were automatically removed and not allowed to be used.

4 (edited by hannahis 2015-05-31 16:44:05)

Re: EA out of array was automatically removed

attached is the additional info with the list of MT4 chart, there were a number of "empty" charts without any EA, because previously there were EA but since the MT4 removed some of them, these charts are now blank without any EA running.

Re: EA out of array was automatically removed

Send me the strategy or the EA that crashes.

Re: EA out of array was automatically removed

What is the maximum Bar level you have set?  Is it 3000 Bars?

If it is 3000 Bars can you please raise it up beyond 10000(don't set any limit as in the past, whereby I can run my EAs without any limitation), since you have done your speed test for 10,000 and the result showed that the MT4 can calculate very fast for stable live trading.

Re: EA out of array was automatically removed

Do you have any particular reason to want 10000 bars?

You can easily change the limit for yourself.

Open the "User Files\MT4 Files\MQL\Forexsb.com\ActionTrade4.mqh" file and go to line 485.
Change the maxBars variable from 3000 to 10000.

int ActionTrade4::FindBarsCountNeeded()
  {
   int barStep=50;
   int maxBars=10000;

...

If you want to make the setting manual, you can make the following two changes:

1. Make the  Max_Data_Bars option visible in the Expert's options.

Change line 60 of file "User Files\MT4 Files\MQL\FSB_Expert_MT4.mq4 from int Max_Data_Bars=0; to:

extern int Max_Data_Bars=1000; // Maximum Data Bars

2. Disable the automatic calculation of the bars necessary.

Mark line 305 in the "int ActionTrade4::OnInit()" method in ActionTrade4.mqh as a comment.

   //Max_Data_Bars=FindBarsCountNeeded();

...

All these changes are same for the MT5 files.

8 (edited by hannahis 2015-06-01 16:55:35)

Re: EA out of array was automatically removed

Thanks Popov for providing alternative method to resolve this issue and I'm glad FSB is robust enough for cater to different users.

As I'm totally new to this kind of changes...I appreciate this step by step instruction.