Programming questions - back testing capabilities and using 22000 sma

 

I am fairly new to MQL4 programming. I have a strategy I am considering to converting to MQL4. I have 2 questions:


1) How far back does the back testing capabilities go? I would like to test the strategy for several years to ensure the program is robust through many different market conditions.


2) The strategy involves a long SMA with an input value that could reach as high as 22,000 bars. When I plug this in, the EA seems to ignore the value, and the chart won't show this SMA on it either. The highest I can get on the chart is around 2,000 bars. Is there a way to get around this?


I appreciate your help.

 

22,000 bars.... hmmm....


On 1m that is 15.7 days

On 1hr that is 3.5 years

On Daily that goes back to 1924...


Good luck.


As for getting more bars on a chart, Set Tools -- Options -- Chart Tab --- Max Bars In Chart to, say, 1,000,000


Close MT4.


Reopen MT4 and your charts will be capable of downloading as much data as there is available from your Dealer.


Open a chart and hold down the "PageUp" key until you get all there is to get.


Point your mouse at the Chart tab to see how many bars are in the chart.

Reason: