Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 4559
- Rating:
- Published:
- 2018.04.18 17:18
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The Stop Loss value of an open position changes when the following conditions are met:
- The value of Parabolic SAR at index 1 is greater/less than the open price (for buy and sell trades respectively);
- The value of Parabolic SAR at index 1 is less/greater than the Low/High of bar with index 1 (for buy and sell trades respectively);
- Parabolic SAR on index 1 is formed after the position open time.
The inputs of the utility are:
- base_tf - the timeframe for the Parabolic SAR indicator to be used for trailing Stop Loss;
- SAR_step - price change step (the parameter of "Parabolic SAR", default is 0.1);
- maximum_step - maximum price change (the parameter of "Parabolic SAR", default is 0.11);
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20201

The Expert Advisor places pending Buy Stop and Sell Stop orders. Includes checks for the minimum distance of orders in points (SYMBOL_TRADE_STOPS_LEVEL).

Trend detection based on the last three bars.

An arrow indicator, which compares the daily open price with the close price of an hour.

A colored histogram of the days of the week. Uses the drawing style DRAW_COLOR_HISTOGRAM.