The Expert Advisor opens a deal during a breakthrough (on candlestick closure) of the trend line, drawn between the peak of the Zig Zag and the two latest peaks for the Buy orders. For the Sell orders — mirrored.
For more details see here: http://strategy4you.ru/prostaya-strategiya-foreks/strategy-forex-na-mazi.html
Parameters:
| Parameter | Description |
|---|---|
| lot | Lot |
| stop_loss | Stop Loss |
| take_profit | Take Profit |
| noloss | Breakeven (disabled if set to 0) |
| noloss_pips | Level to set Breakeven |
| trall | Trailing Stop (disabled if set to 0) |
| trall_start | Profit level to set Trailing Stop |
| cycle_filter | Cyclicity filter |
| ma_filter | Filter by the МА |
| close_ma_cross | Closure by crossing the МА |
| friday_time | Trade ending time on Friday |
| friday_close_profit | Profit, less than which the deals will be closed on Friday (in points) |
| Indicators parameters | |
| zz_InpDepth | The ZigZag indicator parameters |
| zz_InpDeviation | |
| zz_InpBackstep | |
| ma_period | МА period |
| ma_method | МА method |
| ma_price | МА price |
| Other parameters | |
| magic | Magic number |
| CommentSize | Number of log lines at the top left corner of the window (0 - disable this function) |

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/14072
ConvertTicksFile
The converter of the tick files created with the Ticks collector into different data representation formats.
ZigZag Signal
Signal based on the ZigZag indicator.
ClusterBox - vertical cross-section of the market
Tick volume of the candlestick drawn as clusters.
Several Moving Average
Indicator with several Moving Averages.