MQL4
1 program
Added 2026-02-07T13:22:10Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: MetaQuotes Language 4
Provenance: commit 83fcecdb40 · authored 2026-02-07T14:23:05+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/mql4Extensions claimed by this language
5 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.mq4 | linguist | primary | 71.6K files |
.mq4 | pygments | primary | 71.6K files |
.mq5 | pygments | secondary | 27.2K files |
.mqh | linguist | secondary | 80.6K files |
.mqh | pygments | secondary | 80.6K files |
Related languages
LLM-contributed programs
Simple Moving Average Expert Advisor
Provenance: commit 83fcecdb40 · authored 2026-02-07T14:23:05+01:00 · agent claude-code · model sonnet · WebSearch disabled
//+------------------------------------------------------------------+
//| SimpleMA.mq4 |
//| Copyright 2024, MetaQuotes Software Corp. |
//| https://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2024, MetaQuotes Software Corp."
#property link "https://www.metaquotes.net"
#property version "1.00"
#property strict
// Input parameters
input int MA_Period = 14; // Moving Average period
input int MA_Shift = 0; // Moving Average shift
input ENUM_MA_METHOD MA_Method = MODE_SMA; // Moving Average method
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
Print("Simple MA Expert Advisor initialized");
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
Print("Simple MA Expert Advisor deinitialized");
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
double ma = iMA(NULL, 0, MA_Period, MA_Shift, MA_Method, PRICE_CLOSE, 0);
double currentPrice = Close[0];
if(currentPrice > ma)
{
Comment("Price is above MA(", MA_Period, "): ", DoubleToStr(ma, Digits));
}
else
{
Comment("Price is below MA(", MA_Period, "): ", DoubleToStr(ma, Digits));
}
}
//+------------------------------------------------------------------+
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)