How to calculate the number of Bars since the start of the trade session?
- Numbered Bars
- Time/Price in EA
- Needs Help in coding.
hi thanks. but since i am quite new cud you possibly elaborate how i cud use this function through an example. For eg. if i logged in around 12.30 PM and want to know exactly how many candles have elapsed or been generated since the opening of the session ( whatever time that may be say 9.00 AM) then how can i use the ibarshift to find the number of bars?
extern InterestingTime = D'2010.09.14 09:00';
int numberOfCandles;
start(){
numberOfCandles = iBarShift(Symbol(), Period(), InterestingTime );
is there any time variable that defines the opening time of the market ?
as far as i know this market works 5/24
as far as i know this market works 5/24
Oh ok ! thanks