Im writting an indicator for MT4, however I would like that calculation process is not run on every tick, only on new bars.
Can you point me to the code to do this?
Thanks in advance
Can you point me to the code to do this?
Thanks in advance
3 Bar Fractal with mid-bar and bar on each side 11 replies
Calculate own daily bar to avoid Sunday bar 0 replies
Pin bar, pin bar, pin bar 0 replies
How to proceed only on new bar instead of new tick? 0 replies
int OnCalculate(...) { int limit=rates_total-prev_calculated; for(int i=0; i<limit; i++){ // calc here // } return(rates_total); }