Files
forex-navigator/12-TrendEngine/TrendEngine.mq5
T
ironsan2kk-pixel 6450d1efc6 Fix download links
2026-06-08 10:36:15 +02:00

39 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//+------------------------------------------------------------------+
//| TrendEngine Core Demo MQL5 EA |
//| Author: Hossein Asgari (Fintor AI) |
//+------------------------------------------------------------------+
#property strict
#property copyright "Hossein Asgari - Fintor AI"
#property link "https://fintorai.com"
#property version "1.00"
#include <TrendEngine/TrendEngineCore.mqh>
//--- inputs
input double InpLots = 0.10;
input int InpMaFast = 20;
input int InpMaSlow = 50;
input int InpSlPoints = 300;
input int InpTpPoints = 600;
//--- core engine
CTrendEngineCore g_engine;
//+------------------------------------------------------------------+
int OnInit()
{
g_engine.Init(InpLots,InpMaFast,InpMaSlow,InpSlPoints,InpTpPoints);
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
g_engine.Deinit();
}
//+------------------------------------------------------------------+
void OnTick()
{
g_engine.OnTick();
}
//+------------------------------------------------------------------+