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

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
I will describe it well in more detail.
The main indicator is located on the euro-dollar pair. This indicator calls indicators from other pairs of gold, dollar index, and euro currency. This indicator works on 1-minute pairs and sometimes there is no quotes on the dollar index, for example, the euro has a 15-minute candlestick, but the dollar index does not have such a candlestick, the index is frozen and does not tick. Then, after some time, the 16-minute candlestick appears on the EUR and the 16-minute candlestick appears on the USD index. What is the question? How to synchronise the calculation of the indicator, so it is only counted when the bars on all called symbols coincide in time????
I tried this construction
It seems to be cool, but the calculation is performed only for the current day, there are no signals for the previous days. Maybe there is a standard solution for synchronization of symbols????
Try in a timer in the loop SymbolInfoTick() to get data on the symbols. And there already synchronize as you need.
The thing is, that on the current symbol, the program starts only with the arrival of the tick for this symbol. Therefore, you will not be able to get the ticks from the other symbols in time. But in a timer that runs independently of the ticks, you will be able to get ticks from other symbols.
The timer can be set to millisecond if you need a fast response to a tick on a symbol that is not your own.
And you have a terribly blurred question and only you can understand it.
HAIL TO YOU!!! THANK YOU! HAPPY HOLIDAYS!
2 more points, dear. 1) you can remove the indicator from a separate window?
2)add a function, if the current ATR is higher than the ATR (for H period), then the ATR above the bar, would it be highlighted in a different colour? or the value would be written only above this bar?
HAIL TO YOU!!! THANK YOU! HAPPY HOLIDAYS!
2 more points, dear. 1) Can you remove the indicator from a separate window?
2)add a function, if current ATR is more than ATR (for H period), then ATR above the bar would be highlighted in a different colour? or the value would be written only above this bar?
Oh, dear... Here, edit it yourself:
Or do you want me to do everything for you as well?
Oh, dear... Here, you do it yourself:
Or should I do it for you too?
Thank you very much! kind man!
You're welcome. If it's no secret, why do you need a timestamp showing the time of the last run of your program - the time in it won't change.
Just idle curiosity...
It's for the offline tick chart.
What functions can be used to send variables between two MT4 terminals? If possible, please add a link to the documentation.
int Flags=FILE_WRITE+FILE_TXT+FILE_COMMON;
int Info = FileOpen(fName,Flags);
FileWrite(Info,What's Up); On the other terminal, read. Cursor on FileOpen and F1 - get help
int Flags=FILE_WRITE+FILE_TXT+FILE_COMMON;
int Info = FileOpen(fName,Flags);
FileWrite(Info,What's Up); On the other terminal, read. Cursor on FileOpen and F1 - get help