Expert Advisors: Exp_CandleStop_Trailing

 

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

Fig.1 The Exp_CandleStop_Trailing Expert Advisor's working chart

Author: Nikolay Kositsin

 

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."

My wish: do this for each of your Expert Advisors.

 

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

 
Erm955:

Check it out, it's coming out:

( Indicator is compiled and placed in the right folder )

Why should it work in the tester at all? Especially without visualisation? Are you going to open transactions in the tester by hand to control their work?
 
GODZILLA:
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?
Frankly speaking, I don't understand anything! With such a brief description of the Expert Advisor, I should instantly understand its working principle. Just run it and that's all! Well, it doesn't work in the tester and that's fine! I'm not going to figure it out.
 
On what basis is it being opened?
 

For some reason it stopped working. The indicator is added, I traced the code to the modification of the order, everything works normally, but stop loss does not move....

 
Doesn't work on Alpari demo, Stop Level is zero there
 
I commented out the Stop Level check and everything worked.
 

Expert Advisor adds an indicator at each frame switch!

 
Axe job.
This website uses cookies. Learn more about our Cookies Policy.