| / | Forum |
|
jcadong5
2009.12.07 04:57
Hi, In an ea, since we are always at the 'last' bar, we can easily refer to iXXXX data from another timeframe. An example is, ..current chart timeframe = M1 ..refer to M15 iClose() of 5 bars back in M15 data iClose( NULL, 15, 5) where '5' is the shift Are we able to do the same in indicators? e.g. if we do "iClose( NULL, 15, 5) " on an indicator, on an M1 chart, are we referring to M15 bar 5 M1 bars back? or M15 bar 5 M15 bars back? |
|
It is sometimes necessary to perform identical operations with a group of files. If you have a list of files included into a group, then it is no problem. However, if you need to make this list yourself, then a question arises: "How can I do this?" The article proposes doing this using functions FindFirstFile() and FindNextFile() included in kernel32.dll. |
|
circlesquares
2009.12.07 05:33
The latter. 5 M15 bars back.
|
|
jcadong5
2009.12.07 05:43
so it is not possible to refer to another timeframe data in indicators? note: i corrected my original post. it should be 'in an ea', not 'in an indicator'. sorry if it caused any confusion back to the topic: so it is not possible to refer to another timeframe data in indicators? |
|
circlesquares
2009.12.07 08:01
Yes, it is possible. Experiment with a test indicator. Also search for indicators with the letters MTF in them, that means multi-time frame. Those may usually do it in thier own way. Some use ArrayCopyRates to copy all of the other timeframe's data into an array. You also can use the Time Series stuff like you mentioned iTime, iClose, etc. |