Discussion of article "Data Science and Machine Learning (Part 01): Linear Regression" - page 2

 

The script in the article doesn't work (I just copied the code into a script, gave it the name "0" and recompiled it). It writes the following:

2022.08.30 01:07:32.956 0 (SP500m,H1) cannot load indicator 'Moving Average' [4302]

2022.08.30 01:07:32.956 0 (SP500m,H1) cannot load indicator'Relative Strength Index' [4302]

2022.08.30 01:07:32.956 0 (SP500m,H1) array out of range in '0.mq5' (55,50)

As a result, it created a csv file with just one line: S&P500,NASDAQ,50SMA,13RSI



 
Vitaly Murlenko #:

The script in the article doesn't work (I just copied the code into a script, assigned it the name "0" and recompiled it). It writes the following:

Before complaining that the code that worked for everyone doesn't work for you, find out why your MetaTrader 5 is getting these indicator errors. Error 4302 has something to do with your market review. https://www. mql5.com/en/forum/4660

Cannot load indicator: error 4302
Cannot load indicator: error 4302
  • 2011.09.16
  • www.mql5.com
hi, using MT5 b507 and now i get this error when the expert: exp_tema.mq5 on EURUSD_H8 2011.09...
 
translator doesn't seem to translate like that.)
 
Omega J Msigwa #:

Before complaining that the code that worked for everyone else doesn't work for you, find out why your MetaTrader 5 is experiencing these indicator errors. Error 4302 has something to do with your market overview. https://www. mql5.com/en/forum/4660

Yeah, that's what I thought too. I have the name SP500m - it's different in the code. Thanks anyway :)

And, this... I wasn't complaining :)

 

What is a Model

A model is nothing but a suffix.

A suffix ? I don't get what this mean.

Before you can open a CSV file that was created by our test script you need to convert it into UTF-8 encoding so that it could be read by python.

Why is that ? Just create an UTF-8 data file directly from MQL.

Red ellipse added by me. That's wrong, this point is not an "y-intercept" and its coordinates is not (0,-5).

 
Alain Verleyen #:

A suffix ? I don't get what this mean.

Why is that ? Just create an UTF-8 data file directly from MQL.

Red ellipse added by me. That's wrong, this point is not an "y-intercept" and its coordinates is not (0,-5).

by the word suffix I mean a mathematical notation, like y=mx+c this is a model

Yeah I get it, made a mistake in the image the other point was supposed to be (-5,0) and it is not a "y-intercept"

 
Great article! I've developed a linear regression indicator for MT4 with integrated R-squared coefficient!
 

Hello, thanks for concise article about linear regression and its potentials.
The Peasson coefficient formula has flaws in denominator.

 

hello, maybe it's there, just I didn't find it, but where is the NASDAQ.csv file used in the article?