i need help to remake indicator with open source vhpchannel_02 mt5 to view it on long history.i need to upload remade indicator for download very much please.
At first glance it seems fine. You can check it in the script any day. But here in the documentation I don't like the example. Here is how I advise to write
Yes I get it, and when the event arrives, we know instantly that the object has been created. Even before the first closest tick, and without a loop. That's the idea. We just sit and wait.
This simple example shows how we can monitor object creation on the current chart. If you get twisted, you can keep track of the other charts you want.
I am not against OnChartEvent, but it works only on its own chart and then we will have to put the EA on every chart, and Makar wants the EA to be on only one chart.
Aleksei Stepanenko:
... If you have a twist, you can watch the other charts you need.
Cost of Effort of the Processor: Zero.
Well, well, well... Maybe there's something I don't know? How can I get around to tracking other desired charts from one EA via OnChartEvent
I'm not against OnChartEvent, but it only works on its own chart and then you would have to put the EA on every chart, and Makar wants the EA to be on only one chart.
Shove the code that Alexey gave you into the Timer with an interval of a couple of seconds. Also add a line that if market is closed- exit, so as not to run the cycle.
This approach will relieve CPU load in fast market, and in slow market it will allow to track object appearance on another chart faster.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
While I've been away .........
At first glance it seems fine. You can check it in the script any day. But here in the documentation I don't like the example. Here is how I advise to write
For such a task
Why? Because it is so nice to live without a cycle on every tick.
I need it on every tick, because I found an object to buy-bought, found an object to sell-sold
Yes I get it, and when the event arrives, we know instantly that the object has been created. Even before the first closest tick, and without a loop. That's the idea. We just sit and wait.
This simple example shows how we can monitor object creation on the current chart. If you get twisted, you can keep track of the other charts you want.
Cost of processor effort: zero.
Why? It's so nice to live without loops on every tick.
Because the indicator cannot make trades.
I am not against OnChartEvent, but it works only on its own chart and then we will have to put the EA on every chart, and Makar wants the EA to be on only one chart.
Aleksei Stepanenko:
... If you have a twist, you can watch the other charts you need.
Cost of Effort of the Processor: Zero.
Because the indicator cannot make trades.
I'm not against OnChartEvent, but it only works on its own chart and then you would have to put the EA on every chart, and Makar wants the EA to be on only one chart.
https://www.mql5.com/ru/forum/369209
https://www.mql5.com/ru/forum/369209
With OnChartEvent not otherwise.
Thanks, it works perfectly!
Shove the code that Alexey gave you into the Timer with an interval of a couple of seconds. Also add a line that if market is closed- exit, so as not to run the cycle.
This approach will relieve CPU load in fast market, and in slow market it will allow to track object appearance on another chart faster.