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 SL TP Pending with SL Trailing for Symbol Chart - MetaTrader 4 için Uzman Danışman

[Silindi]
Görüntülemeler:
2353
Derecelendirme:
(3)
Yayınlandı:
2024.04.10 05:09
Güncellendi:
2024.04.11 12:10
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git


T"Virtual_SL_TP_Pending_with_SL_Trailing.mq4." It's designed to manage trades by setting virtual stop loss and take profit levels, along with a virtual pending order with an optional trailing stop loss feature.

Here's a breakdown of the script:

  1. Copyright and Link: Specifies the copyright information and a link to the creator's website.
  2. Version: Indicates the version of the script.
  3. Description: Provides information about the script, including the creator's email address, intellectual property details, and a warning about using the software at your own risk.
  4. Input Parameters: External variables that allow users to customize the behavior of the EA, including:
    • StopLossPoints : Initial Stop Loss in points.
    • TakeProfitPoints : Initial Take Profit in points.
    • SpreadThreshold : Spread threshold for virtual stop loss/take profit in points.
    • TrailingStopPoints : Trailing stop in points for the virtual pending order.
    • EnableTrailing : Option to enable or disable trailing stop.
  5. Global Variables: Variables used throughout the script to store initial spread, virtual stop loss, virtual take profit, and pending order price.
  6. Initialization Function ( OnInit ): Initializes the EA when it's attached to a chart. It calculates the initial virtual stop loss, take profit, and pending order price based on the input parameters.
  7. Tick Function ( OnTick ): Called on every tick of the price. It checks if the spread has increased beyond the threshold and adjusts the virtual stop loss, take profit, and pending order price accordingly. It also monitors if the price hits the virtual stop loss or take profit and closes the position. Additionally, if trailing stop is enabled and the price reaches the pending order price, it places a virtual pending order with a trailing stop loss.
  8. Close Position Function ( ClosePosition ): Closes the position when the price hits the virtual stop loss or take profit.
  9. Place Pending Order Function ( PlacePendingOrder ): Places a virtual pending order with a trailing stop loss if trailing stop is enabled.

This EA provides a flexible way to manage trades using virtual levels and a trailing stop feature, allowing traders to automate their trade management process in MetaTrader 4.

Close Basket Pairs v1 Close Basket Pairs v1

This MQL4 EA is designed to close positions for a basket of currency pairs based on certain profit and loss thresholds.

Reverse Trades For All Symbols Script Reverse Trades For All Symbols Script

Reverses all open trades after Closure for all symbols .

Classic and Virtual Trailing Classic and Virtual Trailing

Classic & Virtual Trailing for MT4

MQL4 Implementation of onTrade Event Handler MQL4 Implementation of onTrade Event Handler

This is a simple code to mimic onTradeTransaction Event handler defined in MQL5