Join our fan page
- Views:
- 7653
- Rating:
- Published:
- 2015.12.10 13:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Elementary trailing stop able to distinguish its "own" orders among others by comment and/or Magic number. It also distinguishes the financial instrument that needs to be trailed.
Hopefully it will be useful for someone.
The arguments passed to the function:
- symbol — the symbol of the instrument that needs to be trailed (if empty is passed, current symbol is used).
- comment — the comment to the order (as an additional key for filtering among orders).
- magic — the magic number of the order (as a tool for filtering among orders).
- trail_p — the number of points to trail.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/13744
![PinBar](https://c.mql5.com/i/code/indicator.png)
The indicator marks the pin bars on the chart based on the parameters set.
![Forex Fraus (for M1)](https://c.mql5.com/i/code/expert.png)
The Expert Advisor is based on the Williams Percent Range indicator. It sells in the overbought zone and buys in the oversold zone. Trailing Stop and operation timer are attached to it.
![OrderTimeAlert](https://c.mql5.com/i/code/expert.png)
The Expert Advisor watches the market orders and generates a sound signal after a predefined time from the moment of order opening.
![Detection of the divergences](https://c.mql5.com/i/code/indicator.png)
The lookup and display of the divergences of different classes based on the data of the base indicator.