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
Hi All i need programmer to make me 2 programs first program send sell or buy from tradingview to MT4 and MT5 not using alert on tradingview . not using WEBHOOK\ mean using trade order manually from tradingview to MT Second using alert webhook from indicators inside tradingview
I am looking for a skilled Thinkorswim script developer for a one-time project. Your task will be to combine 8 distinct Thinkorswim studies (I will provide the code for each) into one Lower Study. The final script should display histogram rows for the individual studies with a bubble color scheme of bright green, dark green, gray, dark red, and bright red
I need some who can develop my strategy and hand me over the source code... I will give you the specific area in the market i want to mark out and then set pending orders to execute once price move into the zone
C onversion from Ninjatrader to Tradingview. This includes thorough testing and debugging to guarantee that the script functions as intended on Tradingview...If you are in for this job kindly bid
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale
there I hope you're doing well I want to convert the tradingview indicator to make an indicator for mt5. And in that, I want to make an automatic robot on the base of the indicator. I have the pine script of that indicator
Looking for someone who is able to code MQL for MT5 manager plug-in? Please contact me for more info. it is mainly on when to trigger a stop out of the account
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so

Informations sur le projet

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