스크립트는 MQL5 프로그램을 사용하여 MetaTrader 5에서 일회성 동작을 수행하고 그 직후 차트에서 삭제됩니다. 샘플 기능으로는 거래 내역 업로드, 보고서 생성, 이메일 발송, 파일에서 데이터 다운로드 및 처리 등이 있습니다. 또한 스크립트를 사용하여 그래픽 인터페이스를 만들거나 단일 유형의 거래 작업을 신속하게 실행할 수 있습니다. 예를 들어, 모든 포지션을 즉시 닫을 수 있습니다.
MetaTrader 5에서 제공되는 스크립트를 다운로드하여 시작할 수 있습니다. 스크립트 라이브러리는 MQL5 프로그래밍을 학습할 수 있는 MetaEditor 개발 환경에서 직접 사용할 수도 있습니다.
XAUUSD (금) 거래는 종종 USD, GBP 또는 EUR 발표와 같은 주요 경제 뉴스 이벤트의 영향을 받습니다. 이러한 변동성이 큰 기간 동안 위험을 줄이려면 EA(Expert Advisor)에서 뉴스 필터를 사용하는 것이 필수적입니다. 이 글에서는 MT5에서 간단한 뉴스 필터를 만들어 XAUUSD 거래에 적용하는 방법을 알려드리겠습니다.
H1 주기의 스토캐스틱 오실레이터 반전 신호를 기반으로 하는 간단하고 효과적인 전문가용 어드바이저입니다. 매수 신호는 %K가 20 레벨 아래 %D를 초과하면 발동되고, 매도 신호는 %K가 80 레벨 위 %D를 하회하면 발동됩니다. 위험은 계좌 잔고에 따라 계산되며 로트 크기는 0.1로 설정됩니다(필요에 따라 조정 가능). 테이크프로핏(TP)은 모든 포지션에 300포인트로 설정되며 스톱로스(SL)는 반대 크로스 오버 신호에 따라 동적으로 계산합니다. 포지션은 반대 방향의 크로스오버가 발생하거나 TP 또는 SL에 도달하면 청산됩니다.
한 달에는 30 일, 1 년에는 365 일이 있다는 점을 고려합니다. 스크립트는 새해가 시작될 때까지의 시간 카운터를 보여줍니다.
Multi_BreakEven is a script file that enables setting multiple entry positions to breakeven, either through pips or a target price, once the trade becomes favorable.
Set TakeProfit by just dragging and dropping script on the desired price level.
Set StopLoss by just dragging and dropping script on the desired price level.
Calculates the risk in the account currency for a given trading volume of the selected symbol at different time periods.
Multi Selllimit and Sellstop orders are script files that enable traders to place multiple orders with ease. These orders allow traders to enter the market at a specific price level, or at a specified number of pips away from the current market price, with stop-loss and take-profit levels. By default, the points value is set to 400, which means the trade will be placed 400 points away from the current market price for a 5-digit broker. Moreover, the multi Selllimit and Sellstop orders offer traders the flexibility to customize their trading strategies. Traders can set the stop-loss level to zero if they do not use stop-loss, and can choose between a target price or a points-based entry. This level of flexibility allows traders to tailor their trading strategies to their specific needs, which can result in better trading outcomes.
Multi buylimit and buystop orders are script files that enable traders to place multiple orders with ease. With just one command, traders can place multiple buylimit or buystop orders using either a target price or points. By default, the points value is set to 400, which means the trade will be placed 400 points away from the current market price for a 5-digit broker. This setup includes stop-loss and take-profit levels, which can be adjusted based on the trader's preferences. Notably, these orders come with a level of flexibility that enables traders to fine-tune their trading strategies. For instance, a trader can opt to set the stop-loss level to zero if they do not use stop-loss.
To assist traders who wish to open multiple sell orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. NumberOfSells is the number of trades to execute. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple sell orders, it can save traders valuable time and allow them to focus on other aspects of their trading
To assist traders who wish to open multiple buy orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. NumberOfBuys is the number trades the trader wish to open instantly. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple buy orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.
Learn how to split the volume data into different groups so that you can compare them and create a strategy based on volume average.
This example was created to see how long it takes to reach 100 ticks. So this indicator is a seconds / "centick" (centick = 100 ticks). It helps you trade orders flow.
You learn how to subtract time, insert it manually in a string format, tick counter and see output on comment function.
This script counts the number of pending buy stop orders for each symbol and returns the value.
hi, this code need your telegram token and telegram chat id . you can make robot by BotFather and then search in google how you can find telegram token and chat id then attach them to this code . now every trade would be signals on your telegram channel.
The script obtains information about the number, types and sizes of input and output tensors in an ONNX model
Script gets information about input and output tensors of onnx-model, their types and shapes
This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts.
Get commission of an active position in mt5 , its easy to use function.
The code defines a function "RangeHighs" that calculates the highest price of a financial instrument within a specified time range (start and end time). The time range is defined by 4 input parameters (hour and minute of start and end time). The highest price is found using the "CopyHigh" function and stored in an array, from which the maximum value is returned.
It is known that the market is mainly driven by two emotions: fear and greed. This should be seen as an attempt to implement these emotions in the form of a mathematical model.
Service Script for aggregating Economic Calendar data to a .txt file
The script (not an Expert Advisor) sets and moves the Stop Loss for all positions on the current symbol to the specified price
This simple quick & dirty script code will output a CSV file of all the Signals' properties as reported by the MQL5 Trade Signals functionality.