Previous tick's value
- EA which will take only one trade at a time ?
- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
I, a custom indicator, just got a new tick and am currently in Start already. I need to find out whether I am to move up from the previous tick or down. Where do I fetch this information?
Straightforward. Just wanted to make sure there is no inherent data structure for this that I am ommitting. Btw Raprtor, how do you do that that you always come first to respond and almost within minutes ...?:-)
int start(){ static double tickCurrent; double tickPrevious = tickCurrent; tickCurrent = Bid; : if (tickCurrent > tickPrevious) ... // Up
I am so sorry to bring such an old topic back to the surface but I need to know if it is possible to store more than 1 tick "in the memory".
I would like to have the ability to know the price for:
Current tick
last tick
tick before last tick
and actually more if it is possible.
Thanks in advance :)
You cannot get recent ticks in MQL4, you have to remember them. Or you may move to MQL5, they have a rather fresh function for it : https://www.mql5.com/en/docs/series/copyticks