Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 404

 
max020780: you only need to get a few values, namely a red or blue square and an up or down arrow, nothing else is needed.

Which square (there are many, I think 6) and which arrow (there are more, I think 27)

 
STARIJ:

Which square (there are many) and which arrow (there are even more)

you need to get it exactly like this

MN square (red ) , up , up , down , up

W1 square (blue ) , up , up , down , down

and so on up to and including M1

 
max020780:

you need to get it exactly like this

MN square (red ) , up , up , down , up

W1 square (blue ) , up , up , down , down

and so on up to and including M1

MN red , up , up , down , up -1 1 1 -1 1

W1 blue, up , up , down , down 1 1 -1 -1 -1

and so on up to and including M1

Total 36 positions: Position 0: Square MN colour: Blue=1, Cross=0, Red=-1 Position 1: Up=1, Down=-1, Asterisk=0 etc. Correct!!!

 
STARIJ:
Total 36 positions: Position 0: MN square colour: Blue=1, Cross=0, Red=-1 Position 1: Up=1, Down=-1, Asterisk=0 etc. Correct!!!
Yes, that's basically correct.
 
max020780: Yeah, that's pretty much it.

Let's be more specific, without principle.

 
STARIJ:

Let's be more specific, without the principle

Yes, that's right.
 

Who can tell me how to write text from a TXT file into a MQL4 string variable, with all lines and blank lines?

 

Still not fast enough for testing, and it's only tests, no optimisation.

I read that you can use cloud computing for this, who knows how to do it?
I know about MT5 Cloud Network, but I have MT4

 
RomanRott:

It's not fast enough anyway, and it's only tests, no optimisation.

I read that you can use cloud computing for this, who knows how to do it?
I know about MT5 Cloud Network, but I have MT4

Write multiplatform code and test in Five.

Or optimise your code for fours - believe me - there's a lot you can do there.

Or switch to Five. Which doesn't mean write unoptimized code.

By the way, there's also a profiler in fours that allows you to identify code bottlenecks.

 
Andrey Alehin:

Who can tell me how to write text from a TXT file into a MQL4 string variable, with all lines and blank lines?

You can use an array of strings like string ar[100] - here 100 is the maximum number of strings in the file