How to CopyBuffer from an MTF indicator?
Camilo Mora: How do I copy the data from the MTF indicator?
Same way you read any other indicator. Read the approprate buffer.
Same way you read any other indicator. Read the approprate buffer.
You agree to website policy and terms of use
Say I have an indicator that generates values of higher time frame in lower time frame charts (A so-call MTF indicator). If I were to copy the values of that MTF for say creating a custom indicator at a lower TF. How do I copy the data from the MTF indicator?
I am using a code that does the job (see below), but when i use higher TF in the MTF indicator, the custom indicator becomes super slow... i presume I am copy this incorrectly.
I use the command :
to offset the data that I want to copy by one candle of the MTF indicator, and avoid repainting.