Quote: "In this Expert Advisor we have added the ability to display the indicator used in the Expert Advisor on the current chart directly from the Expert Advisor without the need to manually add this indicator to the chart."
Check, it gives:
( Indicator is compiled and placed in the right folder)
2012.12.29 08:12:15 Core 1 log file "C:\Program Files\MetaTrader 5\Tester\Agent-127.0.0.1-3000\logs\20121229.log" written
2012.12.29 08:12:15 Core 1 233 Mb memory used
2012.12.29 08:12:15 Core 1 EURJPY,H1: 12380 ticks (6190 bars) generated within 32 ms (total bars in history 12404, total time 94 ms)
2012.12.29 08:12:15 Core 1 OnTester result 0
2012.12.29 08:12:15 Core 1 final balance 10000.00
2012.12.29 08:12:15 Core 1 2012.01.01 00:00:00 Failed to add CandleStop indicator to chart
2012.12.29 08:12:15 Core 1 Deviation=10
2012.12.29 08:12:15 Core 1 DnTrailPeriods=5
2012.12.29 08:12:15 Core 1 UpTrailPeriods=5
2012.12.29 08:12:15 Core 1 EURJPY,H1: testing of Experts\Exp_CandleStop_Trailing.ex5 from 2012.01.01 00:00 to 2013.01.01 00:00 started with inputs:
2012.12.29 08:12:15 Core 1 EURJPY,H1 (MetaQuotes-Demo): OHLC bar states generating. OnTick executed on the bar begin only
Why on earth would it even work in a tester? Especially without visualisation? Are you going to open deals in the tester by hand to control the work?
Expert Advisor adds an indicator at each frame switch!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Exp_CandleStop_Trailing:
The Expert Advisor moves Stop Loss of the open position along the border of the channel built using CandleStop indicator
Fig.1 The Exp_CandleStop_Trailing Expert Advisor's working chart
Author: Nikolay Kositsin