Hi Karlson,
Tried to attach it to the chart but it gets emoved from the chart instantly after being attached.
can you give me a solution to the problem. Pls find the attached file
Sorry could not attach file
Nice code. Simple but useful
if defined a indicator handle in OnInit().
How to do if change chart period in such mode ?
Hello, I really like the script. Its simple and something that MT should have as a default function. I was wondering if the script can be modified to change the time frames for all open charts at the same time.
I found a script for that called period before and periodnext but it does not have the M1 & MN1 timeframes. I tried to merge the two but was unsuccesful.

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
Chart_Period_Changer:
A simple script for switching basic timeframes. It allows to change a chart period using hot keys.
Three different versions are attached:
Author: Olegs Kucerenko