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

 
Vitaly Muzichenko #:

Thank you all, the principle is clear, the problem has been formalised.

---

Now a question: What am I doing wrong, all characters have the same value?

It seems to be the same for three characters.

2021.11.20 15:04:08.764 new.2 GBPJPY,H1: 
0.001 00000

for five characters.

2021.11.20 15:05:41.289 new.2 GBPUSD,H1: 
0.00001 000

 
MakarFX #:

This seems to be the case for three digits

for five characters.

Yes, I did it wrong :(

Need to get "point value" and that's the wrong function.

 
Vitaly Muzichenko #:

Yes, I did the wrong thing :(

Need to get "Point Cost" and that's the wrong function.

MODE_TICKVALUE

16

Size of minimal change of instrument price in the deposit currency

 
Vitaly Muzichenko #:

Yes, I did the wrong thing :(

I need to get "Point Cost" and it's the wrong function.

The function is right, but the property is wrong...

 
MakarFX #:

MODE_TICKVALUE

16

Minimal change of instrument price in the deposit currency

Yes, indeed, this is what was needed

SymbolInfoDouble(symbol,SYMBOL_TRADE_TICK_VALUE)
 
Please advise a professional if I can programmatically count all currency pairs traded in the terminal,

on the opening day of the terminal (MT5)? If so, advise me how to do it!

I am grateful to your humble servant Vladimir.

 
vladeimirami #:
Please advise a professional if I can programmatically count all currency pairs traded in the terminal,

on the opening day of the terminal (MT5)? If so, advise me how to do it!

Thank you very much.

See SymbolsTotal() SymbolName() and SymbolInfoXXX()

PS "In advance" should be coupled. It's funny to read otherwise :-) And what do they teach you at school?

 
Maxim Kuznetsov #:

See SymbolsTotal() SymbolName() and SymbolInfoXXX()

PS "in advance" should be written together, otherwise it's funny to read :-) And what do you learn in schools about

Maxim Kuznetsov #:

SymbolsTotal() SymbolName() and SymbolInfoXXX()

PS "in advance" is normally closed, otherwise it's funny to read it :-) What do they teach you at school?

Well done! Thanks a lot for the tip. Now I'll figure it out! Thanks again for the tip!

 
Good afternoon. Can anyone advise how to open orders in an EA on an arrow indy not by arrow, but on each bar but in the direction of the last arrow?
 
Evgeniy #:
Hello. Can someone advise how to open orders in the EA on the arrow indy not on the arrow but on every bar but in the direction of the last arrow?

There is a joke.

Petka and Vasily Ivanovich are flying in an aeroplane.

Vasily Ivanovich is at the helm, an important man.

He says to Petya: "Petyka! The instrument!"

Petya says: "25!"

Vasily Ivanovich: "25 what?"

Petya: "What about the appliance?"

Evgeniy #:
on every bar but in the direction of the last arrow?

if (new bar and arrow up) we buy

if (new bar and down arrow) sell

Reason: