2025-10-09 11:26:06 +03:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
//| test.mq5 |
|
|
|
|
//| Copyright 2025, AHMAD KAZBAR |
|
|
|
|
//| https://www.mql5.com |
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
#property copyright "Copyright 2025, AHMAD KAZBAR"
|
|
|
|
#property link "https://www.mql5.com"
|
|
|
|
#property version "1.00"
|
|
|
|
#property indicator_chart_window
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
//| Custom indicator initialization function |
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
int OnInit()
|
|
|
|
{
|
2025-10-09 12:34:42 +03:00
|
|
|
//
|
|
|
|
///// fjaj fIOFfklflk nFN of
|
2025-10-09 11:26:06 +03:00
|
|
|
//---
|
|
|
|
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 value of prev_calculated for next call
|
|
|
|
return(rates_total);
|
|
|
|
}
|
|
|
|
//+------------------------------------------------------------------+
|