Article-20147-MQL5-Terminal.../Test_STARTED_FROM_CONFIG.mq5

18 lines
958 B
MQL5
Raw Permalink Normal View History

2026-03-26 17:44:46 +07:00
//+------------------------------------------------------------------+
//| Test_STARTED_FROM_CONFIG.mq5 |
//| Copyright 2025, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, MetaQuotes Ltd."
#property link "https://www.mql5.com"
#property version "1.00"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
string text=(MQLInfoInteger(MQL_STARTED_FROM_CONFIG) ? "Started from config" : "Started manually");
Alert(StringFormat("MT5 Automation Test Script: %s",text));
}
//+------------------------------------------------------------------+