Calling a math function with correct function parameters

MQL4 Scripts

Spécifications

There is a math library called alglib
(see here:  https://www.mql5.com/en/code/11077)
and I want to call the LSFitLinearC function
but I am not really sure how to call it
with parameters that compile correctly.

Here is an example of someone using:
https://www.mql5.com/en/articles/2646

I am not sure why in this example they
are using objects like CMatrixDouble,
when the function decleration looks like this:

static void CAlglib::LSFitLinearC(double &y[],CMatrixDouble &fmatrix,
                                  CMatrixDouble &cmatrix,int &info,
                                  double &c[],CLSFitReportShell &rep)


So I want a sample script calling this function
with a few data points (time and price) from
the EUR/USD chart and get a valid output.
You should get back a value in "c" parameter.

This should be a simple task just to create
a sample script to correctly call this function.

Although this not necessary to know, here is more
information about this function:   This is a linear
regression calculation similar to the one used
in regression channels.  You can find an example
call in the alglib library documentation here:
http://www.alglib.net/translator/man/manual.ipython.html#example_lsfit_d_linc

Commandes similaires
I need a trading robot that uses heikin ashi charts, ema’s, buystops, moving stops, buy limits. Trading fixed hours, being able to dynamically calculate lot sizes. Calculate stop loss distance in pips by identifying a swing high or swing low. I will give full details if someone is truly interested in making this a robot
Need an MT5 EA to enforce strict trading rules on funded accounts. EA must monitor and auto-manage trades in real-time, including trades placed via mobile MT5 app . Key Features: Block opposite direction trades (no hedging) Work even if trades are opened from mobile
Here is a brief requirement document for developing an MT5 Expert Advisor (EA) based on the provided UT Bot Alerts Pine Script : 📌 EA Requirement: UT Bot Alerts Strategy (MT5) 🔍 Strategy Overview This Expert Advisor will replicate the logic of the UT Bot Alerts TradingView indicator using ATR-based trailing stop logic and Heikin Ashi (optional) input for trade signals. It generates buy/sell signals based on price
This project is a self-optimizing, fully backtested algorithmic trading bot for XAUUSD (Gold) on the MetaTrader 5 platform. The bot utilizes a combination of technical and quantitative models to generate consistent monthly profits across different market sessions (Asian, London, US). Key features include: Market regime detection using Hidden Markov Models Multi-timeframe analysis for gold-specific patterns

Informations sur le projet

Budget
20 - 30 USD
Pour le développeur
18 - 27 USD
Délais
de 1 à 3 jour(s)