[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 616

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good afternoon!
I am writing 4 variables ("tick_up", "tick_dn", "pip_up", "pip_dn") calculated in the indicator to a text file. Since they are calculated tickwise
I cannot see the possibility to create a script and I use the indicator and run it on the history.
Here is the code of recording.
The file TickHistory.txt is created and only 2 lines are written into it
Why is ONLY ONE line of data written to the file?
I apologize for my lack of correctness to my requests ... The essence is that the calculation on the highs of different timeframes is different, it is understandable, therefore I did the following (it is necessary for the strategy of trading on different timeframes):
Show the picture
The indicator needs to be reworked, there seems to be a lot of unnecessary calculations
Good afternoon!
I am writing 4 variables ("tick_up", "tick_dn", "pip_up", "pip_dn") calculated in the indicator to a text file. Since they are calculated tickwise
I cannot see the possibility to create a script and I use the indicator and run it on the history.
Here is the code of recording.
The file TickHistory.txt is created and only 2 lines are written into it
Why is ONLY ONE line of data written to the file?
This is how you write down two lines
Good afternoon!
I am writing 4 variables ("tick_up", "tick_dn", "pip_up", "pip_dn") calculated in the indicator to a text file. Since they are calculated tickwise
I cannot see the possibility to create a script and I use the indicator and run it on the history.
Here is the code of recording.
The file TickHistory.txt is created and only 2 lines are written into it
Why is ONLY ONE line of data written to the file?
Because every time you open a file in FILE_WRITE mode without FILE_READ it is completely overwritten. https://docs.mql4.com/ru/files/FileOpen
And one more question about working with iMAonArray and similar functions.
I'm calculating a slip from Volume:
Why do I get sliding calculation only through arraylinked through SetIndexBuffer ?
If I do it with a regular array, nothing comes out.
I.e. this is correct: open once before the loop and write the header, write the data many times in the loop, close it after the loop.
Gentlemen! How to describe the bar cycle more intelligently?
Gentlemen! Please advise me, if it's not too difficult.
If I want to compare the indicators on three or four consecutive bars, how should I write the code correctly?
I am looking at different variants and get confused.
I'm sorry, if I made someone nervous...
Dear Connoisseurs! Question about modification and trellings.
I beg your pardon!
Please, be kind, who understands. How to properly describe the modification of orders,
as well as trailing stops and profits on the five digits?
Tried the standard options, but they somehow work unstable.
Maybe someone will throw a link?
I thank you in advance.