DOCH 45-16 EA Help Fixing

 

All,

This EA is suppose to buy whenever the price breaks a 45 day high and sell whenever it breaks a 45 day low, stoploss is set at 200 pips with .20 lots, max loss is 2% of 20K demo, exit is whenever price retraces back to either the 16 day high if you are short or the 16 day low if your long. Can anyone help it seems to only buy in strategy tester thank you. Put on daily chart any major pair.

bak

Files:
doch45-16.mq4  9 kb
doch45.mq4  4 kb
doch16.mq4  4 kb