스크립트는 MQL5 프로그램을 사용하여 MetaTrader 5에서 일회성 동작을 수행하고 그 직후 차트에서 삭제됩니다. 샘플 기능으로는 거래 내역 업로드, 보고서 생성, 이메일 발송, 파일에서 데이터 다운로드 및 처리 등이 있습니다. 또한 스크립트를 사용하여 그래픽 인터페이스를 만들거나 단일 유형의 거래 작업을 신속하게 실행할 수 있습니다. 예를 들어, 모든 포지션을 즉시 닫을 수 있습니다.
MetaTrader 5에서 제공되는 스크립트를 다운로드하여 시작할 수 있습니다. 스크립트 라이브러리는 MQL5 프로그래밍을 학습할 수 있는 MetaEditor 개발 환경에서 직접 사용할 수도 있습니다.
The script deletes all orders of the type specified in settings, on the current symbol.
The script calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.
A script for placing two Buy Stop Limit and Sell Stop Limit orders at an equal distance.
The script removes old objects of the selected type from all charts, if the time coordinates of these objects are outside of the trigger level.
The script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.
The script removes from the current chart all objects of the user selected type
An example of using HistorySelectByPosition (based on the HistoryDealGetTicket use example).
How many buffers does your indicator use? What's it calculating? Is it efficient? If you want to know what's going on behind the scenes, you'll now be able to.
An example of working with the trading history on Hedge accounts — reconstruction of positions.
When run on the price chart, the script modifies stop loss or take profit of all open orders for the current instrument.
The script displays the brief statistics for trading on the instrument over the specified period - the number of deals, profit, profit factor.
The script switches all opened charts at a certain interval. It is also possible to display only the charts of certain symbols.
Symbol for downloading the history data for the current symbol with indication of progress.
The script tests the computer in 45 performance tests. It is possible to compare the performance of VPS/VDS servers.
An example of counting the number of objects in the chart window.