MQL5
Experten
Integration
Statistik und Mathematik
Panels und Dialoge
Benutzerdefinierte Grafik
Futures
OpenCL
ALGLIB
C++
C#
Java
JavaScript
PHP
SQL
MySQL
PostgreSQL
R
Python
HTML
Linux
RegExp
Photoshop
Debugging eines Roboters/Indikators
Optimierung von Strategien
Module von Strategien
Sammeln von Daten im Internet
Hochladen von Daten auf eine Webseite
Forex
Stocks
Options
Data mining
Produktdesign
Übersetzung vonTexten
Erstellung von Texten
Spezifikation
//--- input parameters
input int ma_period=20; // moving average period
//--- handle of the indicator used in the EA
int indicator_handle;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- check ma_period validity
if(ma_period<=0)
{
PrintFormat("Invalid ma_period input value: %d",ma_period);
return (INIT_PARAMETERS_INCORRECT);
}
//--- during optimization
if(MQLInfoInteger(MQL_OPTIMIZATION))
{
//--- check available RAM for the agent
int available_memory_mb=TerminalInfoInteger(TERMINAL_MEMORY_TOTAL);
if(available_memory_mb<2000)
{
PrintFormat("Insufficient memory for the test agent: %d MB",
available_memory_mb);
return (INIT_AGENT_NOT_SUITABLE);
}
}
//--- check for the indicator
indicator_handle=iCustom(_Symbol,_Period,"My_Indicator",ma_period);
if(indicator_handle==INVALID_HANDLE)
{
PrintFormat("Failed to generate My_Indicator handle. Error code %d",
GetLastError());
return (INIT_FAILED);
}
//--- EA initialization successful
return(INIT_SUCCEEDED);
}
Bewerbungen
1
Bewertung
Projekte
146
34%
Schlichtung
13
8%
/
62%
Frist nicht eingehalten
26
18%
Frei
Veröffentlicht: 6 Beispiele
Ähnliche Aufträge
Professional AI Automation Trading Bot for Forex & Crypto
500 - 1500 USD
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
Projektdetails
Budget
50+ USD