- Home
- Forum
- cTrader Automate
- Open price of 5 minutes, 15 minutes and 30 minutes Bar
Open price of 5 minutes, 15 minutes and 30 minutes Bar
Open price of 5 minutes, 15 minutes and 30 minutes Bar
Hi how to get 5 minutes, 15 minutes and 30 minutes Bars Open price? What os the best way ?
Thank you !
RE:
PanagiotisChar said:
Hi there,
You can use Bars.OpenPrices
Hi I used also this code and I think It's work fine :
Bars bars15 = MarketData.GetBars(TimeFrame.Minute15);
int currentBarIndex15 = bars15.Count - 1;
Bar currentBar15 = bars15[currentBarIndex15];
double openPrice15 = currentBar15.Open;
Print("15min " + openPrice15);
Copyright © 2023 Spotware Systems Ltd. All rights reserved.