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

 
Порт-моне тв time of opening from the previous one. I activate it with a bool.

I'm willing to pay $5!

You do not need to change OrderOfSymbol anywhere.

Change only what I wrote and add the code.

And if it's OK, you just replace it everywhere

OrderOfSymbol by CountOrders()
 
Alexey Viktorov #:

Then take a tincture of motherwort or a tincture of flyswatter and get some rest. Perhaps tomorrow you will realise that you do not need to delete erroneous orders, but to find the cause of the reversal.

My friend here told me that backdoing protects the terminal from "grails", while the experts here oppose it. Is this true?

 
MakarFX #:
If it's not too much trouble, show it in the EA... I couldn't do it(
string terminalLanguage = TerminalInfoString(TERMINAL_LANGUAGE);

/*******************Expert initialization function*******************/
int OnInit()
 {
  Print(__FUNCTION__, " ",terminalLanguage);
  return(INIT_SUCCEEDED);
 }/******************************************************************/
2021.11.03 17:13:51.090 00 (EURUSD,M15) OnInit Russian
 
Порт-моне тв #:

I recently traded hands, I got a backlash in the terminal just without an EA. So it was a year ago, it wasn't the robot, it was the crooked terminal. Fucked up.

Bummer... Maybe it's the kitchen. I mean, no one else is complaining about this kind of problem...
 
Alexey Viktorov #:
Alexei, again the question is different, how to define the language to output the "Input parameters" in the right language.
 
Alexey Viktorov #:
Bummer... Maybe the kitchen is crooked? After all, no one else is complaining about such problems...

Hmm. If you measure historical precedents according to the opinion of herd cases, how do you learn anything new? Can I find out?

 
MakarFX #:
Alexei, again past the question in another way, how to define the language to output the "Input parameters" in the desired language.

The question was like this

Forum on trading, automated trading systems & strategy testing

Any questions from newbies on MQL4 and MQL5, help and discussion of algorithms and codes

MakarFX, 2021.11.03 12:20

Please tell me how to get the value

TerminalInfoString(TERMINAL_LANGUAGE)

before running OnInit()?

Maybe there is another way to get the interface language before running OnInit() .

Get it please, but how to set the condition is another question...
 
MakarFX #:

You don't need to change OrderOfSymbol anywhere.

Only change what I wrote and add the code.

And if it's OK, you just replace it everywhere.

OrderOfSymbol on CountOrders()

I don't see it! Thank you. Throw me a card, I'll donate to you.

 
Порт-моне тв #:

I don't see it! Thank you. Throw me a card, I'll donate to you.

PM
 
Alexey Viktorov #:

The question was exactly this

Get please, but how to set the condition is another question...

In some thread I encountered this

//#ifdef __MQL5__
//#define GROUP(x) input group x
//#else
//#define GROUP(x) sinput string _##x=x
//#endif
//
//использование макроса
//GROUP("MM_Settings");

I copied it, looked it up, didn't understand it much, commented it out and forgot.

I remembered it now, I found it in my test codes, but I can't find it on the forum. I don't understand how macros work, maybe somebody can explain how it works or find the issue I copied it from...

In general I need to define somehow the macro substitution.........