Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Rejoignez notre page de fans
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
- Vues:
- 898
- Note:
- Publié:
- 2025.03.11 14:58
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
Callback interface for timer
npm i mql5-timerexample:
#include "../index.mqh"; ulong intervalId; // id for cancel void OnInit(void) { Timer::setTimeout(Callback1, 3000, "321"); // after 3000ms Timer::setTimeout(Callback2, 2000); // after 2000ms intervalId = Timer::setInterval(myCallback3, 800, "myCallback4 800"); // every 800ms // any type of param TypedTimer<int>::setTimeout(Callback4, 1000, 123); // after 1000ms TypedTimer<string>::setInterval(myCallback5, 1800, "myCallback4 1800"); // every 800ms } void Callback1(string value) { Print("Called with value: ", value); } void Callback2() { Print("Called with value: ", "void"); } void myCallback3(string param) { Print(param); Timer::clearInterval(intervalId); } void Callback4(int value) { Print("Called with value: ", value); } void myCallback5(string param, ulong idForCancel) { Print(param); Timer::clearInterval(idForCancel); }authtor: Kuzme Shevelev (seffele@gmail.com)
github: https://github.com/Senails/mql5-timer
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/53101

The T3 Indicator is an advanced moving average that combines six exponential moving averages to provide smoother price action with reduced lag compared to traditional moving averages.

Draw daily vertical lines plus the day of week labels on the chart.

Serialization and deserialization of the JSON format

The EA automatically trades based on trend and mean reversion signals with validated parameters.