Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
The provided Indikator(with source code) draw a channel on the Chart. The EA should open a position based on the trend when it leaves the canel (closed candle). A crossover of the standard (MQL5) Stochastic indicator should serve as confirmation.
-> trend outside + crossover = opening of a position.
Should the trend continue and no reversal occurs, further positions can be opened via Martingale. However, only 1 cycle is possible at a time. This means that if the canal is crossed for a second time, none other cycle is opened because an existing one already prevails.
-> closed candle outside the channel (opening of a position) -> trend jumps back into the channel -> trend closes again outside the channel (no new position, as a cycle already exists)
Crossover stochasics - different time frame
The time frame of the stochastic indicator can be set in the "Settings" area. Here is an example of a Trade Setup:
Metatrader Terminal timeframe: 15 min
Stochastik indikator timeframe: 1 h
This means that the channel indicator gets the data from the 15 min time frame and forms the channel accordingly. If a different time frame is selected for the stochastic indicator (15min, 30min, 1 / 4h ..) then the EA opens a position / cycle, when the trend is out of the channel and the stochastic indicator has a crossover in the 1H time frame.
The EA have to be compatible in every therm concerning the backtest
A pictrure will be provided (pm chat) for better illustration of the projcect.