Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 3475
- Rating:
- Published:
- 2017.08.10 12:45
- Updated:
- 2018.06.27 13:59
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The CPositionInfo, CTrade and CSymbolInfo classes are used in the code.
Version 1: N Candles
Version 2: N Candles v2
New in version 3:
Inputs:
- N identical candles included in the desired series
- Lot
- Take Profit (pips)
- Stop Loss (pips)
- Trailing Stop ("0" -> not used)
- Trailing Step (used if trailing stop >0)
- Order magic
- Slippage
Example of search with N=3:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/18575
![EveningStarStatistics](https://c.mql5.com/i/code/indicator.png)
The indicator shows the statistics of the "Evening Star" pattern.
![KiS_max_min_Avg](https://c.mql5.com/i/code/indicator.png)
A redrawing channel with a colored background.
![Intersection 2 iMA](https://c.mql5.com/i/code/expert.png)
A simple system based on the crossover of two MAs.
![IStochastic_Trading](https://c.mql5.com/i/code/expert.png)
The Expert Advisor trades based on signals generated by Stochastic Oscillator. Averaging. A limited number of positions. Trailing.