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

One-Click Buy Sell Close Panel with Pip Stops - MetaTrader 5용 expert

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
저는 Kenichiro Sakamoto이며, MetaTrader 5용 투명하고 규칙 기반의 EA(Expert Advisor)를 만드는 스튜디오 FXEA365의 개발자입니다.
조회수:
79
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This Expert Advisor adds a small trading panel to the chart. The BUY and SELL buttons send a market order with a fixed lot, and the stop loss and take profit are placed at a distance in pips from the entry price. The CLOSE button closes the positions opened by the panel on the chart symbol.

Under the buttons the panel shows the lot, the stop distances, the number of open panel positions and their floating profit including swap. The panel is scaled for high DPI screens, so the buttons keep their proportions on large monitors.

Fig. 1. The panel on a EURUSD H1 chart

Input parameters

  • InpLot - lot size of each order; it is rounded down to the volume step of the symbol and kept within the minimum and maximum volume.
  • InpSLPips - stop loss distance in pips; 0 means no stop loss.
  • InpTPPips - take profit distance in pips; 0 means no take profit.
  • InpMagic - magic number of the panel trades; the CLOSE button and the information line use only positions with this number.
  • InpDeviation - maximum price deviation in points.
  • InpX and InpY - position of the panel from the top left corner of the chart in pixels.

Notes

Before each order the required margin is calculated with OrderCalcMargin and compared with the free margin, so an order that cannot be opened is not sent. Failed requests are written to the Experts log with the description of the trade server return code.

One pip is 10 points on 3 and 5 digit quotes and 1 point on other symbols. Allow algorithmic trading in the terminal before using the buttons. The panel never trades by itself, so it does nothing in the Strategy Tester unless the buttons are pressed in visual mode.

Equity Drawdown and Daily Loss Guard Equity Drawdown and Daily Loss Guard

Utility Expert Advisor that closes all open positions when equity falls a set percentage below its peak or when today's loss reaches a limit. It never opens trades.

Break-Even and Trailing Stop Manager for Open Positions Break-Even and Trailing Stop Manager for Open Positions

Utility Expert Advisor that moves the stop loss of open positions to break-even and then trails it by a fixed pip distance or an ATR multiple. It never opens trades.

Prop Firm Daily Profit Lock Prop Firm Daily Profit Lock

Daily Profit Lock is a free utility EA that protects a good trading day. Once today's profit hits your cap, it closes your trades, deletes pending orders and blocks new trades until the next day. You can set the cap as a fixed amount, a percent of balance, or a share of total profit, which suits prop-firm consistency rules. Dry run is on by default, so it only alerts until you're ready, and it never opens a trade itself.

EA Validation Guard - Pre-Trade Request Checker EA Validation Guard - Pre-Trade Request Checker

Reusable MQL5 pre-trade validation library that checks margin, volume, trading permissions, symbol restrictions, stop levels and broker OrderCheck results before an order is sent.