Hello, I wrote an indicator text based, no lines, no graph, a separate window like iExposure.mq4 using
, in fact I started from that indicator to build mine and I noticed that iExposure does the same thing, nothing appear until i change time frame.
My problem is that once I launch the indicator, nothing happen but once i change time frame, it start working like the iExposure indicator that come with all MT4.
What I do is Create Object, set x,y distance and variable to show , some thing like this very similar to iExposure:
and the program is inside OnCalculate
I hope you understand what is happening to me and
Thank You.
Hello,
https://www.mql5.com/en/docs/objects
MQL5 has ChartRedraw() MQL4 has WindowRedraw() as well
- www.mql5.com
No idea ??
Post your code if you want coding help. All the relevant code, not useless snippets.
My problem is that once I launch the indicator, nothing happen but once i change time frame, it start working like the iExposure indicator that come with all MT4.
For your information, iExposure is "working" as soon as you attach it to a chart, not need to change timeframe or whatever (in normal conditions, online chart, market open).
Hello,
https://www.mql5.com/en/docs/objects
MQL5 has ChartRedraw() MQL4 has WindowRedraw() as well
Thank You !!
When I wrote "no idea?" I didn't see your reply !! ( few minutes ago I was relaxing and I thought about this option !!
No need to post all my code because it's private Indicator I would like to sell and I wrote above it happen the same that iExposure indicator and that I started programming mine observing iExposure so if you want a code check iExposure.mq4
Post your code if you want coding help. All the relevant code, not useless snippets.
For your information, iExposure is "working" as soon as you attach it to a chart, not need to change timeframe or whatever (in normal conditions, online chart, market open).
Not for me and other person I asked, he told me it happen the same: once launched nothing appears...
Anyway I will try with CharRedraw() or WindowRedraw() as commented by Demos Stogios
Not for me and other person I asked, he told me it happen the same: once launched nothing appears...
Anyway I will try with CharRedraw() or WindowRedraw() as commented by Demos Stogios
Well, I tried to put ChartRedraw() and/or WindowRedraw() in any places of my indicator and nothing changed, but as I found the function WindowIsVisible() and i put the following code in
int OnInit() {
int maywin=WindowFind("MyMACD"); |
}
it immediately start showing the objets (label type) of the indicator. (I changed the variables with mine, like the name of variable and string. (I removed all the ChartRedraw() and WindowRedraw() too )
Another change that I did and I will check if it could be the reason of this issue is changing the name of the IndicatorShortName from "Money Manager 2.0" in "MoneyManager" the equivalent of "MyMACD" in the code above because I thought spaces or dot could create problem as string.
I'm really happy because the indicator works great and at the moment this was my only problem ! (this is my first indicator, usually I program EA)
Thank You again !!
Another change that I did and I will check if it could be the reason of this issue is changing the name of the IndicatorShortName from "Money Manager 2.0" in "MoneyManager" the equivalent of "MyMACD" in the code above because I thought spaces or dot could create problem as string.
No, the name, the string for IndicatorShortName is not a problem if it contains spaces or dot .
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, I wrote an indicator text based, no lines, no graph, a separate window like iExposure.mq4 using
, in fact I started from that indicator to build mine and I noticed that iExposure does the same thing, nothing appear until i change time frame.
My problem is that once I launch the indicator, nothing happen but once i change time frame, it start working like the iExposure indicator that come with all MT4.
What I do is Create Object, set x,y distance and variable to show , some thing like this very similar to iExposure:
and the program is inside OnCalculate
I hope you understand what is happening to me and
Thank You.