MQL4 and MQL 2
|
|||
|
I wrote a custom indicator in MQL4 and need to write this in MQL2. Why, you might ask... I am using mtapi.dll from C# and I want to see this indicator on the MetaTrader 3 platform (FXDD account).
I want to be able to get the last day's close, low and high. On the surface you can do this using Close[1], Low[1], High[1]. But when you change the time frame to say 5 minutes, the Close[1] returns (as expected), the close of the previous 5 minute interval. IN MQL4 you can do: double prevLow = iLow(NULL, PERIOD_D1, 1); double prevHigh = iHigh(NULL, PERIOD_D1, 1) ; double open = iOpen(NULL, PERIOD_D1, 0); Does anyone know how to do this in MQL2. This type of functionality seems to be missing where you can lock in a timeframe for getting Low[1], etc. Thanks for all your help. I am new to this forum but quite impressed with the previous posts on this forum. |
![]() |
|
|||
|
Quote:
I was born in India. But I have settled in the USA for many years. And thanks for all your help. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 08:33 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now











Linear Mode
