Questions from a "dummy" - page 112

 
fyords:

Can you tell me how to find the exact value of the crossing of the main and indicator stochastic line?

Visually it is easy, but how to implement it programmatically?

What do you mean by precise?

On the bar before last the values were 100 and 50, and on the previous one 50 and 200. Where is the crossover?

 
ilunga:

in what sense is it accurate?

On the bar before last one the values were 100 and 50, on the bar before last one 50 and 200. Where is the intersection?

In the sense of the value between the bars. I.e. find the value between 2nd and 1st bar on a new bar.

It looks like geometry is required or is there an easier way?

 

Compare on different bars.Current 0.

If on one (bar 2) A>B and on the other (bar 1) B>A, there was a cross.

 
but you still have to use geometry - finding the intersection point of two lines - to get an accurate value.
 
sergeev:

but you still have to use geometry - finding the intersection point of two lines - to get the exact value.
I see, thank you all, I will remember geometry.
 
In MT4 it is possible to stretch the Gann grid simply by extrema, not by a 45 degree angle of 1x1. In MT5 this object stubbornly refuses to stretch. Should I use a calculator to adjust the scale? What are the pips per bar? No, I studied at school, but my head refuses to grasp it. I do not need it, I want to use two extrema.
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы объектов / Типы объектов
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы объектов / Типы объектов
  • www.mql5.com
Стандартные константы, перечисления и структуры / Константы объектов / Типы объектов - Документация по MQL5
 

Hello.

Is there any way to convert a ULONG number to a string or character set?

Документация по MQL5: Основы языка / Типы данных / Целые типы / Типы char, short, int и long
Документация по MQL5: Основы языка / Типы данных / Целые типы / Типы char, short, int и long
  • www.mql5.com
Основы языка / Типы данных / Целые типы / Типы char, short, int и long - Документация по MQL5
 
RedFish:

Hello.

Is there any way to convert a number of ULONG type to a string or character set?

You can, I guess. Try it this way:

ulong u=ULONG_MAX;
string u_string=(string)u; 
Print("u_string = ",u_string);

Or: MQL5 Reference / Data Conversion / IntegerToString
 
Yedelkin:

You can, I guess. Try it this way:

Or: MQL5 Reference / Data Conversion / IntegerToString

Thank you. I'll give it a try. Actually the problem is "as simple as a cupboard". I'm trying to convert an order ticket to a string and sendmail. In 4-th ticket was int, but in 5-th it is ulong. Consequently, I cannot use DoubleToString for this type, while this function is convenient and easy. Is it really worth introducing such a data type for tickets? I just can't imagine who doesn't have enough of int.

Thanks again.

 

Please help with another question.

I've studied the manual of the terminal up and down. The files seem to be stored where they should be, but on startup the Expert Advisor hooks the "wrong" file. I have another one with the same name (a newer version of the class, so to speak), but its Expert Advisor "blindly fails to see". I tried to figure it out. I found the option "run in a separate memory area" in the tab - and I can't uncheck it. The system does not allow me to uncheck it. I found old versions of files in editor menu-open data folder and deleted all unnecessary files. The required file is in the include folder, it compiles, it is prescribed to hook it up in the Expert Advisor. When I put the checkmarks, it does not see the file, when I put inverted commas instead, it does, but the file is old again. I don't understand where it sees it, I've deleted everything.

All problems started when I saved Expert Advisor and include files via menu into a separate folder "just in case". And everything got totally messed up ...

Should I reinstall the entire program? Or do something in the system so that the files are not saved in a separate memory area. System is 7.

Please tell me what to do...

Reason: