Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 872

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
Calculate virtual line instead of real line.
Already started. The problem is how to flip the indexing of the bars so that the largest index is on the right (to calculate the geometry of the trend line)
Flipped it this way, but how to compare it with an indicator calculation cycle. Maybe there is some other more technical way to reverse the indexation?
Already started. The problem is how to flip the indexing of the bars so that the largest index is on the right (to calculate the geometry of the trend line)
Flipped it this way, but how to compare it with indicator calculation cycle. Maybe there is some other more technical way to flip the indexing?
Why? Use the bar and the price of the two line points to get the price of the bar being calculated:
x1 is the bar of the first line point, y1 is the price of the first line point, x2 and y2 are the bar/price of the second line point, x is the number of the bar on which you want the price.
Why? Use the bar and price of the two line points to get the price of the bar to be calculated:
x1 is the bar of the first line point, y1 is the price of the first line point, x2 and y2 are the bar/price of the second line point, x is the number of the bar at which you want the price.
Please advise how to close all positions for the next day at 23.00, no problems during the day (if (Hour_curr>= needed time), but I have a problem with moving positions after 00.00. Thanks in advance.
If the opening day of the position is not equal to the day to close it.
Good afternoon! I don't understand how any part of the code (e.g. description and calculation of global variables) can be made into a include file?
How is the extension mgh assigned to the file?
Does the include file reduce the size of the Expert Advisor?
Thank you.
Good afternoon! I don't understand how any part of the code (e.g. description and calculation of global variables) can be made into a include file?
How is the extension mgh assigned to the file?
Does the include file reduce the size of the Expert Advisor?
Thank you.
A regular .mq4 can be included, it doesn't have to be .mqh, you don't even need to compile it. The include file differs in the lack of special functions OnInit(), OnDeinit(), OnTick, etc.
There is no effect on the size of the file, whether it is inlined or all code in one piece, the inlined code is included in the final executable code.
A regular .mq4 file can be included, it doesn't have to be .mqh, you don't even have to compile it. The included file differs in the absence of special functions OnInit(), OnDeinit(), OnTick, etc.
It has no effect on the size of the include file, whether the entire code is included in one piece, the code of the inline is included in the final executable.
Did I get it right: we write a piece of code without functions init(), start() and so on, save it as an .mqh file and that's it? We can put it into terminal_directory\experts\include and it will be called and executed without any problems?
Thank you.
Did I get it right - we write a piece of code without init(), start() and other functions, save it as an .mqh file and that's it? We can put it into terminal_directory\experts\include and it will be called and executed without any problems?
Thank you.