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

Virtual SL TP Pending with SL Trailing for Symbol Chart - MetaTrader 4용 expert

[삭제]
조회수:
2664
평가:
(3)
게시됨:
2024.04.10 05:09
업데이트됨:
2024.04.11 12:10
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동


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