Aymane Maizi: I then want to store B somewhere and then compare it with the new value of A and B when a new tick occurs,
Perhaps you should read the manual. Static Variables, Global Variables, Visibility Scope and Lifetime of Variables
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
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
As dumb as the question is, I've spent nearly 3 hours looking for an answer.
My OnTick function reads and stores 2 consecutive tick values in 2 variable A and B, I then want to store B somewhere and then compare it with the new value of A and B when a new tick occurs, and again store B and so on...
Any help would be greatly appreciated.