0
Answered

How to get the index of first candle of the yesterday

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

Hello,

I need get the high and low of NY sessions of the last 5 days.

In mql4, I get candle index with any specific datetime, what function is similar in ATAS .

My idea is get the first index candle X days ago, and use a FOR cycle to get the highs and low. Is this way correct?

Thanks for your attentions, ideas or corrections

sorry, my english is a little

Answered

You can use "IsNewSession(int bar)" method to it.