These EAs work perfect as described-
Download all the files here in comments and away you go , enjoy
Files:
ZZ_SELL_Close0.mq5
251 kb
ZZ_BUY_Closes.mq5
251 kb
This is a test code you can use in strategy tester-
- Download an auto trendline line indicator
- attach to any chart and save as a template
- run test TL in strategy tester , pause it and add template with the auto trendline
- a trade is opened every bar but you can see buy trades are closed when price touches upper bar or closes below lower.
Files:
Test_TL.mq5
405 kb

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
Close on Trendline Touch:
Closes trades when bar touches trendline
Author: Paul Conrad Carlson