Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzman Danışmanlar

Virtual Trailing Stop - MetaTrader 5 için Uzman Danışman

Yayınlayan:
Vladimir Karputov
Görüntülemeler:
16747
Derecelendirme:
(49)
Yayınlandı:
2018.07.13 16:10
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

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 tarafından Rusçadan çevrilmiştir.
Orijinal kod: 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