MobinMQL/Indicators/Class/week-1-ind-1.mq5
2025-07-22 14:48:34 +03:00

55 lines
1.7 KiB
MQL5

//+------------------------------------------------------------------+
//| ProjectName |
//| Copyright 2020, CompanyName |
//| http://www.companyname.net |
//+------------------------------------------------------------------+
#property indicator_chart_window
input string name = " mobin ";
input int birth_year = 1992;
input double gpa = 3.8;
input datetime init_time = D'2025.04.10 10:10';
input color bg = clrGreen;
input bool active = false ;
enum ENUM_MARKET_STATUS
{
MARKET_UP_TREND = 0 ,
MARKET_DOWN_TREND=1,
MARKET_RANGE=2
};
input ENUM_MARKET_STATUS market_status;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int OnInit()
{
Print(name);
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int OnCalculate(const int32_t rates_total,
const int32_t prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int32_t &spread[])
{
return(rates_total);
}
//+------------------------------------------------------------------+