![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Unfortunately, it does not connect to the chart. Saved in the folder indices. Maybe something else is needed?
This is a script. It must be saved in the "MT4\experts\scripts\" directory. Then open and compile it (F5) or restart the terminal.
In the directory "MT4\experts\indicators\" there should be the indicator that you posted, the script uses it in its calculations.
For some reason it won't start. Could it be because the name of ZigZag does not match? I noticed that when I attached the file its name changed. My original is called ZZm-fx-txt, but attached it with the name ZZmufxytxt.mq4
Yes, that's why.
Replace the indicator name in the script with the correct one (in 3 places).
I wonder if the last segment in this script will be redrawn along with the completion of the channel?
You can make it so that it refreshes. At the moment the script is switched off as soon as it is finished.
Surprisingly, with more channel width (200pp) even more trend to flat ratio. 80/20 only in favour of the trend. Maybe it's with the recent events on the Eura?
Yes... something to think about... Need to look at other pairs
In this euphoria I forgot to thank you Andrei. A huge THANK YOU for your help in solving this problem. I think this exemplary cooperation will benefit everyone.
At narrow values (25pp), the situation reverses in favour of a flat.
At narrow values (25pp), the situation reverses in favour of a flat.
The script draws trend lines (green-red)/flat lines (white) and displays basic statistics (number of Trend/Flat sections, their total length in bars and in % of the total history).
It would be interesting to run the Expert Advisor in two variants
1. pure (to see what kind of losses on flags)
2. on condition not to open a new position, until the trend reverses.
I do not feel sleepy in general. Need to force myself....