static datetime tBar =0; ... if ( tBar != Time[0] ) { tBar = Time[0]; ... } else { // ticks of the recent bar .. }You are looking for s.th. like that?
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
What's the most efficient way to isolate historical bars, new real-time bars and ticks in OnCalculate?
e.g.