I drag the script onto the chart and nothing happens, either on the same chart with the EA or on a different one. This is my first time using the script at all. It looks like this.
//+------------------------------------------------------------------+//| таймфрейм .mq4 |//| Copyright 2012, MetaQuotes Software Corp. |//| http://www.metaquotes.net |//+------------------------------------------------------------------+#property copyright "Copyright 2012, MetaQuotes Software Corp."#property link "http://www.metaquotes.net"#include <ServicesMT4.mqh>void start()
{
int hwndChart = WindowHandle("EURUSD", PERIOD_H1);
while (!IsStopped())
{
for (int i = 0; i < 9 && !IsStopped(); i++)
{
ServiceSetTimeframeByNumber(hwndChart, i);
Sleep(4000);
}
}
}
//+------------------------------------------------------------------+//| script program start function |//+------------------------------------------------------------------+
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.
It compiles, but does not execute.
Checked. ServiceRefreshChart () is not available to you.
Which option doesn't work? It's too much already. The option with the script and a separate chart will always work.
You open a chart, e.g. EURUSD H1.
2. In the script this:
3. Run the script on another chart.
4. EURUSD H1 chart will change the TF.
This script works for me:
This expert works strangely. You could say it doesn't work. On itself the TF switches only up to M5.
Waiting for the natural ticks. It's not clear where the problem came from. Something has changed in the new builds of MT4.This script works for me:
This expert works strangely. You could say it doesn't work. By itself the TF switches only up to M5.
I will wait for the natural ticks. I do not understand how the problem appeared. Something has changed in the new builds of MT4.Right, why do we need software that constantly glitches so much that it is impossible to apply it ?
Use the standard features and everything will be fine.
The indicator will be placed on the chart and updated manually instead of ticks.
Do not forget to allow for DLL in the settings
Right, why do you need software that constantly glitches so badly that it cannot be used?
Use the standard features and you'll be fine.
The indicator should be charted and updated manually instead of ticks.
Just do not forget to allow DLL in settings
What, you have the facts? What if I was joking? You can't even check. You need a certain skill.
PostMessage() works for me too. Only it's wrong. Try doing it with SendMessage(). I hope you know the difference.
Rustam, not everybody can handle the simplest software. You are out of luck. Some people even have a glitchy OS.
The script works!!!!!
But it only switches to the M5.