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
If this clock of yours is an expert (not an indicator), then in all likelihood it is simply looped, so it has no problem getting information across multiple symbols. This is what I wrote about earlier, that there really is no big problem with ticks in Expert Advisor, because it can be looped. But with an indicator this number won't work.
As for the different OS, it is still a mystery to me. As I wrote above, it works fine on my computer on 7, but other people don't have it for some reason. Probably something to do with access rights...
By the way, regarding "replacement libraries", try to take user32 and kernel32 files from WinXP(2003) and stick them in Experts\libraries folder on that computer where Vista(2008) is installed. What if it works? :) ...although I doubt it...
I'll tell directly on the ticks, I'm on "your side" but as for the clock, judging by your answer, you have not understood my thought I will try with the code:
int init()
{
ObjectCreate("ServerTime", OBJ_LABEL, 0,0,0,0,0;)
ObjectSet("ServerTime", OBJPROP_CORNER, 3);
ObjectSet("ServerTime", OBJPROP_XDISTANCE, 10);
ObjectSet("ServerTime", OBJPROP_YDISTANCE, 37);
ObjectSetText("ServerTime", "", 20, "Arial", Green);
return;
}
int start()
{
...
return;
}
I don't want to loop resources ... That is, to combine all ticks from all quotations in one chart?
What makes you gentlemen think this is aggression? It is merely a reminder of the principles of politeness. Before you offer something, you have to put something in return. If you have nothing you can only ask and this is the truth.
I am not very experienced in 64-bit systems but I am very interested in this topic, but as I can do nothing to help here I have to ask people who know. I see nothing shameful in it.
What makes you gentlemen think this is aggression? It is merely a reminder of the principles of politeness. Before you offer something, you have to put something in return. If you have nothing you can only ask and this is the truth.
I am not very experienced in 64-bit systems but I am very interested in this topic, but as I can do nothing to help here I have to ask people who know. I can't see anything wrong in it.
I guess I got caught up in my emotions, but you are a moderator and you watch your mouth, thank you for the remark and I will try to cool my ardour.
Goodbye. Alexander.
Here is the thought """" whether these all ticks can be added up and applied to my Expert Advisor or the window where the Expert Advisor works""" and end up with a lot more ticks than a quote for just one pair.
I don't want to loop resources ... That is, you want to combine all the ticks from all the quotes in one chart?
An EA only reacts to its own ticks, so you cannot "add" anything. There are only two options: either you set a timer (as I suggested), or you run in parallel a looped EA on another chart, which will "tick" your EA. And in this looped EA, you can specify the conditions under which it will "tick". For example, if the value of TimeCurrent() has changed, as in your case. Although, again, I don't see the point in having an additional EA, if the initial EA (i.e., your clock) can do the same.
Anyway, here is the final version of the function:
// push ebp; move ebp,esp; push 01; push 02; push MT4InternMsg; push hWnd; mov eax,PostMsgAddr; call eax; pop ebp; ret 0010;
As far as I understand, you use the PostMessageA(hwnd, RegisterWindowMessageA("MetaTrader4_Internal_Message"), 2, 1) command. This command emulates ticks for the Expert Advisor (according to the description in WinUser32.h). For indicators the ticks are not emulated, and consequently the indicator is not updated. Unfortunately, I don't have WinXP for testing, but if the ticks for the indicator are emulated in XP, I am surprised.
I also checked your algorithm
under the debugger VisualStudio and the result I got in the TimerCode array did not at all correspond to expected results. Are you sure this algorithm doesn't contain errors? I can give you the code and a screenshot of the result. If you want, we may discuss it in more detail.
Although this topic is not very actual now, but I think there are still those who are not in a hurry to switch to new builds :) So, if someone does not have tick timer in Win7/Win8, you must either disable DEP tool or add this function:
And in the end this variant: