How it works
A buy is performed if high of the previous bar is higher and low of the current bar is higher than low of the previous bar and several additional checks with prices and time. Four last bars participate in the analysis. The reverse situation is for a sell.
Part of the analysis performed on formed bars, the other part performed on forming bars. So testing can be performed only in every tick mode.
Fig. 1 - The performance of the Expert Advisor in the strategy tester's visual mode is displayed in the image.
Fig. 2 - Testing results at EURUSD H4 for the last month (09.2012).
Fig. 1. Deals in tester.
Fig. 2. The trading results of the Expert Advisor in the tester.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1136
The Expert Advisor with a basic trading system on the basis of the CCI indicator and several linear perceptrons regulating the work of the basic trading system.Change the color of the candles
The indicator that allows modifying color of the candles.