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
BIG DOG - expert for MetaTrader 5
- Published by:
- Vladimir Karputov
- Views:
- 3449
- Rating:
- Published:
- 2017.03.02 09:54
- Updated:
- 2018.06.25 15:39
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The EA places pending stop orders BUY_STOP and SELL_STOP.
Recommended timeframe — M15.
Author of the idea — Yuri, author of the MQL5 code — barabashkakvn.
Trading rules:
- Find the maximum price value in the interval between 14 and 16 hours terminal time and place a pending Buy stop order at this level. Find the minimum price value in the interval between 14 and 16 hours terminal time and place a pending Sell stop order at this level.
- The distance between the maximum and minimum should be no more than 50 points, otherwise the orders should not be placed.
- Take Profit is 30 points.
- Stop Loss is set at the price level of the opposite trade. Untriggered orders are deleted at the end of the day.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/17250
Autotrade
The Expert Advisor places two pending orders (BuyStop and SellStop) with the specified expiration.
2MA_4LevelThe Expert Advisor uses the values of two iMA (Moving Average, MA) indicators.
Reconstruction of positions
An example of working with the trading history on Hedge accounts — reconstruction of positions.
TrailingStopAn example of an Expert Advisor with a Trailing Stop implementation.