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

Basket Guard - closes a basket of positions at loss or profit in percent of balance - MetaTrader 5용 expert

조회수:
497
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Many Expert Advisors (grids, averaging, multi-symbol systems) have no common stop for all their positions. Each order may look fine, but together they can take a large part of the deposit. Basket Guard adds such a stop: it watches a basket of positions and closes it when the floating result reaches a percent of balance.

Attach it to any chart of the same account where your EA trades and allow algo trading. One copy watches positions on all symbols. It works on hedging and netting accounts and does not open trades itself.

Basket Guard panel on the chart

Basket Guard panel on the chart

Features

  • Loss stop for the basket in % of balance
  • Optional profit target in % of balance
  • Close positions older than N days
  • Lock after a loss stop: new positions in the basket are closed until the next day
  • Filter by Magic number and by a list of symbols
  • Panel on the chart: floating result, risk bar to the loss stop, status

Inputs

  • Magic number to watch (-1 = all positions)
  • Symbols to watch, separated by ';' (empty = all)
  • Close basket at loss, % of balance (0 = off), default 10
  • Close basket at profit, % of balance (0 = off)
  • Close positions older than N days (0 = off)
  • After loss stop: close new positions until next day
  • Max price deviation, points
  • Show information panel, panel accent color, panel corner, panel offset X / Y

Note. Positions are closed at market, so in fast markets the result can be worse than the set percent. Closing is done in up to three passes in case of requotes.

Trade-Request Matrix: Regression Testing Invalid Stops, Volume and Close Errors with OrderCheck() Trade-Request Matrix: Regression Testing Invalid Stops, Volume and Close Errors with OrderCheck()

Part 4 of the regression-testing series. An Expert Advisor that builds a fixed matrix of 20 valid and invalid trade requests (stops at and inside the stops level, wrong-side stops, volume outside the symbol rules, oversized and unknown closes, unchanged and wrong-side modifications), checks each one with OrderCheck() without sending anything, and reports PASS, FAIL or INCONCLUSIVE per row with a digest you can compare between runs.

Trailing Stop and Break-Even Manager (points or ATR) Trailing Stop and Break-Even Manager (points or ATR)

Utility EA that moves the stop loss of positions you already have open: break-even with locked profit and trailing stop in points or ATR. It never opens trades.

Session Time - session hours to broker server time with daylight saving Session Time - session hours to broker server time with daylight saving

Converts session hours given in London, New York, Tokyo or Sydney time into broker server time, including US and EU daylight saving and the weeks when the two are out of step. Comes with a check script that verifies 15 hand-calculated cases.

Gap and Weekend Map: Measuring Gap Fill Rate, Fill Time and Gap Size Relative to ATR Gap and Weekend Map: Measuring Gap Fill Rate, Fill Time and Gap Size Relative to ATR

Marks every opening gap on the chart, measures its size in ATR units and follows it until price trades back to the fill level (previous close by default). A panel reports the fill rate, the median and 90th-percentile number of bars to fill, and the same figures for weekend gaps and for three gap-size buckets. Gaps that are still undecided are reported separately and never counted as filled.