/* Copyright (C) 2025 boyvlad This file is part of Tillson T3. Tillson T3 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Tillson T3 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Tillson T3. If not, see . */ //--- Do not remove! #property tester_everytick_calculate //--- #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 1 //--- #property indicator_label1 "T3" #property indicator_type1 DRAW_LINE #property indicator_color1 clrViolet #property indicator_style1 STYLE_SOLID #property indicator_width1 3 //--- #define VER_MAJOR 1 #define VER_MINOR 0 #define MIN_MQL_BUILD 5370 //--- #property version string(VER_MAJOR)"."string(VER_MINOR) #property description "Compiler build: "string(__MQLBUILD__) #property copyright "boyvlad" #property link "https://www.mql5.com/en/users/boyvlad/" //--- #include "src\Indicator.mqh" #include "src\only-for-mq5-file\IndicatorInputsAndRelated.mqh" CIndicator* Indicator; int OnInit() { CIndiParams params; Indicator = new CIndicator(params); return checkCompilerBuild() ? INIT_SUCCEEDED : INIT_FAILED; } int OnCalculate(const int rates_total, const int 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 int &spread[]) { return Indicator.onCalculate(rates_total, prev_calculated, open, high, low, close, time); } void OnDeinit(const int reason) { delete Indicator; } bool checkCompilerBuild() { if(__MQLBUILD__ >= MIN_MQL_BUILD) return true; Alert("Outdated compiler build "string(__MQLBUILD__)"! Recompile using compiler build "string(MIN_MQL_BUILD)" or later"); return false; }