- Search Crypto Craft
-
Irtron replied Sep 4, 2009This is an 'every week' question on this forum. Please use the search and refer to iHighest/iLowest funcitonality in MQL4 documentation.
High/Low between a time frame
-
Irtron replied Sep 4, 2009Could you give an example of two certain pairs with actual OHLC values and what is your idea of displaying their candles on the same chart considering different pair prices?
Indicator for more than one pair required
-
Irtron replied Sep 4, 2009The Alert() shows the same value as the chart indicator providing both iCustom and chart jma2 use the same parameters. Things to check: - make sure that the chart indicator is called 'jma2' as well. - make sure you run the indicator with the same ...
Different values of indicator in EA and on chart
-
Irtron replied Sep 4, 2009You confusing EA and scripts here. start() function of the former is triggered by upcoming ticks indeed and RefreshRates() is necessary to make sure that the trade environment hasn't changed whilst start() is running. The latter (a script) runs its ...
why no tick-actualization
-
Irtron replied Sep 3, 2009There is no a straightforward one I'm afraid. The heights of chart subwindows are stored in profile chart files *.chr and templates *.tpl. The problem is that if the height is adjusted in the terminal the change doesn't get applied to the file until ...
How to get the total number of pixels of a window?
-
Irtron replied Sep 3, 2009The code above does work as a script at least. It gets a bit too hard on the CPU though. It might be worth adding Sleep() call (if not an indicator) and IsStopped() check to the internal loop. How do you run the example?
why no tick-actualization
-
Irtron replied Sep 3, 2009btw, please remove ', " ", r[4]' from Comment() call. There is no item #4 in four element array.
How to get the total number of pixels of a window?
-
Irtron replied Sep 3, 2009My bad, sorry. WindowHandle() doesn't take default parameters. Use WindowHandle(Symbol(), Period()) instead.
How to get the total number of pixels of a window?
-
Irtron replied Sep 3, 2009WinAPI call GetWindowRect() does what you need. #import "user32.dll" int GetWindowRect(int hWnd, int rect[4]); #import ... int r[4]; GetWindowRect(WindowHandle(Symbol(), Period()), r);
How to get the total number of pixels of a window?
-
Irtron replied Aug 31, 2009No it doesn't. Or rather it works and all the 'normilisers' heat the CPU up all right but all three do nothing in fact. There is no point to round the values that are already rounded whatsoever.This is up to Ron to decide. Still doesn't make Bid a ...
Getting that 5th digit?
-
Irtron replied Aug 31, 2009Bid is not a function.Print. MQL4 doc: The same applies to Comment() and Alert() by the way.
Getting that 5th digit?
-
Irtron replied Aug 30, 2009Not really I'm afraid. The charts are offline *.fxt history files in fact that are produced by the tester for 'every tick' testing mode.
MT4 and Tick charts? without Indi's ..is it possible?
-
Irtron replied Aug 30, 2009milliseconds normally up to seconds if there is a problem with the connection to the server. You can refer to the time delay you have to wait for confirmation to manual trade sometimes. In rare occasions 'tcb' error caused a deadlock that could be ...
2 quick questions and hopefully simple answers
-
Irtron replied Aug 28, 2009No I don't I'm afraid. All the examples from this thread work all right as expected including your code that changes hour and minute counters as the tester processes modelled ticks. Didn't I say that in the first place? I'm ok actually. It's rather ...
TimeCurrent() in strategy tester
-
Irtron replied Aug 26, 2009It would be easier just to get couple of million dollars on my account. And yes, I want it NOW! Why to bother with unnecessary step and time wasted on programming at all?
Anyone Know How To get the [shift] of Bid & Ask?
-
Irtron replied Aug 26, 2009It might depend on the last parameter of iTime() - the bar number. Not all the bars open at the same time!
Mql4 TimeCurrent() represents the epoch time of the broker server (in case it runs at UTC time) at the moment the server pumped the last ...MQL4 iTime() vs. Unix epoch
-
Irtron replied Aug 26, 2009And damn that stupid thermometers as well. Why don't they show the average season temperature and allow those greedy Russians to sell their overpriced gas to Europe?
What's problem with gathering the actual data in real time and calculating ...Anyone Know How To get the [shift] of Bid & Ask?
-
Irtron replied Aug 25, 2009so I did. Yet again.Rather opposite. It follows the test progress as expected. well, that's your problem. Let me ask again, what is it? Please give the details of what you're doing to allow us to point it out.
TimeCurrent() in strategy tester