Serving Traders Since 2005
|
|
|
|||||||
| MetaTrader 5 MT5 is already out of its beta stage, but the development is ongoing. Some brokers already offer real accounts and the interest of traders is growing. You can discuss anything related to MetaTrader 5 in this forum. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi
I need to copy the latest 300 values of the iStochastics into an stochBuffer Is the following correct? MQL5 Code:
|
|
||||
|
No, it will copy the first 300 bars (the oldest) in the chart.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account. |
|
||||
|
Set array stochBuffer as series and then copy as before (0, 300). It will then contain the latest data.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account. |
|
||||
|
Wait, I've just checked the help files. It doesn't matter if you set the array as series or not. It will always copy the latest bars. So they answer to the OP is yes. Disregard my previous posts.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|