See Program Running:
NewTick
So it's impossible to use both function in one mql5-program.The NewTick event is generated if there are new quotes, it is processed by OnTick() of Expert Advisors attached. In case when OnTick function for the previous quote is being processed when a new quote is received, the new quote will be ignored by an Expert Advisor, because the corresponding event will not enqueued.
Calculate
The Calculate event is generated only for indicators right after the Init event is sent and at any change of price data. It is processed by the OnCalculate function.

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,
I try to do an EA which calculate a value on the OnCalculate() part of my code in a loop for each new [i] (IndBuffer[i]=CalculateValue).
I would like to store /save this value in an handle in order to return it in the OnTick() part of my code in order to use it but I don't know how...
Somebody could help me please???....
Thank you.
Antoine