거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Virtual Trailing Stop - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
17051
평가:
(49)
게시됨:
2018.07.13 16:10
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Idea by: Vladimir Khlystov.

MQL5 code bybarabashkakvn.

Virtual trailing can place stop loss and take profit, and trail the position in such a manner that stop orders are not visible to broker, i.e., they are not place with your dealing center, but on your PC; so nobody, except of your PC and yourself, can see your plans.

Along with the invisibility, there is another very useful thing: Many brokers have very large spreads and the levels of placing stop orders, so now these levels cannot harm you, the EA just ignores them.

As far as I can judge, everything is clear regarding stop loss and take profit. I'm going to describe trailing only.

Trailing is managed with three variables:

  1. trailing length;
  2. minimum profit for starting;
  3. trailing step.

Virtual stop loss follows the price at the distance equalling to the trailing length. Minimum profit is when to start placing the virtual stop loss. Trailing step is upon which interval we will move the virtual stop loss.

Assume, we have set the values to 5, 2, and 3, respectively.

As soon as the position profit reaches 7 points, the virtual stop loss will move by the position open price [;us 2 points of the minimum profit. Further, when the price goes 3 points in the profitable direction, the Stop Loss will be moved by 5 points to profit, and so on, following the price at a distance of 3 points. If the price rolls back to the stop level, the position will be closed.

Trailing stops are shown as dashed lines.

To understand the EA easier and faster, you can install it in the tester and see how it works there in the visualization mode:

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/21362

Exp_SilverTrend_ColorJFatl_Digit_MMRec Exp_SilverTrend_ColorJFatl_Digit_MMRec

Two independent trading systems using indicators SilverTrend_V2 and ColorJFatl_Digit within one EA, with an option of changing the size of the future trade depending on the results of the previous ones for this trading system.

Exp_BykovTrend_ColorX2MA_MMRec Exp_BykovTrend_ColorX2MA_MMRec

Two independent trading systems using indicators BykovTrend_V2 and ColorX2MA within one EA, with an option of changing the size of the future trade depending on the results of the previous ones.

Exp_BrainTrend2_AbsolutelyNoLagLwma_MMRec Exp_BrainTrend2_AbsolutelyNoLagLwma_MMRec

Two independent trading systems using indicators BrainTrend2 and AbsolutelyNoLagLWMA within one EA, with an option of changing the size of the future trade depending on the results of the previous ones for this trading system

DEMA_Range_Channel DEMA_Range_Channel

A channel formed by two Double Exponential Moving Averages based on averaged High and Low timeseries