Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Elementary trailing stop - expert for MetaTrader 4

Views:
7508
Rating:
(13)
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 PinBar

The indicator marks the pin bars on the chart based on the parameters set.

Forex Fraus (for M1) Forex Fraus (for M1)

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 OrderTimeAlert

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 Detection of the divergences

The lookup and display of the divergences of different classes based on the data of the base indicator.