거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
당사 팬 페이지에 가입하십시오
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Universal 1.64 - MetaTrader 5용 expert
- 게시자:
- Vladimir Karputov
- 조회수:
- 8473
- 평가:
- 게시됨:
- 2018.06.06 13:57
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
The author of the idea: Scriptor
The MQL5 code author: Vladimir Karputov.
Universal trailing of positions and pending orders. The Expert Advisor can also open positions and place pending orders.
The EX can:
- Trail stop levels for orders of any type (market and pending);
- Apply scalping techniques;
- Track the deposit increase by the required percent — once the value is reached, the EA can inform the user about that;
- Place pending orders, which are allowed by the user;
- Show Expert Advisor settings on the screen.
- The EA was originally designed as a universal trailing tool, while all other features have been added for convenience.
Input Values
- For all opened manually, the magic number is \"0\"
- magic number - a unique identifier to be used by the EA;
- Lot - the lot value of a position or a pending order to be opened by the Expert Advisor.
- Pending Order Switches - flags for pending orders:
- Wait close position - waiting for a position to close ("true" - waiting for a position to close, "false" - waiting for a pending order to trigger);
- Allow/prohibit BUY STOP - the use of Buy Stop orders;
- Allow/prohibit SELL LIMIT - the use of Sell Limit orders;
- Allow/prohibit SELL STOP - the use of Sell Stop orders;
- Allow/prohibit BUY LIMIT - the use of Buy Limit orders.
- Position parameters
- Maximum number of positions of one type - the maximum number of positions of one type in the market;
- TakeProfit of positions - the take profit value;
- StopLoss of positions - the stop loss value;
- Trailing Stop of positions. "0" --> off - the trailing stop function;
- Trailing Step of positions - the trailing step value;
- Wait profit, "true" -> wait breakeven - first the EA waits for the breakeven level, and then applies the trailing function.
- Stop order parameters
- Distance from current price to Stop Order level - the distance between the current price and the Stop Order;
- TakeProfit Stop Orders - the take profit value for Stop Orders;
- StopLoss Stop Orders - the stop loss value for Stop Orders;
- Trailing Stop of a Stop Orders. "0" --> off and Trailing Step is not important - trailing function for Stop Orders;
- Trailing Step of a Stop Orders - the trailing step value for Stop Orders.
- Limit order parameters
- Distance from current price to Limit Order level - the distance between the current price and the Limit Order;
- TakeProfit Limit Orders - the take profit value for Limit Orders;
- StopLoss Limit Orders - the stop loss value for Limit Orders;
- Trailing Stop of a Limit Orders. "0" --> off and Trailing Step is not important - trailing function for Limit Orders;
- Trailing Step of a Limit Orders - the trailing step value for Limit Orders.
- Only for work on time - trading time settings
- Use time - enable operation in the specified time;
- Terminal hours of the deals - trading time (hours);
- Terminal minutes of the deals - trading time (minutes);
- Use open Buy on time - the flag for time-based opening of Buy positions;
- Use open Sell on time - the flag for time-based opening of Sell positions;
- Use pending Buy Stop on time - the flag for time-based placing of Buy Stop orders;
- Use pending Sell Limit on time - the flag for time-based placing of Sell Limit orders;
- Use pending Sell Stop on time - the flag for time-based placing of Sell Stop orders;
- Use pending Buy Limit on time - the flag for time-based placing of Buy Limit orders.
- Pipsing - enable the pipsing (scalping) strategy
- Pipsing profit - profit for the strategy.
- Global levels - profit and loss levels (%) (for information)
- To catch the increase/decrease of the deposit by NNN percent - tracking deposit levels;
- Global TakeProfit (given in percent);
- Global StopLoss (given in percent).
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/20424
Mod_ATR_Trailing_Stop
An indicator of StopLoss levels.
LSMALeast Square Moving Average - a moving average calculated by the least squares method.