당사 팬 페이지에 가입하십시오
- 게시자:
- Vladimir Karputov
- 조회수:
- 4223
- 평가:
- 게시됨:
- 2018.06.16 10:35
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Idea by: Scriptor.
MQL5 code by: Vladimir Karputov.
Working with pending Buy Stop and Sell Stop orders. Pending orders are placed and removed at a specified time (Time of order placement and Time of order removal, respectively), the time being considered as hours and minutes only in the parameters. As soon as any of the pending orders triggers (the triggering moment is monitored in OnTradeTransaction), the remaining pending order will be removed.
Inputs
- Lots - the volume of the pending order to be placed;
- Stop Loss (in pips) - Stop Loss;
- Take Profit (in pips) - Take Profit;
- Trailing Stop (in pips) - trailing;
- Trailing Step (in pips) - trailing step;
- Time of order placement (use only hh:mm !!!) - time, at which pending orders must be placed;
- Time of order removal (use only hh:mm !!!) - time, at which the pending orders must be removed (positions are closed at the same time);
- Distance from market - distance from the current prices, at which pending orders are placed;
- magic number - unique identifier for the EA.
Test example on GBPUSD,H1
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/20637

An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.

The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.