당사 팬 페이지에 가입하십시오
Limits Martin - MetaTrader 4용 expert
- 조회수:
- 27340
- 평가:
- 게시됨:
- 2016.10.27 13:35
- 업데이트됨:
- 2017.01.19 17:21
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
The second version of the EA adds the ability to select the type of pending orders for trading in the Limits0_or_Stops1 parameter. If set to 0 — it trades limit orders, if 1 — stop orders.
Added trailing stop and breakeven features, which are activated if: 1) they are enabled in the EA settings; 2) the last order has either closed in profit or broken even.
Trailing_Use=true; enable trailing of stop orders (works if the last order has closed in profit or broken even).
Profit_Level_Trailing = 100; profit level in points, when reached by an order, trailing stop is activated.
TrailingStop=50; TrailingStop distance in points, at which the stop loss will trail the price.
TrailingStep=50; step in points, after which the stop loss is modified.
Breakeven_Use=true; enable breakeven.
Profit_Level=30; an order moves to profit of the stated number of points (for breakeven).
SL_Plus = 10; sets the order breakeven+SL_Plus in points.
At the default of "Step" points (200 pt. by default) from the market price, the EA places pending Buy Limit and Sell Limit orders with the specified stop loss ("SL", 30 pt. by default) and take profit ("TP", 60 pt. by default).
If the price moves away from the pending order, the EA trails the pending orders after the price, with a step of "Step_Interval" points (10 pt. by default).
When any of the pending of orders is triggered, the opposite one is removed and new orders are not placed until the existing market order is closed. If the last order was closed in profit, the subsequent limit orders are opened with the initial lot, equal to the "Lots" parameter. If the last order closed in a loss or if there is a series of multiple unprofitable orders in a row, the EA calculates the lot size of the subsequent pending orders in a way that closing the next order by take profit covers the previous losses (it is recommended to set the take profit at least twice the size of stop loss).
If the MegaLot is set to true (enabled), in case the previous order (series of orders) had closed in a loss, the next order will be opened with a lot size, that is able to cover the previous losses and earn extra in the deposit currency = the number of profit points taken by the initial lot.
The EA features a limit on the number of lot multiplications in the "Limit" parameter. If there is a series of consecutive losing orders in the amount exceeding or equal to the "Limit", the lot size of the subsequent orders will be set to the initial value and equal to the "Lots" parameter, until there is an order closed in profit.
Increase of the lot size after receiving unprofitable orders can be disabled by setting "Martin = false".
The EA provides the ability to place pending orders at the price equal to the opening price of the last deleted order (it is better to leave "false").
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/16031
This indicator displays the current spread of the instrument and the time left until the current bar closes.
StopAndTakeWhen run on the price chart, the script modifies the stop loss or take profit of all open orders for the current instrument.
The indicator displays the price pivot point.
The simplest RSI-based EASells at downward crossing of 70, buys at the upward crossing of 30.