How to use OnNewCandle ?

alka_parra 2 years ago updated by Андрей Ринас2 (ATAS developer) 1 year ago 1

Hello i'm just interested on developing a custom Indicator/Robot, But is there any example about using OnNewCandle event ? My objective is to have an indicator that only makes calculations when a new candle is created, not every tick. Can someone help me on this ? Mt algorithm will be somethink like:

1- If new Candle

2- Check Last Candle Max volume cluster

3- Then do domething.

4- Wait for new candle.


To check if current bar is new you can use code like: