A trouble with GetIndexByExactTime
Created at 16 May 2020, 17:34
A trouble with GetIndexByExactTime
16 May 2020, 17:34
I want to get the index of the Position.Entrytime.
But zhe value is -1. is there a way to do it?.I'm in a little bit of trouble with this.
Thanks a lot.
int rel = MarketData.GetBars(TimeFrame.Minute5).OpenTimes.GetIndexByExactTime(position.EntryTime);
cTrader Automate
@lordyy
Replies
lordyy
18 May 2020, 11:16
RE:
PanagiotisCharalampous said:
Hi lordyy,
Did you try GetIndexByTime()?
Best Regards,
Panagiotis
Hi PanagiotisCharalampous
GetIndexByTime() is right. I used the wrong function. What does GetIndexByExactTime do. thanks a lot
@lordyy
PanagiotisCharalampous
18 May 2020, 09:12
Hi lordyy,
Did you try GetIndexByTime()?
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous