//+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2020, CompanyName | //| http://www.companyname.net | //+------------------------------------------------------------------+ #property indicator_chart_window // Naming Variable and function // camelCase double mobinZarekarProgrammer; // pascal case double MobinZarekar; // snake_case double mobin_zarekar; // kebab-case double mobin-zarekar; // NO use // SCREAMING_SNAKE_CASE enum ENUM_SAMPLE { } int num1; int num2; int OnInit() { 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[]) { //--- int z = x+y ; //--- return value of prev_calculated for next call return(rates_total); } //+------------------------------------------------------------------+