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

95 lines
2.3 KiB
MQL5
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//+------------------------------------------------------------------+
//| ProjectName |
//| Copyright 2020, CompanyName |
//| http://www.companyname.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, MetaQuotes Ltd."
#property link "https://www.mql5.com"
#property version "1.00"
#property indicator_chart_window
color cample_color = C'190,19,19';
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
/**
* This function fulfills the will of the developer
* @return ( int )
*/
int sclrBlackum()
{
int result = 0;
for(int i = 1; i<=100; i++)
{
result = result + i;
}
return result;
}
string traders_name[5]=
{
"Mobin",
"Behzad",
"Mahdie",
"mahdi",
"Taghi"
};
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int OnInit()
{
//for(int i =0 ; i< 5; i++)
// {
// if(traders_name[i] == "Mahdie")
// {
// continue;
// }
// }
for(int i =0 ; i< 5; i++)
{
if(traders_name[i] == "Mahdie")
{
break;
}
}
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
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);
}
//+------------------------------------------------------------------+