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
Hello all,
This works.
Thank you all for your help.Why doesn't this code change the timeframe please:
int a= PERIOD_M5;
int init ()long chart_id=0;
string charts ="EURUSD";
{
bool TimeFunction=ChartSetSymbolPeriod(chart_id,charts,a);
return (0);
}
Please do not keep posting the same question!
I have deleted your other 3 topics.
You have been warned before about multiple posts with the same subject.
Do it again and you will be banned.
General rules and best pratices of the Forum. - General - MQL5 programming forum
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor
What are Function return values ? How do I use them ? - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Please do not keep posting the same question!
I have deleted your other 3 topics.
You have been warned before about multiple posts with the same subject.
Do it again and you will be banned.
And yet you post a new topic with exactly the same question!!!!
The topic has been deleted and you are banned for 1 week.
Still not working :(
This is how I got it work. The DrawEvents there is also for another feature: I don't redraw this panel of News Events unless the chart is resized or changed in some way. There is no way AFAIK to further address what change is actually happening using the lparam, dparam, sparam's. I've checked documentation. If you are okay with calling OnInit again each resize, then this will work for you. OnInit gets called anyway each time the user refreshes or clicks a timeframe button, so I don't see the problem unless you absolutely cannot call your OnInit more than once.
This is how I got it work. The DrawEvents there is also for another feature: I don't redraw this panel of News Events unless the chart is resized or changed in some way. There is no way AFAIK to further address what change is actually happening using the lparam, dparam, sparam's. I've checked documentation. If you are okay with calling OnInit again each resize, then this will work for you. OnInit gets called anyway each time the user refreshes or clicks a timeframe button, so I don't see the problem unless you absolutely cannot call your OnInit more than once.
Hello. Thank you for your code. i now find best answer for this question.
very simple
Thank you