Could I declare handles of the source indicator of the dynamic variable and the destination indicator of the dynamic variable on global and then copy their buffers to oncalculate and oninit?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How can I reinitialize an indicator's period based on the output of another indicator's handle? Would I create the int/double on the oninit tab, or inside the oncalculate tab?
Would I copy the handle/buffer over to OnTick and calculate the period variable and return it back to oncalculate?
Edit: I did some searching and apparently the function is capable in Pinescript. There's gotta be some way to make this functional in mql5..