I seem to have done it.. it appears that one can convert each and everyone of the doubles (and integers) inside one block (OnTick) into a "GlobalVarSet" and them call them on the other block (OnBookEvent) with "GlobalVarGet" without much being lost in the middle.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello all,
I've been coding a EA of mine that calls both events that happen OnTick and OnBookEvent. Id like to plot both of them on the chart, but i cant seem to do so without one "flashing" the other. Everytime a BookEvent happens, the BookEvent comment shows up and "erases", "flashes" , "over-pose" the OnTick comment.
I've tried naming the comment string of the OnTick block as a GlobalVar and then calling it from inside the OnBookEvent block comment line, but it doesn't happen, probably because its a string, and not a double.
i've made a little GIF so i can show what i mean: http://i.imgur.com/dqun9wx.gifv
Any ideas are welcome!
thanks a lot